From 4f18a88a5aba481399ac58fdbffc7af13d3bd1f3 Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Fri, 29 Aug 2025 09:17:32 -0700 Subject: [PATCH] add missing `inline` to `cudaMemPrefetchAsync` function --- include/nvexec/stream/common.cuh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/nvexec/stream/common.cuh b/include/nvexec/stream/common.cuh index bb601b27b..12897ba65 100644 --- a/include/nvexec/stream/common.cuh +++ b/include/nvexec/stream/common.cuh @@ -878,9 +878,9 @@ namespace nvexec { inline constexpr _strm::get_stream_t get_stream{}; #if CUDART_VERSION >= 13'00'0 - __host__ cudaError_t cudaMemPrefetchAsync(const void *devPtr, size_t count, - int dstDevice, - cudaStream_t stream = 0) { + __host__ inline cudaError_t cudaMemPrefetchAsync(const void *devPtr, + size_t count, int dstDevice, + cudaStream_t stream = 0) { return ::cudaMemPrefetchAsync( devPtr, count, {.type = cudaMemLocationTypeDevice, .id = dstDevice}, 0, stream);