Skip to content

Commit 4e6d54f

Browse files
committed
Fix: CI fail - unused parameter Werror
1 parent b489b4e commit 4e6d54f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ggml/src/ggml-cuda/mmq.cuh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,15 @@ static constexpr __device__ int mmq_get_granularity_device(const int /*mmq_x*/)
250250
}
251251
#endif // AMD_MFMA_AVAILABLE
252252

253-
static int mmq_get_nwarps_host(const int cc) {
254253
#if defined(GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__)
254+
static int mmq_get_nwarps_host(const int cc) {
255255
return amd_mfma_available(cc) ? 8 : 4;
256+
}
256257
#else
258+
static int mmq_get_nwarps_host(const int /*cc*/) {
257259
return 8;
258-
#endif // (GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__)
259260
}
261+
#endif // (GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__)
260262

261263
static constexpr __device__ int mmq_get_nwarps_device() {
262264
#if defined(GGML_USE_HIP) && defined(__HIP_PLATFORM_AMD__)

0 commit comments

Comments
 (0)