starpu
starpu copied to clipboard
Linking fails with -lOpenGL not found
Steps to reproduce
On Frontier, load rocm/6.0.0 and try to build StarPU 1.4.7.
Obtained behavior
Linking fails with:
CCLD implicit_stencil
ld.lld: error: unable to find library -lOpenCL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
If I disable builduing of examples the build succeeds. Tried passing --disable-socl but that had no effect.
Configuration
../configure --disable-openmp --disable-build-tests --enable-blas-lib=none --disable-fortran CC=cc CXX=CC FC=ftn
Configuration result
Distribution
StarPU 1.4.7 release.
You'd rather want --disable-opencl to avoid an issue with OpenCL
What is odd here is that in config.log it does link fine:
configure:35797: checking for main in -lOpenCL
configure:35817: cc -o conftest -g -O2 -D_GNU_SOURCE conftest.c -lOpenCL -lrt -lpthread >&5
configure:35817: $? = 0
configure:35827: result: yes