I've tried with only one change: AF_BUILD_ONEAPI=ON
I have oneapi 2024.0 version installed.
But I have the following error:
---
CMake Error at src/backend/oneapi/CMakeLists.txt:349 (target_link_libraries):
Target "afoneapi" links to:
MKL::MKL_DPCPP
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
-- Generating done (0.6s)
CMake Generate step failed. Build files cannot be regenerated correctly.
ol@ol-aib1mg ~/arrayfire/build $ which dpcpp
/home/ol/intel/oneapi/compiler/2024.0/bin/dpcpp
---
As you can see, I have DPCPP installed. But it may be the wrong version, since I have some warning about mkl:
---
CMake Warning at CMakeLists.txt:144 (find_package):
Could not find a configuration file for package "MKL" that is compatible
with requested version "2023.1".
The following configuration files were considered but not accepted:
/home/ol/intel/oneapi/mkl/2024.0/lib/cmake/mkl/MKLConfig.cmake, version: 2024.0.0
---
Please advise.
Thanks,
Oleg