ginkgo-project / ginkgo

Numerical linear algebra software package
https://ginkgo-project.github.io/
BSD 3-Clause "New" or "Revised" License
384 stars 86 forks source link

Configuration failed while looking for unsolicited feature #1547

Closed aminiussi closed 4 months ago

aminiussi commented 4 months ago

I'm trying to use Ginkgo through a FetchContent, I do not specify any GINKGOBUILD* option, and I'm building with:

13:41:04 [alainm@pollux rel]# icpx --version
Intel(R) oneAPI DPC++/C++ Compiler 2023.1.0 (2023.1.0.20230320)

Ginkkgo version is 1.7.0.

My build is failing with:

-- MKL_ARCH: None, set to ` intel64` by default
-- MKL_LINK: None, set to ` dynamic` by default
-- MKL_INTERFACE_FULL: None, set to ` intel_ilp64` by default
-- MKL_THREADING: None, set to ` tbb_thread` by default
-- MKL_MPI: None, set to ` intelmpi` by default
-- Found MKL: intelmpi  
-- Found MKL: /data/spack/opt/spack/linux-centos7-x86_64/gcc-12.2.0/intel-oneapi-mkl-2023.1.0-x6dxpakvvn4sntkmbzqvtjdndc3g5ttn/mkl/2023.1.0  
-- Found MKL: /data/spack/opt/spack/linux-centos7-x86_64/gcc-12.2.0/intel-oneapi-mkl-2023.1.0-x6dxpakvvn4sntkmbzqvtjdndc3g5ttn/mkl/2023.1.0/lib/intel64/libmkl_sycl.so  
-- Found MKL: /data/spack/opt/spack/linux-centos7-x86_64/gcc-12.2.0/intel-oneapi-mkl-2023.1.0-x6dxpakvvn4sntkmbzqvtjdndc3g5ttn/mkl/2023.1.0/lib/intel64/libmkl_intel_ilp64.so  
-- Found MKL: /data/spack/opt/spack/linux-centos7-x86_64/gcc-12.2.0/intel-oneapi-mkl-2023.1.0-x6dxpakvvn4sntkmbzqvtjdndc3g5ttn/mkl/2023.1.0/lib/intel64/libmkl_tbb_thread.so  
-- Found MKL: /data/spack/opt/spack/linux-centos7-x86_64/gcc-12.2.0/intel-oneapi-mkl-2023.1.0-x6dxpakvvn4sntkmbzqvtjdndc3g5ttn/mkl/2023.1.0/lib/intel64/libmkl_core.so  
CMake Error at par/rel/_deps/ginkgo-src/dpcpp/CMakeLists.txt:2 (find_package):
  Could not find a package configuration file provided by "oneDPL" with any
  of the following names:

    oneDPLConfig.cmake
    onedpl-config.cmake

  Add the installation prefix of "oneDPL" to CMAKE_PREFIX_PATH or set
  "oneDPL_DIR" to a directory containing one of the above files.  If "oneDPL"
  provides a separate development package or SDK, be sure it has been
  installed.

-- Configuring incomplete, errors occurred!

So ok, maybe my oneAPI installation si broken. But I tried to configure with -DGINKGO_BUILD_SYLC=OFF, and got the same result. Is there a way to deactivate sycl with oneAPI ?

Thanks

upsj commented 4 months ago

You might have a typo in there, it should be -DGINKGO_BUILD_SYCL=OFF. At the same time, oneAPI is SYCL for our intents and purposes, so it doesn't make much sense to use oneAPI without SYCL enabled

aminiussi commented 4 months ago

Oh, that was dumb. Sorry!

upsj commented 4 months ago

No worries, I'm glad we could resolve this so quickly ;)