Skip to content

[HIP] amdgpu_unsafe_atomics failing in pulldown https://github.com/intel/llvm/pull/20373 #20465

@jsji

Description

@jsji

Describe the bug

FAIL: SYCL :: check_device_code/hip/atomic/amdgpu_unsafe_atomics.cpp (233 of 972)
******************** TEST 'SYCL :: check_device_code/hip/atomic/amdgpu_unsafe_atomics.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):

RUN: at line 2

/__w/llvm/llvm/build/bin/clang --driver-mode=g++ -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=gfx90a -fsycl -fsycl-targets=amdgcn-amd-amdhsa /__w/llvm/llvm/src/sycl/test/check_device_code/hip/atomic/amdgpu_unsafe_atomics.cpp -S -emit-llvm -o - | FileCheck /__w/llvm/llvm/src/sycl/test/check_device_code/hip/atomic/amdgpu_unsafe_atomics.cpp --check-prefixes=CHECK,CHECK-SAFE

executed command: /__w/llvm/llvm/build/bin/clang --driver-mode=g++ -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=gfx90a -fsycl -fsycl-targets=amdgcn-amd-amdhsa /__w/llvm/llvm/src/sycl/test/check_device_code/hip/atomic/amdgpu_unsafe_atomics.cpp -S -emit-llvm -o -

note: command had no output on stdout or stderr

executed command: FileCheck /__w/llvm/llvm/src/sycl/test/check_device_code/hip/atomic/amdgpu_unsafe_atomics.cpp --check-prefixes=CHECK,CHECK-SAFE

.---command stderr------------

| /__w/llvm/llvm/src/sycl/test/check_device_code/hip/atomic/amdgpu_unsafe_atomics.cpp:16:21: error: CHECK-SAFE-NOT: excluded string found in input

| // CHECK-SAFE-NOT: atomicrmw

| ^

| :44:7: note: found here

| %2 = atomicrmw fadd ptr addrspace(1) %0, float 1.000000e+00 syncscope("agent") monotonic, align 4, !amdgpu.no.fine.grained.memory !10, !amdgpu.no.remote.memory !10

| ^~~~~~~~~

|

| Input file:

| Check file: /__w/llvm/llvm/src/sycl/test/check_device_code/hip/atomic/amdgpu_unsafe_atomics.cpp

|

| -dump-input=help explains the following input dump.

|

| Input was:

| <<<<<<

| .

| .

| .

| 39: ret void

| 40: }

| 41:

| 42: ; Function Attrs: mustprogress nofree norecurse nounwind willreturn memory(argmem: readwrite)

| 43: define internal fastcc void @_Z21__spirv_AtomicFAddEXTPU3AS1fiif(ptr addrspace(1) noundef captures(none) %0) unnamed_addr #2 {

| 44: %2 = atomicrmw fadd ptr addrspace(1) %0, float 1.000000e+00 syncscope("agent") monotonic, align 4, !amdgpu.no.fine.grained.memory !10, !amdgpu.no.remote.memory !10

| not:16 !~~~~~~~~ error: no match expected

| 45: ret void

| 46: }

| 47:

| 48: ; Function Attrs: nofree norecurse nounwind memory(argmem: readwrite)

| 49: define internal fastcc void @_Z21__spirv_AtomicFAddEXTPU3AS1diid(ptr addrspace(1) noundef captures(none) %0) unnamed_addr #1 !sycl_used_aspects !15 {

| .

| .

| .

| >>>>>>

`-----------------------------

error: command failed with exit status: 1

To reproduce

  1. Include code snippet as short as possible
  2. Specify the command which should be used to compile the program
  3. Specify the command which should be used to launch the program
  4. Indicate what is wrong and what was expected

Environment

  • OS: [e.g Windows/Linux]
  • Target device and vendor: [e.g. AMD GPU]
  • DPC++ version: [e.g. commit hash or output of clang++ --version]
  • Dependencies version: [e.g. the output of rocm-smi and sycl-ls --verbose]

Additional context

No response

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