oneapi-src / oneapi-src/oneAPI-samples
tbb library linking issue
Nobody has claimed this yet.
- 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
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.
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