Faced issue while building particle-diffusion code

未关闭
#2,241 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
cmake, cpp, ubuntu
领域
build-system

调研方向

从 particle-diffusion 的构建配置以及 src/motionsim.hpp 中的编译器错误入手,该文件在编译 src/utils.cpp 时包含 mkl.h。在 source /opt/intel/oneapi/setvars.sh 并运行 cmake ..,随后运行 make 后重现该失败;当示例构建时不再出现缺少头文件的错误,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug

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

主要语言
C++
星标
1.2k
派生
745
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

oneapi-src/oneAPI-samples 的其他 Issue

查看 oneapi-src/oneAPI-samples 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。