Skip to content

Commit 4f18a88

Browse files
committed
add missing inline to cudaMemPrefetchAsync function
1 parent a3374f5 commit 4f18a88

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/nvexec/stream/common.cuh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -878,9 +878,9 @@ namespace nvexec {
878878
inline constexpr _strm::get_stream_t get_stream{};
879879

880880
#if CUDART_VERSION >= 13'00'0
881-
__host__ cudaError_t cudaMemPrefetchAsync(const void *devPtr, size_t count,
882-
int dstDevice,
883-
cudaStream_t stream = 0) {
881+
__host__ inline cudaError_t cudaMemPrefetchAsync(const void *devPtr,
882+
size_t count, int dstDevice,
883+
cudaStream_t stream = 0) {
884884
return ::cudaMemPrefetchAsync(
885885
devPtr, count, {.type = cudaMemLocationTypeDevice, .id = dstDevice}, 0,
886886
stream);

0 commit comments

Comments
 (0)