From: uvos Date: Wed, 18 Mar 2026 08:53:13 +0000 (+0100) Subject: HIP : ignore return of hipMemAdvise [no ci] (#20696) X-Git-Tag: upstream/0.0.8611~209 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=7533a7d5096894df1d9dd842856cd4b7e16ef4ba;p=pkg%2Fggml%2Fsources%2Fllama.cpp HIP : ignore return of hipMemAdvise [no ci] (#20696) --- diff --git a/ggml/src/ggml-cuda/ggml-cuda.cu b/ggml/src/ggml-cuda/ggml-cuda.cu index 5a0be4a47..a31e843e1 100644 --- a/ggml/src/ggml-cuda/ggml-cuda.cu +++ b/ggml/src/ggml-cuda/ggml-cuda.cu @@ -126,7 +126,7 @@ static cudaError_t ggml_cuda_device_malloc(void ** ptr, size_t size, int device) if (err == hipSuccess) { // hipMemAdviseSetCoarseGrain is an optional performance hint; // ignore errors (e.g. hipErrorInvalidValue on some APU/iGPU configs). - cudaMemAdvise(*ptr, size, hipMemAdviseSetCoarseGrain, device); + (void)cudaMemAdvise(*ptr, size, hipMemAdviseSetCoarseGrain, device); (void)hipGetLastError(); // clear any error }