diff --git a/ptx/src/pass/llvm/emit.rs b/ptx/src/pass/llvm/emit.rs index 3d56f3a..2484440 100644 --- a/ptx/src/pass/llvm/emit.rs +++ b/ptx/src/pass/llvm/emit.rs @@ -3016,7 +3016,8 @@ fn get_scope_membar(scope: ast::MemScope) -> Result<*const i8, TranslateError> { Ok(match scope { ast::MemScope::Cta => c"workgroup", ast::MemScope::Gpu => c"agent", - ast::MemScope::Sys => c"system", + // Don't change to "system", this is the same as __threadfence_system, AMDPGU LLVM expects "" here + ast::MemScope::Sys => c"", ast::MemScope::Cluster => return Err(error_todo()), } .as_ptr())