Please teach me the steps to run the oneDNN sample code on a GPU (DPC ++).
I have confirmed that it works on the CPU by following the steps below.
I have created a project by selecting oneDNN CNN FP32 Inference from Browse Intel oneAPI Samples in the Visual Studio IDE.
I run it referring to the contents of README.md.
"C:\Program Files (x86)\intel\oneapi\setvars.bat" --dnnl-configuration=cpu_vcomp
mkdir build cd build cmake -G "Visual Studio 16 2019" .. cmake --build .
The code will be run, but on CPU.
Use time: 15.12 ms per iteration.
Example passed on CPU.
Also, if you specify the gpu option in step 4, the following error will be displayed.
" Application couldn't find GPU, please run with CPU instead."
I think the error is wrong because other samples, such as Vector Add, can be run on the GPU.
I think this procedure was compiled with MSVC. (cpu only)
I want to build and run oneDNN sample code on GPU (DPC ++).
OS: Windows 10 Home
Microsoft Visual Studio 2019 Professional (ver.16.7.7)
Intel oneapi beta 10
Compiler: Intel oneAPI DPC++ Compiler (2021.1.2288)
CPU: Intel Core i7-1065G7 1.3GHz
Accelerator:Iris Plus Graphics
driver ver.: 22.214.171.12481