oneapi-src / oneapi-src/oneAPI-samples

Failed to building sample of oneCCL_Getting_Started for GPU and CPU

Open
#2,220 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.