oneDNN: CMake Error at cmake/dpcpp_driver_check.cmake
When I install oneDNN, the following errors occur. I hope the community can help me solve them.
export CC=icx
export CXX=icpx
cmake .. -DDNNL_CPU_RUNTIME=DPCPP -DDNNL_GPU_RUNTIME=DPCPP
then
CMake Error at cmake/dpcpp_driver_check.cmake:36 (message):
GNU doesn't support -fsycl flag.
Call Stack (most recent call first):
cmake/dpcpp_driver_check.cmake:60 (CHECK_COMPILER_DRIVER)
cmake/SYCL.cmake:30 (include)
CMakeLists.txt:116 (include)
Environment: intel Arc gpu | ubutun22.04 wsl
Intel GPU driver and Intel oneAPI Base Toolkit have been installed
In addition,
test the dpcpp command when installing the oneapi. Unable to find the cstddef, I used sudo apt get install build essential to solve the problem. I don’t know if this is the reason
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (7 by maintainers)
Sometimes CC and CXX variables are not picked up by CMake. Can you try to specify compiler using the following CMake options
-DCMAKE_CXX_COMPILERand-DCMAKE_C_COMPILER?