Hi,
just tried to run various CUDA samples from folder 5_Simulations. All but “Particles” are executing correctly. “Particles” compiles without an error, but at start it breaks immediately after an empty graphics window pops up.
Terminal output is
CUDA Particles Simulation Starting…
NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.
grid: 64 x 64 x 64 = 262144 cells
particles: 16384
GPU Device 0: “Pascal” with compute capability 6.1
CUDA error 700 [C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include\cub\device\dispatch/dispatch_radix_sort.cuh, 1016]: an illegal memory access was encountered
CUDA error 700 [C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include\cub\device\dispatch/dispatch_radix_sort.cuh, 1211]: an illegal memory access was encountered
CUDA error 700 [C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include\cub\device\dispatch/dispatch_radix_sort.cuh, 1311]: an illegal memory access was encountered
CUDA error at C:/ProgramData/NVIDIA Corporation/CUDA Samples/v11.0/5_Simulations/particles/particleSystem_cuda.cu:90 code=700(cudaErrorIllegalAddress) “cudaGraphicsMapResources(1, cuda_vbo_resource, 0)”
I have no idea how to solve this issue. Btw, I had exactly the same negative outcome on my notebook with CUDA 11.2.2 installed. Hope someone has some helpful hints.
My environment is Windows 10 Pro, 64bit, GTX 1080, cuda_11.0.2_451.48_win10, Visual Studio 2019
(Also tried 465.89 without any success)
Walter
1 Like
I had built that sample successfully in February.
Now i have tried again and can confirm your issue - in debug mode.
In release mode building even fails.
A regression in latest MSVC updates?
Schweregrad |
Code |
Beschreibung |
Projekt |
Datei |
Zeile |
Unterdrückungszustand |
Fehler |
MSB3721 |
Der Befehl C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin\nvcc.exe -gencode=arch=compute_35,code=\sm_35,compute_35\ -gencode=arch=compute_37,code=\sm_37,compute_37\ -gencode=arch=compute_50,code=\sm_50,compute_50\ -gencode=arch=compute_52,code=\sm_52,compute_52\ -gencode=arch=compute_60,code=\sm_60,compute_60\ -gencode=arch=compute_61,code=\sm_61,compute_61\ -gencode=arch=compute_70,code=\sm_70,compute_70\ -gencode=arch=compute_75,code=\sm_75,compute_75\ -gencode=arch=compute_80,code=\sm_80,compute_80\ -gencode=arch=compute_86,code=\sm_86,compute_86\ –use-local-env -ccbin C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64 -x cu -I./ -I…/…/common/inc -I./ -IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2/include -I…/…/common/inc -IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include --keep-dir x64\Release -maxrregcount=0 --machine 64 --compile -cudart static --threads 0 -DWIN32 -DWIN32 -D_MBCS -D_MBCS -Xcompiler /EHsc /W3 /nologo /O2 /Fdx64/Release/vc142.pdb /FS /MT -o x64/Release/particleSystem_cuda.cu.obj c:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.2\5_Simulations\particles\particleSystem_cuda.cu wurde mit Code -1 beendet. |
particles |
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.2.targets |
785 |
|
Warnung |
|
The ‘compute_35’, ‘compute_37’, ‘compute_50’, ‘sm_35’, ‘sm_37’ and ‘sm_50’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). |
particles |
c:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.2\5_Simulations\particles\CUDACOMPILE |
1 |
|
Fehler |
|
calling a host function(__floorf) from a device function(calcGridPos) is not allowed |
particles |
c:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.2\5_Simulations\particles\particles_kernel_impl.cuh |
105 |
|
Fehler |
|
identifier __floorf is undefined in device code |
particles |
c:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.2\5_Simulations\particles\particles_kernel_impl.cuh |
105 |
|
Fehler |
|
calling a host function(__floorf) from a device function(calcGridPos) is not allowed |
particles |
c:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.2\5_Simulations\particles\particles_kernel_impl.cuh |
106 |
|
Fehler |
|
identifier __floorf is undefined in device code |
particles |
c:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.2\5_Simulations\particles\particles_kernel_impl.cuh |
106 |
|
Fehler |
|
calling a host function(__floorf) from a device function(calcGridPos) is not allowed |
particles |
c:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.2\5_Simulations\particles\particles_kernel_impl.cuh |
107 |
|
Fehler |
|
identifier __floorf is undefined in device code |
particles |
c:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.2\5_Simulations\particles\particles_kernel_impl.cuh |
107 |
|