Skip to content

[ROCm] Problem compiling for AMD GPUs #4390

Closed
@rjfnobre

Description

@rjfnobre

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghipIssues related to execution on HIP backend.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions