I have built the oneAPI-samples\Libraries\oneMKL\matrix_mul_mkl\matrix_mul_mkl.cpp sample for Windows.
I created a new project with the oneAPI (2021.2.0) VS2019 Extension Wizard .
I added the mkl_core_dll.lib;mkl_sycl_dll.lib libraries to properly link.
Now, the Release build works, but the Debug build crashes here
with the error
Exception thrown at 0x00007FF8BF195460 (sycl.dll) in Mat_Mult_MKL.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
Here are the cpp and the project files.