[HIP] amdgpu_unsafe_atomics failing in pulldown https://github.com/intel/llvm/pull/20373
- Dominant language
- LLVM
- Stars
- 1.5k
- Forks
- 854
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 137
Description
### 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_
Contributor guide
Assessment
This issue has not been assessed yet.