Open cbouilla opened 3 months ago
Thanks for reporting the issue and the possible workaround.
The intent was that the following line adds the CUDA headers to the target: https://github.com/spcl/open-earth-compiler/blob/1e48dee6a1a021bc11d6621432450406349b3733/lib/Conversion/LoopsToGPU/CMakeLists.txt#L34
It may very well be that this does not work anymore on modern systems.
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 compiling