Skip to content

Commit

Permalink
Update include/cute/arch/copy_xe.hpp
Browse files Browse the repository at this point in the history
Co-authored-by: Atharva Dubey <[email protected]>
  • Loading branch information
mehdi-goli and AD2605 authored Apr 26, 2024
1 parent 11902f9 commit 2dc33e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/cute/arch/copy_xe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ struct XE_2D_U32x8x16x1x1_ST_N
CUTE_HOST_DEVICE static void copy(void *baseoffset, int width, int height,
int pitch, int2_ coord, const T *src) {
#if defined(ARCH_PVC_ACTIVATED)
static_assert(sizeof(T) == 4, "Expected T to have size 4");
__builtin_IB_subgroup_block_write_flat_u32_m8k16v1(
(long)baseoffset, width - 1, height - 1, pitch - 1, coord,
*(uint8 *)src);
static_assert(sizeof(T) == 4, "Expected T to have size 4");
__builtin_IB_subgroup_block_write_flat_u32_m8k16v1(
(long)baseoffset, width - 1, height - 1, pitch - 1, coord,
*(uint8 *)src);
#else
CUTE_INVALID_CONTROL_PATH("Trying to use block loads on non-PVC hardware")
CUTE_INVALID_CONTROL_PATH("Trying to use block loads on non-PVC hardware")
#endif
}
};
Expand Down

0 comments on commit 2dc33e9

Please sign in to comment.