Comments (5)
Launching my app under cuda-memcheck I got following message from it:
Invoking scan_init_kernel<<<306, 128, 0, 139992313554640>>>()
========= Invalid __global__ write of size 4
========= at 0x00000128 in void cub::DeviceCompactInitKernel<cub::ScanTileState<int, bool=1>, unsigned int*>(int, int, bool=1)
========= by thread (0,0,0) in block (0,0,0)
========= Address 0x7f52921b9268 is out of bounds
from cub.
After I compiled the code with -lineinfo option I got the row number:
at 0x00000128 in /home/daktfi/polymatica/cub/cub/device/dispatch/dispatch_scan.cuh:88:void cub::DeviceCompactInitKernel<cub::ScanTileState<int, bool=1>, unsigned int*>(int, int, bool=1)
Hope this helps.
The -G option did not worked out - my code is part of larger project and at the moment I'm unable to compile it separately, as according to this NVIDIA/thrust#864 it requires extra nvcc linking pass.
from cub.
I finally got the working standalone project (attached) which reproduces error and get it commented. There's quite complicated logic behind the the issue, so if You have question - I'll gladly explain.
from cub.
Hi, I think the "an illegal memory access was encountered" issue is probably related to cub::DeviceSelect:If()
expecting a pointer to device memory for where to output the number of items selected. (You are simply referencing the auto-var length
on the host thread's program stack, which isn't visible to the GPU threads.) You'll want to create a device-allocation for that.
Let me know if that helps!
from cub.
Only one word: "oops". :-(
The most stupid bugs are hardest to find...
Worked like a charm! Thanks a lot!!!
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.