voxcraft / voxcraft-sim

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

Google Colab - CUDA Function Error: invalid device function #16

Closed ai-honzik closed 4 years ago

ai-honzik commented 4 years ago

When running voxcraft-sim in Google Colab one gets a CUDA Function Error: invalid device function. This is caused by the difference in GPU compute capability (Tesla K80 used by Google has cc 3.7).

This can be fixed by adding _-gencode=arch=compute_37,code=sm_37 to cuda flags in CMakeLists.txt_.

liusida commented 4 years ago

Thanks, @egoranger

I've added an auto-detection. Waiting for others to review.