HIP : ignore return of hipMemAdvise [no ci] (llama/20696)

This commit is contained in:
uvos 2026-03-18 09:53:13 +01:00 committed by Georgi Gerganov
parent e222814fc4
commit 61c7cd024d
1 changed files with 1 additions and 1 deletions

View File

@ -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
}