oneapi-src / oneapi-src/oneAPI-samples

tbb library linking issue

未关闭
#754 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

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

描述

Summary

Trying to compile oneapi-sample code example dpc_reducer( https://github.com/oneapi-src/oneAPI-samples/tree/master/DirectProgramming/DPC%2B%2B/ParallelPatterns/dpc_reduce)

Version

oneAPI Toolkit version: l_BaseKit_p_2021.4.0.3422_offline.sh
oneAPI Sample version: latest master branch.

Environment

OS: Ubuntu 20.04
Hardware : NUC9

Steps to reproduce

followed dpc_reduce example README file.
export I_MPI_CXX=dpcpp
cmake ../
make

Observed behavior

following compile time error is coming.
**/usr/bin/ld: /tmp/main-585a82.o: in function task_group_context': /opt/intel/oneapi/tbb/2021.4.0/env/../include/tbb/../oneapi/tbb/task_group.h:271: undefined reference to tbb::detail::r1::initialize(tbb::detail::d1::task_group_context&)'**

Expected behavior

should be compile successfully.

贡献指南

打开贡献指南

从这里开始

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

调研方向

从 DirectProgramming/DPC++/ParallelPatterns/dpc_reduce 示例及其 README 开始。使用 Ubuntu 20.04 上的 oneAPI Toolkit 2021.4.0.3422 重现报告中的 CMake 和 make 构建,然后检查报告的 TBB 未定义引用所在的链接步骤。示例成功编译即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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