ptheywood / cuda-concurrency-detection Goto Github PK
View Code? Open in Web Editor NEWSample app to test programatic concurrency detection for regression testing.
Sample app to test programatic concurrency detection for regression testing.
Make use of streams optional behind a template arg / extra functional argument (easily)
Cuda even to to record in the default stream before and after the batch of concurrent work (or serial if no streams).
Record time externally.
Repeat each one N times for average time.
Compare using streams and not using streams - streams should be quicker (for the right problem size.)
This again relies on several assumptions, will need flexible time comparison + ignore any outliers?
Need to check how this interacts with elapsed time. Might need to change the order of synchronisation to be global before per-stream?
// Sync each stop evet
for(int b = 0; b < batches; b++){
cudaEvent_t stop = stopEvents.at(b);
CUDA_CALL(cudaEventSynchronize(stop));
}
CUDA_CALL(cudaEventSynchronize(g_stop));
Alternative is to figure out based on s_start + g_stop?
It's noted in the CUDA docs that cudaEventElapsedtime is not reliable when using the non-default stream ๐ข
Rather than solving a large large saxpy problem, switch to solving multiple saxpy instances? Closer map to target application in that case, though functionally should be the same.
Profile with nvprof - this produces an sqlite database.
Write a script which interrogates the sqlite databse, to check for concurrency ( start times + end times in streams should overlap if any concurrency present)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.