During compilation you could run into a compilation error that states as follows
CMake Error at /usr/share/cmake-3.16/Modules/CmakeDetermineCUDACompiler.cmake:25 (message):
Could not find compiler set in environment variable CUDACXX:
In order to fix this you must properly set your operating systems environment variable to nvcc file path. In order to do this you must
-
cd into /usr/local/{highest cuda version}
ie: cd /usr/local/cuda-11.6
-
cd into bin and check to see if you can spot nvcc
ie: cd bin
-
Run the export command on nvcc's file path like so
ie: export CUDACXX=/usr/local/cuda-11.6/bin/nvcc
If done correctly you should not have the "Could not find compiler set in environment variable CUDACXX" error anymore.
During compilation you could run into a compilation error that states as follows
CMake Error at /usr/share/cmake-3.16/Modules/CmakeDetermineCUDACompiler.cmake:25 (message):
Could not find compiler set in environment variable CUDACXX:
In order to fix this you must properly set your operating systems environment variable to nvcc file path. In order to do this you must
cd into /usr/local/{highest cuda version}
ie: cd /usr/local/cuda-11.6
cd into bin and check to see if you can spot nvcc
ie: cd bin
Run the export command on nvcc's file path like so
ie: export CUDACXX=/usr/local/cuda-11.6/bin/nvcc
If done correctly you should not have the "Could not find compiler set in environment variable CUDACXX" error anymore.