Giter Club home page Giter Club logo

cuda-concurrency-detection's People

Contributors

ptheywood avatar

Watchers

 avatar  avatar

cuda-concurrency-detection's Issues

Alternative: Comparative timing

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?

Event record / sync

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 ๐Ÿ˜ข

Restructure

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.

Alternative: Profile and interrogate profile database

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.