Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Installation Error for HIBAG.gpu] Cannot find/define the path for opencl.h #27

Open
YifangZhang opened this issue Jul 17, 2023 · 1 comment

Comments

@YifangZhang
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants