Comments (4)
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.
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.
Let me know if I'm missing anything,
Duane
from cub.
I've seen the similar picture. But why kernels don't overlap(or overlap just a little)?
from cub.
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)
- DeviceMemcpy::Batched supports only memory buffers HOT 4
- Specialize DeviceMemcpy::Batched to also support iterators HOT 1
- Documentation of warp-wide collectives refers to `__syncthreads` instead of `__syncwarp` HOT 1
- Add policy parameter to allow tuning
- Unresolved extern function 'cudaLaunchDevice' error while using NVCC 11.x and cub 2.10 with -G HOT 3
- Make decoupled look-back delay part of tuning HOT 2
- Implement tuning db merger HOT 3
- Write example for decoupled look-back API
- Segfault in CachingDeviceAllocator when out of memory HOT 4
- Tune Decoupled Look-back based Algorithms for H100 HOT 1
- Can't get correct result when use cub in CUDA12.0 HOT 24
- Illegal memory access on trying to use `DeviceReduce::Sum()` to count number of non-zeros HOT 2
- What is the correct compile command in Linux platform to compile a function citing cuh? HOT 1
- Segmented sorting does not preserve data in-between segments. HOT 6
- Misleading documentation for DeviceSegmentedRadixSort (or I'm using it wrong) HOT 1
- what's the purpose of CUB_SUBSCRIPTION_FACTOR
- select_if kernel needs grid boundary or reprogramming tile_idx HOT 1
- BlockLoad never attempts to vectorize HOT 5
- Possible bug in variable naming HOT 2
- How do I reduce partially filled 2D blocks? HOT 2
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 cub.