Hello - First time posting.
I’m trying to go through the example program given on CUB here: CUB: example_block_radix_sort.cu
Following the instructions at: https://nvlabs.github.io/cub/#sec6
- I created a project in nsight
- Added the CUB files in a directory in the project.
- Added the cub folder to my include path flag
The compiler seems to find all the includes correctly. However, I get the error
Method 'SortBlockedToStriped' could not be resolved. Line 118
This is from the line of code:
BlockRadixSortT(temp_storage.sort).SortBlockedToStriped(items);
I’m kind of at a loss since this is based on their example code and I followed their instructions. Am I missing something in the project setup? I checked the block_radix_sort.cuh file and saw that the method is defined. Not sure why it won’t compile. Any help is appreciated. Thanks so much!
EDIT
Here’s my console output:
19:46:41 **** Build of configuration Debug for project CUBTest ****
make all
Building file: ../test.cu
Invoking: NVCC Compiler
/usr/local/cuda-9.1/bin/nvcc -I"/home/eclipse/cuda-workspace/CUBTest" -G -g -O0 -std=c++11 -gencode arch=compute_37,code=sm_37 -odir "." -M -o "test.d" "../test.cu"
/usr/local/cuda-9.1/bin/nvcc -I"/home/eclipse/cuda-workspace/CUBTest" -G -g -O0 -std=c++11 --compile --relocatable-device-code=false -gencode arch=compute_37,code=compute_37 -gencode arch=compute_37,code=sm_37 -x cu -o "test.o" "../test.cu"
Finished building: ../test.cu
Building target: CUBTest
Invoking: NVCC Linker
/usr/local/cuda-9.1/bin/nvcc --cudart static --relocatable-device-code=false -gencode arch=compute_37,code=compute_37 -gencode arch=compute_37,code=sm_37 -link -o "CUBTest" ./test.o
Finished building target: CUBTest