Closed
Description
The following error is produced when attempting to compile SYCL applications for AMD GPUs (tested on two different systems and with different SYCL applications, including with the simple_program
example application from Getting Started with oneAPI DPC++):
llvm-foreach: No such file or directory
clang-14: error: amdgcn-link command failed with exit code 1 (use -v to see invocation)
Command used:
clang++ -fsycl -fsycl-targets=amdgcn-amd-amdhsa-sycldevice -Xsycl-target-backend --offload-arch=gfx906 simple-sycl-app.cpp -o simple-sycl-app-amd.exe
The DPC++ compiler (git describe: 2020-12-23532-gd1ed8a1) has been compiled for the ROCm target, following the instructions in:
https://intel.github.io/llvm-docs/GetStartedGuide.html#build-dpc-toolchain-with-support-for-amd-rocm
This is a bug, right?