From 4a1709e17e021c483b10303be8d30c72a5b3aecb Mon Sep 17 00:00:00 2001 From: Haicheng Wu <57973641+hwu36@users.noreply.github.com> Date: Fri, 1 Dec 2023 12:29:48 -0500 Subject: [PATCH] Fixed illegal PTX syntax (#1225) --- include/cutlass/arch/barrier.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/cutlass/arch/barrier.h b/include/cutlass/arch/barrier.h index 6daffcef..3ef5e110 100644 --- a/include/cutlass/arch/barrier.h +++ b/include/cutlass/arch/barrier.h @@ -267,13 +267,12 @@ public: static void arrive(ValueType const* smem_ptr) { #if CUDA_BARRIER_ENABLED uint32_t smem_addr = cute::cast_smem_ptr_to_uint(smem_ptr); - uint64_t state = 0; asm volatile( "{\n\t" - "mbarrier.arrive.shared.b64 %1, [%0];\n\t" + "mbarrier.arrive.shared.b64 _, [%0];\n\t" "}" : - : "r"(smem_addr), "l"(state)); + : "r"(smem_addr)); #elif defined(__CUDA_ARCH__) asm volatile ("brkpt;\n" ::); #endif