oneapi-src / oneapi-src/oneAPI-samples

tbb library linking issue

Open
#754 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
1.2k
Forks
745
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the DirectProgramming/DPC++/ParallelPatterns/dpc_reduce example and its README. Reproduce the reported CMake and make build using oneAPI Toolkit 2021.4.0.3422 on Ubuntu 20.04, then inspect the link step around the reported TBB undefined reference. Done means the sample compiles successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.