Skip to content

Commit

Permalink
Fixed illegal PTX syntax (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwu36 authored Dec 1, 2023
1 parent bef1fbc commit 4a1709e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/cutlass/arch/barrier.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,12 @@ struct ClusterBarrier {
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
Expand Down

0 comments on commit 4a1709e

Please sign in to comment.