This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 7c21470a38 [BugFix][Vulkan][CodeGen] Change OpControlBarrier to
AcquireRelease (#19619)
7c21470a38 is described below
commit 7c21470a38da40f3c31fa33018fb712b87d6ee49
Author: Karl Sassie <[email protected]>
AuthorDate: Wed May 27 21:39:22 2026 +0200
[BugFix][Vulkan][CodeGen] Change OpControlBarrier to AcquireRelease (#19619)
Fixes #18915
Vulkan codegen previously generated sequentially constistant
OpControlBarrier SPIR-V instructions, which is invalid for Vulkan, where
we would expect AcquireRelease.
---
src/target/vulkan/codegen_spirv.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/target/vulkan/codegen_spirv.cc
b/src/target/vulkan/codegen_spirv.cc
index 7a8abce7df..3e67d2ea1f 100644
--- a/src/target/vulkan/codegen_spirv.cc
+++ b/src/target/vulkan/codegen_spirv.cc
@@ -160,7 +160,7 @@ spirv::Value CodeGenSPIRV::CreateStorageSync(const
CallNode* op) {
uint32_t vulkan_api_version = spirv_support_.vulkan_api_version;
int64_t sync_scope;
- int64_t memory_semantics = spv::MemorySemanticsSequentiallyConsistentMask;
+ int64_t memory_semantics = spv::MemorySemanticsAcquireReleaseMask;
if ((sync == "warp") && (vulkan_api_version >= VK_API_VERSION_1_1)) {
// Synchronize control at the Subgroup level, but memory at the
// Workgroup level. This is because different invocations in a