oneapi-src / oneapi-src/oneAPI-samples
Failed to building sample of oneCCL_Getting_Started for GPU and CPU
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 745
- PR merge metrics
- No merged PRs in 30d
Description
Summary
Failed to build oneCCL_Getting_Started for gpu with provided steps.
while manual bulid works with icpx -fsycl src/sycl/sycl_allreduce_test.cpp -I./src/include -lccl -lmpi.
Version
oneAPI2024
Environment
Ubuntu 22.04
Steps to reproduce
source ${ONEAPI_ROOT}/setvars.sh --ccl-configuration=cpu_gpu_dpcpp
cd oneapi-toolkit/oneCCL/oneCCL_Getting_Started
mkdir build
cd build
cmake .. -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCOMPUTE_BACKEND=icpx
make sycl_allreduce_test
Observed behavior
$ make sycl_allreduce_test
make: *** No rule to make target 'sycl_allreduce_test'. Stop.
Expected behavior
Build PASS
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 in oneCCL_Getting_Started and inspect the CMake configuration used by the provided commands, then compare it with the manual icpx command for src/sycl/sycl_allreduce_test.cpp. Run the reported cmake and make sycl_allreduce_test steps in the oneAPI 2024 Ubuntu 22.04 environment; done means the target is generated and builds 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