Comments (5)
update: costa-2.1 gives the same low performance as costa-2.0
from costa.
Hi @toxa81
After a lot of benchmarking, I finally realized what was causing the low throughput in these cases:
- Loop unrolling makes the copy/transpose kernels 2x faster.
- After loop unrolling, 70% of time is spent in temporary buffer allocation. These buffers are used for packing/unpacking the messages and are allocated/deallocated each time a transform() is invoked. We can fix this by using a memory pool.
So, the good news is that this should not be too hard to fix - will keep you updated.
from costa.
Hi Anton,
The throughput should now be faster - it goes up to 7.3GB/s. The test file you sent me is in examples/copy_bench.cpp
:
OMP_NUM_THREADS=12 srun -N 2 -n 2 ./examples/copy_bench
[costa::transform] throughput: 3.01352 Gb/sec <- loop unrolling boosts the perf. 2x
[costa::transform] throughput: 5.7582 Gb/sec <- packing/unpacking buffers reused
[costa::transform] throughput: 4.71008 Gb/sec
[costa::transform] throughput: 7.27846 Gb/sec
[costa::transform] throughput: 4.71543 Gb/sec
[costa::transform] throughput: 7.26714 Gb/sec
[costa::transform] throughput: 5.76084 Gb/sec
[costa::transform] throughput: 7.27839 Gb/sec
[costa::transform] throughput: 7.27399 Gb/sec
[costa::transform] throughput: 4.71403 Gb/sec
from costa.
Hi Marco! I think it looks better now. I will test it in the production runs and let you know.
from costa.
Thanks Anton! I think the limiting factor here is the packing/unpacking which takes up half of the bandwidth, but is still faster than letting MPI pack/unpack it.
from costa.
Related Issues (8)
- Add COSTA-2.1 to spack HOT 1
- COSTA build fails on CRAY
- COSTA breaks cross-compilation HOT 5
- Cannot find MKL after updating the FindMKL script HOT 1
- incorrect link to pxgemr2d miniapp in README HOT 1
- Build Failure on Stampede2 HOT 1
- Installs empty directories include/costa/pxtran, include/costa/pxtranc, include/costa/pxtranu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from costa.