NVIDIA / gvdb-voxels

Sparse volume compute and rendering on NVIDIA GPUs
Other
672 stars 144 forks source link

gvdbPTX compile issues #108

Closed MikePelton closed 3 years ago

MikePelton commented 3 years ago

Hi - have just downloaded GVDB as a zip, trying to build against CUDA 10.1 on Windows 10 with VS2019 Community and am seeing errors at the CUDA compile stage:

Error MSB3721 The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc.exe" -gencode=arch=compute_35,code=\"sm_35,compute_35\" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64" -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" --keep-dir x64\Debug -maxrregcount=0 --machine 64 -ptx -cudart static -Xcompiler="/EHsc -Zi -Ob0" -o gvdbPTX.dir\Debug\cuda_gvdb_module.ptx "D:\OpenLibraries\GVDBVoxels\gvdb-voxels-master\source\gvdb_library\kernels\cuda_gvdb_module.cu"" exited with code 1. gvdbPTX C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 10.1.targets 764

Error no operator "*" matches these operands

gvdbPTX D:\OpenLibraries\GVDBVoxels\gvdb-voxels-master\source\gvdb_library\kernels\cuda_gvdb_operators.cuh

..and this is first the offending line:

const uint3 packedVox = blockIdx * blockDim + threadIdx;

Any words of wisdom gratefully received - am excited to see GVDB rescued at last so am hoping this is something trivial.

Thanks for your help

Mike

MikePelton commented 3 years ago

Pls disregard - Just registered the requirement on 10.2. Duh......

MikePelton commented 3 years ago

In case anyone else comes follows this path, rebuilding against CUDA 10.2 solved this problem.