Revert membar scope change, leave a comment

This commit is contained in:
Andrzej Janik 2025-09-25 19:03:29 +00:00
commit c4dc46726c

View file

@ -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())