CHIP-SPV / H4I-MKLShim

BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Failure to build `cannot find -lOpenCL: No such file or directory` #20

Closed pvelesko closed 7 months ago

pvelesko commented 7 months ago
╭─pvelesko@cupcake /space/pvelesko/chipStar/hip-blas-check/H4I-MKLShim/build ‹update-make-queue●› 
╰─$ cmake ../ -DINTEL_COMPILER_PATH=/space/pvelesko/install/oneapi/compiler/2024.0/bin/icpx 
-- H4I-MKLShim will be installed to: 
-- The CXX compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found IntelSYCL: /space/pvelesko/install/oneapi/compiler/2024.0/include (found version "202001") 
-- Upgrade to CMake version 3.25.2 or later for native support of Intel compiler(s) icpx. You are running version 3.22.1.
-- MKL_VERSION: 2024.0.0
-- MKL_ROOT: /space/pvelesko/install/oneapi/mkl/2024.0
-- MKL_SYCL_ARCH: None, set to ` intel64` by default
-- MKL_ARCH: None, set to ` intel64` by default
-- MKL_SYCL_LINK: None, set to ` dynamic` by default
-- MKL_LINK: None, set to ` dynamic` by default
-- MKL_SYCL_INTERFACE_FULL: None, set to ` intel_ilp64` by default
-- MKL_INTERFACE_FULL: None, set to ` intel_ilp64` by default
-- MKL_SYCL_THREADING: sequential
-- MKL_THREADING: sequential
-- Found /space/pvelesko/install/oneapi/mkl/2024.0/lib/libmkl_intel_ilp64.so
-- Found /space/pvelesko/install/oneapi/mkl/2024.0/lib/libmkl_sequential.so
-- Found /space/pvelesko/install/oneapi/mkl/2024.0/lib/libmkl_core.so
-- Found /space/pvelesko/install/oneapi/mkl/2024.0/lib/libmkl_sycl_blas.so
-- Found /space/pvelesko/install/oneapi/mkl/2024.0/lib/libmkl_sycl_lapack.so
-- Found /space/pvelesko/install/oneapi/mkl/2024.0/lib/libmkl_sycl_dft.so
-- Found /space/pvelesko/install/oneapi/mkl/2024.0/lib/libmkl_sycl_sparse.so
-- Found /space/pvelesko/install/oneapi/mkl/2024.0/lib/libmkl_sycl_data_fitting.so
-- Found /space/pvelesko/install/oneapi/mkl/2024.0/lib/libmkl_sycl_rng.so
-- Found /space/pvelesko/install/oneapi/mkl/2024.0/lib/libmkl_sycl_stats.so
-- Found /space/pvelesko/install/oneapi/mkl/2024.0/lib/libmkl_sycl_vm.so
-- Known MKL Targets: MKL::mkl_intel_ilp64;MKL::mkl_sequential;MKL::mkl_core;MKL::mkl_sycl_blas;MKL::mkl_sycl_lapack;MKL::mkl_sycl_dft;MKL::mkl_sycl_sparse;MKL::mkl_sycl_data_fitting;MKL::mkl_sycl_rng;MKL::mkl_sycl_stats;MKL::mkl_sycl_vm;MKL::MKL_SYCL;MKL::MKL_SYCL::BLAS;MKL::MKL_SYCL::LAPACK;MKL::MKL_SYCL::DFT;MKL::MKL_SYCL::SPARSE;MKL::MKL_SYCL::DATA_FITTING;MKL::MKL_SYCL::RNG;MKL::MKL_SYCL::STATS;MKL::MKL_SYCL::VM;MKL::MKL
-- Configuring done
-- Generating done
-- Build files have been written to: /space/pvelesko/chipStar/hip-blas-check/H4I-MKLShim/build
╭─pvelesko@cupcake /space/pvelesko/chipStar/hip-blas-check/H4I-MKLShim/build ‹update-make-queue●› 
╰─$ make -j
Consolidate compiler generated dependencies of target MKLShim
[ 14%] Linking CXX shared library libMKLShim.so
/usr/bin/ld: cannot find -lOpenCL: No such file or directory
icpx: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/CMakeFiles/MKLShim.dir/build.make:188: src/libMKLShim.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:98: src/CMakeFiles/MKLShim.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
pvelesko commented 7 months ago

fixed by installing latest oneapi