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
63 lines
2.2 KiB
Plaintext
63 lines
2.2 KiB
Plaintext
# RUN: %stinkytofu-opt --arch gfx1250 %s --StinkyIRVerifierPass --print-output 2>&1
|
|
#
|
|
# Verify that the dedicated CacheScopeModifiers used by SOPP-format memory
|
|
# fences (global_wb / global_inv) is preserved across an IR roundtrip. The
|
|
# fence carries no register operands; its only encoded modifier is the cache
|
|
# scope. A regression that drops `mod.cache_scope` from the modifier
|
|
# serializer would silently demote the fence scope on roundtrip, which is
|
|
# the worst-case correctness failure for a cross-CU/XCD ordering primitive.
|
|
|
|
#--- global_wb scope:SCOPE_DEV: roundtrip must preserve mod.cache_scope
|
|
# and must NOT re-attach mod.mubuf (structural decoupling invariant).
|
|
# CHECK-LABEL: @global_wb_scope_dev
|
|
# CHECK-NOT: [StinkyIRVerifier]
|
|
# CHECK: global_wb
|
|
# CHECK-SAME: mod.cache_scope
|
|
# CHECK-SAME: scope = "SCOPE_DEV"
|
|
# CHECK-NOT: mod.mubuf
|
|
|
|
st.func @global_wb_scope_dev() {
|
|
^entry:
|
|
"st.global_wb"() { issueCycles = 1, latencyCycles = 1, mod.cache_scope = { scope = "SCOPE_DEV" } }
|
|
}
|
|
|
|
#--- global_inv scope:SCOPE_DEV: roundtrip must preserve mod.cache_scope
|
|
# and must NOT re-attach mod.mubuf (structural decoupling invariant).
|
|
# CHECK-LABEL: @global_inv_scope_dev
|
|
# CHECK-NOT: [StinkyIRVerifier]
|
|
# CHECK: global_inv
|
|
# CHECK-SAME: mod.cache_scope
|
|
# CHECK-SAME: scope = "SCOPE_DEV"
|
|
# CHECK-NOT: mod.mubuf
|
|
|
|
st.func @global_inv_scope_dev() {
|
|
^entry:
|
|
"st.global_inv"() { issueCycles = 1, latencyCycles = 1, mod.cache_scope = { scope = "SCOPE_DEV" } }
|
|
}
|
|
|
|
#--- global_wb scope:SCOPE_SE: non-DEV scope must roundtrip too.
|
|
# CHECK-LABEL: @global_wb_scope_se
|
|
# CHECK-NOT: [StinkyIRVerifier]
|
|
# CHECK: global_wb
|
|
# CHECK-SAME: mod.cache_scope
|
|
# CHECK-SAME: scope = "SCOPE_SE"
|
|
# CHECK-NOT: mod.mubuf
|
|
|
|
st.func @global_wb_scope_se() {
|
|
^entry:
|
|
"st.global_wb"() { issueCycles = 1, latencyCycles = 1, mod.cache_scope = { scope = "SCOPE_SE" } }
|
|
}
|
|
|
|
#--- global_inv scope:SCOPE_SYS: symmetric non-DEV coverage on the inv opcode.
|
|
# CHECK-LABEL: @global_inv_scope_sys
|
|
# CHECK-NOT: [StinkyIRVerifier]
|
|
# CHECK: global_inv
|
|
# CHECK-SAME: mod.cache_scope
|
|
# CHECK-SAME: scope = "SCOPE_SYS"
|
|
# CHECK-NOT: mod.mubuf
|
|
|
|
st.func @global_inv_scope_sys() {
|
|
^entry:
|
|
"st.global_inv"() { issueCycles = 1, latencyCycles = 1, mod.cache_scope = { scope = "SCOPE_SYS" } }
|
|
}
|