mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-13 17:55:48 +00:00
Fix
This commit is contained in:
@@ -1281,14 +1281,20 @@ CK_TILE_DEVICE void async_buffer_load_dwordxn_v(void* smem,
|
||||
index_t /*flag*/ = 0,
|
||||
bool_constant<pre_nop> = {})
|
||||
{
|
||||
// #define CK_TILE_ASYNC_LOAD_WITH_INSTR(instr) \
|
||||
// if constexpr(pre_nop) \
|
||||
// asm volatile("s_nop 4\n" instr " %1, %2, 0 offen offset:%3 lds" \
|
||||
// : "=r"(smem) /*dummy dependency for smem*/ \
|
||||
// : "v"(voffset), "s"(rsrc), "n"(ioffset) \
|
||||
// : "memory"); \
|
||||
// else \
|
||||
// asm volatile(instr " %1, %2, 0 offen offset:%3 lds" \
|
||||
// : "=r"(smem) /*dummy dependency for smem*/ \
|
||||
// : "v"(voffset), "s"(rsrc), "n"(ioffset) \
|
||||
// : "memory");
|
||||
|
||||
#define CK_TILE_ASYNC_LOAD_WITH_INSTR(instr) \
|
||||
if constexpr(pre_nop) \
|
||||
asm volatile("s_nop 4\n" instr " %1, %2, 0 offen offset:%3 lds" \
|
||||
: "=r"(smem) /*dummy dependency for smem*/ \
|
||||
: "v"(voffset), "s"(rsrc), "n"(ioffset) \
|
||||
: "memory"); \
|
||||
else \
|
||||
asm volatile(instr " %1, %2, 0 offen offset:%3 lds" \
|
||||
: "=r"(smem) /*dummy dependency for smem*/ \
|
||||
: "v"(voffset), "s"(rsrc), "n"(ioffset) \
|
||||
: "memory");
|
||||
|
||||
Reference in New Issue
Block a user