Skip to content

Commit 2c2caa4

Browse files
authored
HIP: Replace usage of depricated preprocessor macro __AMDGCN_WAVEFRONT_SIZE__ (#14183)
1 parent 5fce5f9 commit 2c2caa4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ggml/src/ggml-cuda/common.cuh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,11 @@ static bool cp_async_available(const int cc) {
262262
}
263263

264264
static constexpr __device__ int ggml_cuda_get_physical_warp_size() {
265-
#if defined(GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__)
266-
return __AMDGCN_WAVEFRONT_SIZE;
265+
#if defined(GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__) && (defined(__GFX9__) || defined(__GFX8__))
266+
return 64;
267267
#else
268268
return 32;
269-
#endif // defined(GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__)
269+
#endif // defined(GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__) && (defined(__GFX9__) || defined(__GFX8__))
270270
}
271271

272272
[[noreturn]]

0 commit comments

Comments
 (0)