voxcraft / voxcraft-sim

a GPU-accelerated voxel-based physics engine
Creative Commons Zero v1.0 Universal
48 stars 11 forks source link

CUDA Error #9

Closed jrieffel closed 4 years ago

jrieffel commented 4 years ago

I thought I had voxcraft-sim working, but opening up my history file, I get this:

1 GPU found. === set device to 0 for 1 simulations ===

Total GPU memory 4239785984 bytes. Set GPU heap size to be 2119892992 bytes.

/home/rieffelj/src/voxcraft-sim/src/VX3/VX3_SimulationManager.cu(413): CUDA Function Error: invalid device function Running simulation locally by default. ./vx3_node_worker -i workspace/locally/20200625155235.vxt -o workspace/locally/20200625155235.vxr

davidmatthews1uvm commented 4 years ago

Which GPU do you have? This error could be caused by compiling for the wrong generation of GPU. We are targeting Pascal and newer GPUs in the CMakeLists.txt file. Our team does not have access to older GPUs to test on, but we expect that it should run on GPUs with Compute Capability 3.5 or better (https://en.wikipedia.org/wiki/CUDA for specific models).

jrieffel commented 4 years ago

(base) rieffelj@Mille-Feuille:~/src/voxcraft-sim/build$ lspci | grep NVIDIA 02:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K1200] (rev a2) 02:00.1 Audio device: NVIDIA Corporation Device 0fbc (rev a1)

davidmatthews1uvm commented 4 years ago

Your GPU is compute capability 5.0 which has not yet been tested with Voxcraft-sim but is expected to work. We need to modify the CMakeLists.txt so that it targets a compute capability older than 6.0. The above is a modified CMakeLists.txt file.

jrieffel commented 4 years ago

Success, thank you!