You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to compile openearth following the steps of the README, but this fails with the following error:
[ 77%] Building CXX object lib/Conversion/LoopsToGPU/CMakeFiles/obj.GPUToKernelAndRuntimeCalls.dir/ConvertKernelFuncToCubin.cpp.o
.../open-earth-compiler/lib/Conversion/LoopsToGPU/ConvertKernelFuncToCubin.cpp:16:10: fatal error: cuda.h: No such file or directory
16 | #include "cuda.h"
| ^~~~~~~~
This happens in a computing center that uses "modules" (implemented with spack).
Before running CMake, I "activated" CUDA by running module load cuda.
CMake correctly found the CUDA compiler:
-- Looking for a CUDA compiler - /grid5000/spack/v1/opt/spack/linux-debian11-x86_64_v2/gcc-10.4.0/cuda-12.0.0-g2atnxvq3akekpc6otev56c2rqzmnr7y/bin/nvcc
-- The CUDA compiler identification is NVIDIA 12.0.76
But It did not correctly set the path of the include files when invoking the compiler. I could compile openearth by taking these steps:
Tell CMake to generate Unix Makefiles instead of a Ninja build file
Run make (it fails with the above error)
Compile the offending file by running the right command manually and adding a -I option to gcc with the right paths of the include files (in my case: /grid5000/spack/v1/opt/spack/linux-debian11-x86_64_v2/gcc-10.4.0/cuda-12.0.0-g2atnxvq3akekpc6otev56c2rqzmnr7y/include)
Run make again to finish compiling
The text was updated successfully, but these errors were encountered:
I tried to compile openearth following the steps of the README, but this fails with the following error:
This happens in a computing center that uses "modules" (implemented with spack).
Before running CMake, I "activated" CUDA by running
module load cuda
.CMake correctly found the CUDA compiler:
But It did not correctly set the path of the include files when invoking the compiler. I could compile openearth by taking these steps:
make
(it fails with the above error)-I
option to gcc with the right paths of the include files (in my case:/grid5000/spack/v1/opt/spack/linux-debian11-x86_64_v2/gcc-10.4.0/cuda-12.0.0-g2atnxvq3akekpc6otev56c2rqzmnr7y/include
)make
again to finish compilingThe text was updated successfully, but these errors were encountered: