[Installation Error for HIBAG.gpu] Cannot find/define the path for opencl.h
Opened this issue · 1 comments
YifangZhang commented
Dear HIBAG author,
I have encountered a problem in order to install your HIBAG.gpu version of the package onto a supercomputer (reposted at zhengxwen/HIBAG.gpu#2).
The issue is defining the path for opencl.h
file. Based on the documentation, I cannot find any place where I can define the path of opencl.h
file. Is there a way to resolve this?
Here is the error log:
/usr/apps/general/spack/sw/linux-rhel8-zen/gcc-8.5.0/gcc-11.3.0-
cwx43q6qt46zl5olgckurx67xtg4nuyd/bin/g++ -std=gnu++14 -
I"/usr/apps/general/spack/sw/linux-rhel8-zen/gcc-11.3.0/r-4.2.0-
2liuw4vmic27cmqhyyt6jmvwbezn6mlx/rlib/R/include" -DNDEBUG -
I'/usr/apps/general/spack/sw/linux-rhel8-zen/gcc-11.3.0/r-4.2.0-
2liuw4vmic27cmqhyyt6jmvwbezn6mlx/rlib/R/library/HIBAG/include' -
I/usr/local/include -fpic -g -O2 -c LibHLA_gpu.cpp -o LibHLA_gpu.o
In file included from LibHLA_gpu.cpp:37:
LibOpenCL.h:28:17: fatal error: CL/opencl.h: No such file or directory
28 | # include <CL/opencl.h>
| ^~~~~~~~~~~~~
compilation terminated.
make: *** [/usr/apps/general/spack/sw/linux-rhel8-zen/gcc-11.3.0/r-4.2.0-
2liuw4vmic27cmqhyyt6jmvwbezn6mlx/rlib/R/etc/Makeconf:177: LibHLA_gpu.o]
Error 1
Thanks!
zhengxwen commented
Sorry, have not checked HIBAG.gpu for a while.
Try setting C_INCLUDE_PATH
(for C header files) or CPLUS_INCLUDE_PATH
(for C++ header files) environment variables to include $CUDA_HOME/include
.
You might also need to set an appropriate $LD_LIBRARY_PATH
.