HIP : ignore return of hipMemAdvise [no ci] (#20696)
This commit is contained in:
@@ -126,7 +126,7 @@ static cudaError_t ggml_cuda_device_malloc(void ** ptr, size_t size, int device)
|
|||||||
if (err == hipSuccess) {
|
if (err == hipSuccess) {
|
||||||
// hipMemAdviseSetCoarseGrain is an optional performance hint;
|
// hipMemAdviseSetCoarseGrain is an optional performance hint;
|
||||||
// ignore errors (e.g. hipErrorInvalidValue on some APU/iGPU configs).
|
// 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
|
(void)hipGetLastError(); // clear any error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user