Giter Club home page Giter Club logo

Comments (4)

sh1ng avatar sh1ng commented on May 18, 2024

Example
https://github.com/sh1ng/thrust_async/blob/master/example_device_scan.cu

that code compiled with

nvcc -gencode arch=compute_61,code=sm_61 --default-stream=per-thread example_device_scan.cu -o a -I../cub/ -O3

from cub.

dumerrill avatar dumerrill commented on May 18, 2024

There are no blocking API calls in device-scan. How is your Visual Profiler indicating that it blocks the CPU thread? (Be sure to check the "profile execution on CPU" checkbox when configuring the session's profiling options.)

When I compile that program using your string, run it through the Visual profiler, I see the following timeline, which shows kernel execution overlapping with the CPU's subsequent call to cudaStreamSynchronize() at the end of the program.

image

Let me know if I'm missing anything,

Duane

from cub.

sh1ng avatar sh1ng commented on May 18, 2024

I've seen the similar picture. But why kernels don't overlap(or overlap just a little)?

from cub.

dumerrill avatar dumerrill commented on May 18, 2024

They do overlap eachother by a little in this pic, and certainly they overlap the host.

TBH, overlapping is bad in this case. Each scan is large enough to fill the GPU by itself -- if the scheduler overlapped them more, then overall performance would go down because they would be contending for hardware resources (like L2 cache thrashing).

from cub.

Related Issues (20)

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.