-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
First of all, thank you very much for adding a CMake build system in #15 .
I would like to point out that in your CMakeLists.txt you set the compilers name (nvc++) as the CXX compiler, while this works well when cuDecomp is the top project, it fails for us when we add cuDecomp as subdirectory with this error
"nvc++ " is not a full path and was not found in the PATH.
All you have to do is replace this code
# Use NVHPC compilers by default
set(CMAKE_CXX_COMPILER "nvc++")
set(CMAKE_Fortran_COMPILER "nvfortran")
# Locate and use NVHPC CMake configuration
find_program(NVHPC_CXX_BIN "nvc++")With this one
# find NVHPC compilers
find_program(NVHPC_CXX_BIN "nvc++")
find_program(NVHPC_Fortran_BIN "nvfortran")
# Use NVHPC compilers by default
set(CMAKE_CXX_COMPILER ${NVHPC_CXX_BIN})
set(CMAKE_Fortran_COMPILER ${NVHPC_Fortran_BIN})I would be happy to make PR if you want.
Thank you.
Metadata
Metadata
Assignees
Labels
No labels