oneapi-src / oneMKL

oneAPI Math Kernel Library (oneMKL) Interfaces
Apache License 2.0
612 stars 158 forks source link

Examples fail to build with AdaptiveCpp #507

Open hjabird opened 4 months ago

hjabird commented 4 months ago

Summary

Enabling examples causes compilation failures when using AdaptiveCpp.

Version

oneMKL 231aee3372a3812f854931e16fec974090061aaf (tip on 05.06.2024).

Environment

AdaptiveCpp v24.02.0 oneMKL 231aee3372a3812f854931e16fec974090061aaf (tip on 05.06.2024).

Steps to reproduce

 cmake ../onemkl/ -GNinja -DCMAKE_CXX_COMPILER=clang++ -DONEMKL_SYCL_IMPLEMENTATION=hipSYCL -DENABLE_MKLCPU_BACKEND=OFF -DENABLE_MKLGPU_BACKEND=OFF -DENABLE_ROCRAND_BACKEND=ON -DENABLE_ROCBLAS_BACKEND=ON -DBUILD_FUNCTIONAL_TESTS=OFF -DBUILD_EXAMPLES=ON -DhipSYCL_DIR=/path/to/adaptivecpp/install/lib/cmake/hipSYCL/ -DHIPSYCL_TARGETS=hip:gfx90a

ninja

Observed behavior

Failures due to the use of SYCL-2020 decorated multi-ptrs.

Expected behavior

Examples should compile without errors.

Rbiessy commented 4 months ago

Related AdaptiveCpp PR https://github.com/AdaptiveCpp/AdaptiveCpp/pull/1452 that may allow us to compile the examples with the current multi_ptr.