Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.
hjk41 edited this page Jun 15, 2015 · 3 revisions

"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:

  1. Lookup the "compute capability" of your GPU in this page.
  2. Modify {minerva_root_dir}\CMakeLists.txt, in line 104, replace set(CUDA_NVCC_FLAGS "-arch sm_35") with set(CUDA_NVCC_FLAGS "-arch sm_{your_compute_capability}")