Skip to content

Compilation Error and Fix #1 #1

@AP0LL0916

Description

@AP0LL0916

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

  1. cd into /usr/local/{highest cuda version}
    ie: cd /usr/local/cuda-11.6

  2. cd into bin and check to see if you can spot nvcc
    ie: cd bin

  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions