Skip to content

Commit 7533a7d

Browse files
authored
HIP : ignore return of hipMemAdvise [no ci] (ggml-org#20696)
1 parent a69d54f commit 7533a7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ggml/src/ggml-cuda/ggml-cuda.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ static cudaError_t ggml_cuda_device_malloc(void ** ptr, size_t size, int device)
126126
if (err == hipSuccess) {
127127
// hipMemAdviseSetCoarseGrain is an optional performance hint;
128128
// ignore errors (e.g. hipErrorInvalidValue on some APU/iGPU configs).
129-
cudaMemAdvise(*ptr, size, hipMemAdviseSetCoarseGrain, device);
129+
(void)cudaMemAdvise(*ptr, size, hipMemAdviseSetCoarseGrain, device);
130130
(void)hipGetLastError(); // clear any error
131131
}
132132

0 commit comments

Comments
 (0)