Skip to content

Commit 306750f

Browse files
authored
SWDEV-530921 - Remove __HIP_DEVICE_COMPILE__ macro as the wavefrontsize builtin exists only on device code (#430)
1 parent 618d533 commit 306750f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

hipamd/include/hip/amd_detail/amd_warp_functions.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ inline __device__ const struct final {
8787
__device__
8888
__attribute__((always_inline, const))
8989
operator int() const noexcept {
90-
#ifdef __HIP_DEVICE_COMPILE__
9190
return __builtin_amdgcn_wavefrontsize();
92-
#endif
9391
}
9492
} warpSize{};
9593

0 commit comments

Comments
 (0)