oneapi-src / oneAPI-samples

Samples for Intel® oneAPI Toolkits
https://oneapi-src.github.io/oneAPI-samples/
MIT License
945 stars 691 forks source link

Faced issue while building particle-diffusion code #2241

Open sobintho opened 7 months ago

sobintho commented 7 months ago

Summary

Provide a short summary of the issue. Sections below provide guidance on what factors are considered important to reproduce an issue.

Version

Report oneAPI Toolkit version and oneAPI Sample version or hash.

Faced issue while building particle diffusion code

root@ubuntu-server:/home/gta/oneAPI-samples/DirectProgramming/C++SYCL/StructuredGrids/particle-diffusion/build# make [ 25%] Building CXX object src/CMakeFiles/motionsim.exe.dir/utils.cpp.o In file included from /home/gta/oneAPI-samples/DirectProgramming/C++SYCL/StructuredGrids/particle-diffusion/src/utils.cpp:11: /home/gta/oneAPI-samples/DirectProgramming/C++SYCL/StructuredGrids/particle-diffusion/src/motionsim.hpp:37:10: fatal error: 'mkl.h' file not found

include

     ^~~~~~~

1 error generated. make[2]: [src/CMakeFiles/motionsim.exe.dir/build.make:76: src/CMakeFiles/motionsim.exe.dir/utils.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:99: src/CMakeFiles/motionsim.exe.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

Environment

Provide OS information and hardware information if applicable.

Ubuntu

Steps to reproduce

Please check that the issue is reproducible with the latest revision on master. Include all the steps to reproduce the issue.

Installed oneapi

root@ubuntu-server:/home/gta/oneAPI-samples/DirectProgramming/C++SYCL/StructuredGrids/particle-diffusion/build# source /opt/intel/oneapi/setvars.sh --force

:: initializing oneAPI environment ... bash: BASH_VERSION = 5.1.16(1)-release args: Using "$@" for setvars.sh arguments: --force :: advisor -- latest :: ccl -- latest :: clck -- latest :: compiler -- latest :: dal -- latest :: debugger -- latest :: dev-utilities -- latest :: dnnl -- latest :: dpcpp-ct -- latest :: dpl -- latest :: inspector -- latest :: ipp -- latest :: ippcp -- latest :: itac -- latest :: mpi -- latest :: tbb -- latest :: vtune -- latest :: oneAPI environment initialized ::

Went inside this folder /home/gta/oneAPI-samples/DirectProgramming/C++SYCL/StructuredGrids/particle-diffusion/build cmake .. make

Getting error

root@ubuntu-server:/home/gta/oneAPI-samples/DirectProgramming/C++SYCL/StructuredGrids/particle-diffusion/build# make [ 25%] Building CXX object src/CMakeFiles/motionsim.exe.dir/utils.cpp.o In file included from /home/gta/oneAPI-samples/DirectProgramming/C++SYCL/StructuredGrids/particle-diffusion/src/utils.cpp:11: /home/gta/oneAPI-samples/DirectProgramming/C++SYCL/StructuredGrids/particle-diffusion/src/motionsim.hpp:37:10: fatal error: 'mkl.h' file not found

include

     ^~~~~~~

1 error generated. make[2]: [src/CMakeFiles/motionsim.exe.dir/build.make:76: src/CMakeFiles/motionsim.exe.dir/utils.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:99: src/CMakeFiles/motionsim.exe.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

sobintho commented 7 months ago

Any updates ?

sobintho commented 7 months ago

Any updates ?