New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot compile sundials with oneMKL support #173
Comments
The oneMKL interface is intended for use with the SYCL NVector and offloading computations to Intel GPUs. From your configuration options and the CMake output, it looks like you want to use oneMKL to provide CPU LAPACK functions. In this case, you'll need to set MKL as the LAPACK provider. Currently CMake is automatically finding and selecting OpenBLAS rather than MKL. Try removing the If the above does not work, you can try setting |
Hello and thank you for your useful suggestions. thank you. |
It looks like the Data Parallel C++ (DPC++) oneMKL interfaces are not installed as CMake cannot find the The toolkit includes the DPC++/C++ compiler which you'll need for the DPC++ MKL interfaces and to enable SYCL support in SUNDIALS ( Additionally, any user supplied functions (e.g., the ODE right-hand side function) will need to use SYCL for offloading computations to the GPU. See cvAdvDiff_kry_sycl.cpp for an example using SYCL and cvRoberts_blockdiag_onemkl.cpp for an example using SYCL and oneMKL. |
Thank you, I got it now. |
I'm sorry, just another question, is it possible to use SYCL and onemkl with a C interface? Because I'm using suncontext as
while in your example you use c++ syntax
|
I guess the answer is no https://sundials.readthedocs.io/en/latest/Install_link.html?highlight=SYCL#cmakeoption-ENABLE_SYCL |
@ciropom using the C++ convenience class is not required and you can use the C interface to create the SUNContext object like in the C examples. |
Hello all,
On an ubuntu 18.04 I installed onemkl using the intel script ( l_onemkl_p_2022.0.2.136_offline.sh )
then I'm trying to compile sundials with onemkl support.
The config phase is ok, but the generation phase fails, see the full output below
What's wrong here? Can you assist me in the installation procedure?
Thank you
Danilo
The text was updated successfully, but these errors were encountered: