FAQ - dmlc/minerva GitHub Wiki
"invalid device function" error
Some people encounter this error when running the applications. This is because we compile the code for new GPUs in order to maximize performance. If you have and old GPU, the compiled code will not be able to run on your GPU. To fix this:
- Lookup the "compute capability" of your GPU in this page.
- Modify {minerva_root_dir}\CMakeLists.txt, in line 104, replace
set(CUDA_NVCC_FLAGS "-arch sm_35")
withset(CUDA_NVCC_FLAGS "-arch sm_{your_compute_capability}")