Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions csrc/multidevice/cuda_p2p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,11 @@ void postBroadcastWithCudaBackend(
launchMulticastKernel(
multicast_handle->bufferMulticastPtr(), src_ptr, count, stream);
} else if (protocol == MulticastProtocol::BatchMemcpy) {
#if CUDA_VERSION < 12080
NVF_THROW(
"cudaMemcpyBatchAsync backend is not supported for CUDA version < "
"12.8");
#else
std::vector<void*> dsts(world_size);
std::vector<const void*> srcs(world_size, src_ptr);
std::vector<size_t> counts(world_size, count);
Expand Down Expand Up @@ -311,6 +316,7 @@ void postBroadcastWithCudaBackend(
numAttrs,
&failIdx,
(cudaStream_t)stream));
#endif
#endif
} else {
NVFUSER_CUDA_RT_SAFE_CALL(cudaMemcpyAsync(
Expand Down Expand Up @@ -419,6 +425,11 @@ void postAllgatherWithCudaBackend(
count,
stream);
} else if (protocol == MulticastProtocol::BatchMemcpy) {
#if CUDA_VERSION < 12080
NVF_THROW(
"cudaMemcpyBatchAsync backend is not supported for CUDA version < "
"12.8");
#else
std::vector<void*> dsts(world_size);
std::vector<const void*> srcs(world_size, src_ptr);
std::vector<size_t> counts(world_size, count);
Expand Down Expand Up @@ -462,6 +473,7 @@ void postAllgatherWithCudaBackend(
numAttrs,
&failIdx,
(cudaStream_t)stream));
#endif
#endif
} else {
NVFUSER_CUDA_RT_SAFE_CALL(cudaMemcpyAsync(
Expand Down