Faced issue while building particle-diffusion code
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cmake, cpp, ubuntu
- Domain
- build-system
Research direction
Start with the particle-diffusion build configuration and the compiler error from src/motionsim.hpp, which includes mkl.h while compiling src/utils.cpp. Reproduce the failure after sourcing /opt/intel/oneapi/setvars.sh and running cmake .. followed by make; done means the sample builds without the missing-header error.
Written by the indexing model from the issue text.
Description
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 <mkl.h>
^~~~~~~
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 <mkl.h>
^~~~~~~
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
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 745
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from oneapi-src/oneAPI-samples
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
oneapi-src/oneAPI-samples#2764 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
oneapi-src/oneAPI-samples#2748 ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
oneapi-src/oneAPI-samples#2746 ·
-
Lenovo Thinkpad T440p Ethernet issue warning sign show install multiple times but same issue face Openquestion
Difficulty 4/5 3-5 days Newbie friendliness 15/100
oneapi-src/oneAPI-samples#2739 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
oneapi-src/oneAPI-samples#2705 ·
All issues in oneapi-src/oneAPI-samples
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·