Hi!
I’m trying to figure out how to use the RadixSort class from the CUDA SDK. I have got everything to compile, but I get some errors when trying to use it. I am currently not actually sorting anything since I run into problems when creating an object. In my main.cpp I have this:
...
unsigned int arraySize = 10;
...
RadixSort mySorter(arraySize, true);
...
It compiles, but as soon as the program starts I get the following error messages:
First-chance exception at 0x000007fefde1aa7d in 3D_cuda.exe: Microsoft C++ exception: cudaError at memory location 0x0012fcd0…
First-chance exception at 0x000007fefde1aa7d in 3D_cuda.exe: Microsoft C++ exception: cudaError at memory location 0x0012fa38…
First-chance exception at 0x000007fefde1aa7d in 3D_cuda.exe: Microsoft C++ exception: cudaError at memory location 0x0012fa50…
First-chance exception at 0x000007fefde1aa7d in 3D_cuda.exe: Microsoft C++ exception: cudaError at memory location 0x0012fa54…
First-chance exception at 0x000007fefde1aa7d in 3D_cuda.exe: Microsoft C++ exception: cudaError at memory location 0x0012fa40…
First-chance exception at 0x000007fefde1aa7d in 3D_cuda.exe: Microsoft C++ exception: cudaError at memory location 0x0012fa44…
The thread ‘Win64 Thread’ (0x17fc) has exited with code 1 (0x1).
The thread ‘Win64 Thread’ (0x1b00) has exited with code 1 (0x1).
The program ‘[6672] 3D_cuda.exe: Native’ has exited with code 1 (0x1).
If I just remove that one RadixSort line, the rest of the program runs just fine. Any ideas?
/ Victor