HIP: Replace usage of depricated preprocessor macro __AMDGCN_WAVEFRONT_SIZE__ (llama/14183)

This commit is contained in:
uvos
2025-06-15 15:45:27 +02:00
committed by Georgi Gerganov
parent 4ea599afdf
commit aeaed9806f

View File

@ -262,11 +262,11 @@ static bool cp_async_available(const int cc) {
} }
static constexpr __device__ int ggml_cuda_get_physical_warp_size() { static constexpr __device__ int ggml_cuda_get_physical_warp_size() {
#if defined(GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__) #if defined(GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__) && (defined(__GFX9__) || defined(__GFX8__))
return __AMDGCN_WAVEFRONT_SIZE; return 64;
#else #else
return 32; return 32;
#endif // defined(GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__) #endif // defined(GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__) && (defined(__GFX9__) || defined(__GFX8__))
} }
[[noreturn]] [[noreturn]]