CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
97 lines
4.4 KiB
LLVM
97 lines
4.4 KiB
LLVM
; RUN: llc -mtriple=amdgcn -mcpu=gfx90a --pass-remarks=si-lower \
|
|
; RUN: %s -o - 2>&1 | FileCheck %s --check-prefix=GFX90A-HW
|
|
|
|
; GFX90A-HW: Hardware instruction generated for atomic fadd operation at memory scope agent due to an unsafe request.
|
|
; GFX90A-HW: Hardware instruction generated for atomic fadd operation at memory scope workgroup due to an unsafe request.
|
|
; GFX90A-HW: Hardware instruction generated for atomic fadd operation at memory scope wavefront due to an unsafe request.
|
|
; GFX90A-HW: Hardware instruction generated for atomic fadd operation at memory scope singlethread due to an unsafe request.
|
|
; GFX90A-HW: Hardware instruction generated for atomic fadd operation at memory scope agent-one-as due to an unsafe request.
|
|
; GFX90A-HW: Hardware instruction generated for atomic fadd operation at memory scope workgroup-one-as due to an unsafe request.
|
|
; GFX90A-HW: Hardware instruction generated for atomic fadd operation at memory scope wavefront-one-as due to an unsafe request.
|
|
; GFX90A-HW: Hardware instruction generated for atomic fadd operation at memory scope singlethread-one-as due to an unsafe request.
|
|
|
|
; GFX90A-HW-LABEL: atomic_add_unsafe_hw:
|
|
; GFX90A-HW: ds_add_f64 v2, v[0:1]
|
|
; GFX90A-HW: s_endpgm
|
|
define amdgpu_kernel void @atomic_add_unsafe_hw(ptr addrspace(3) %ptr) #0 {
|
|
main_body:
|
|
%ret = atomicrmw fadd ptr addrspace(3) %ptr, double 4.0 seq_cst
|
|
ret void
|
|
}
|
|
|
|
; GFX90A-HW-LABEL: atomic_add_unsafe_hw_agent:
|
|
; GFX90A-HW: global_atomic_add_f32 v0, v1, s[2:3]
|
|
; GFX90A-HW: s_endpgm
|
|
define amdgpu_kernel void @atomic_add_unsafe_hw_agent(ptr addrspace(1) %ptr, float %val) #0 {
|
|
main_body:
|
|
%ret = atomicrmw fadd ptr addrspace(1) %ptr, float %val syncscope("agent") monotonic, align 4, !amdgpu.no.fine.grained.memory !0
|
|
ret void
|
|
}
|
|
|
|
; GFX90A-HW-LABEL: atomic_add_unsafe_hw_wg:
|
|
; GFX90A-HW: global_atomic_add_f32 v0, v1, s[2:3]
|
|
; GFX90A-HW: s_endpgm
|
|
define amdgpu_kernel void @atomic_add_unsafe_hw_wg(ptr addrspace(1) %ptr, float %val) #0 {
|
|
main_body:
|
|
%ret = atomicrmw fadd ptr addrspace(1) %ptr, float %val syncscope("workgroup") monotonic, align 4, !amdgpu.no.fine.grained.memory !0
|
|
ret void
|
|
}
|
|
|
|
; GFX90A-HW-LABEL: atomic_add_unsafe_hw_wavefront:
|
|
; GFX90A-HW: global_atomic_add_f32 v0, v1, s[2:3]
|
|
; GFX90A-HW: s_endpgm
|
|
define amdgpu_kernel void @atomic_add_unsafe_hw_wavefront(ptr addrspace(1) %ptr, float %val) #0 {
|
|
main_body:
|
|
%ret = atomicrmw fadd ptr addrspace(1) %ptr, float %val syncscope("wavefront") monotonic, align 4, !amdgpu.no.fine.grained.memory !0
|
|
ret void
|
|
}
|
|
|
|
; GFX90A-HW-LABEL: atomic_add_unsafe_hw_single_thread:
|
|
; GFX90A-HW: global_atomic_add_f32 v0, v1, s[2:3]
|
|
; GFX90A-HW: s_endpgm
|
|
define amdgpu_kernel void @atomic_add_unsafe_hw_single_thread(ptr addrspace(1) %ptr, float %val) #0 {
|
|
main_body:
|
|
%ret = atomicrmw fadd ptr addrspace(1) %ptr, float %val syncscope("singlethread") monotonic, align 4, !amdgpu.no.fine.grained.memory !0
|
|
ret void
|
|
}
|
|
|
|
; GFX90A-HW-LABEL: atomic_add_unsafe_hw_aoa:
|
|
; GFX90A-HW: global_atomic_add_f32 v0, v1, s[2:3]
|
|
; GFX90A-HW: s_endpgm
|
|
define amdgpu_kernel void @atomic_add_unsafe_hw_aoa(ptr addrspace(1) %ptr, float %val) #0 {
|
|
main_body:
|
|
%ret = atomicrmw fadd ptr addrspace(1) %ptr, float %val syncscope("agent-one-as") monotonic, align 4, !amdgpu.no.fine.grained.memory !0
|
|
ret void
|
|
}
|
|
|
|
; GFX90A-HW-LABEL: atomic_add_unsafe_hw_wgoa:
|
|
; GFX90A-HW: global_atomic_add_f32 v0, v1, s[2:3]
|
|
; GFX90A-HW: s_endpgm
|
|
define amdgpu_kernel void @atomic_add_unsafe_hw_wgoa(ptr addrspace(1) %ptr, float %val) #0 {
|
|
main_body:
|
|
%ret = atomicrmw fadd ptr addrspace(1) %ptr, float %val syncscope("workgroup-one-as") monotonic, align 4, !amdgpu.no.fine.grained.memory !0
|
|
ret void
|
|
}
|
|
|
|
; GFX90A-HW-LABEL: atomic_add_unsafe_hw_wfoa:
|
|
; GFX90A-HW: global_atomic_add_f32 v0, v1, s[2:3]
|
|
; GFX90A-HW: s_endpgm
|
|
define amdgpu_kernel void @atomic_add_unsafe_hw_wfoa(ptr addrspace(1) %ptr, float %val) #0 {
|
|
main_body:
|
|
%ret = atomicrmw fadd ptr addrspace(1) %ptr, float %val syncscope("wavefront-one-as") monotonic, align 4, !amdgpu.no.fine.grained.memory !0
|
|
ret void
|
|
}
|
|
|
|
; GFX90A-HW-LABEL: atomic_add_unsafe_hw_stoa:
|
|
; GFX90A-HW: global_atomic_add_f32 v0, v1, s[2:3]
|
|
; GFX90A-HW: s_endpgm
|
|
define amdgpu_kernel void @atomic_add_unsafe_hw_stoa(ptr addrspace(1) %ptr, float %val) #0 {
|
|
main_body:
|
|
%ret = atomicrmw fadd ptr addrspace(1) %ptr, float %val syncscope("singlethread-one-as") monotonic, align 4, !amdgpu.no.fine.grained.memory !0
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { denormal_fpenv(preservesign) }
|
|
|
|
!0 = !{}
|