This is an automated email from the ASF dual-hosted git repository.
junrushao pushed a commit to branch unity
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/unity by this push:
new b7471f8315 [Bugfix] Remove duplicate code in nccl.cc (#15800)
b7471f8315 is described below
commit b7471f8315ac50ed42da33db733dfbe3a94eff06
Author: Lesheng Jin <[email protected]>
AuthorDate: Sun Sep 24 08:56:41 2023 -0700
[Bugfix] Remove duplicate code in nccl.cc (#15800)
This pr removes duplicate `SetDevice` in `nccl.cc`.
https://github.com/apache/tvm/blob/cb3763b84d6b17448e76541f622275e11f51ddf0/src/runtime/disco/nccl/nccl.cc#L66-L70
---
src/runtime/disco/nccl/nccl.cc | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/runtime/disco/nccl/nccl.cc b/src/runtime/disco/nccl/nccl.cc
index 8ce6c67d19..7330a457c1 100644
--- a/src/runtime/disco/nccl/nccl.cc
+++ b/src/runtime/disco/nccl/nccl.cc
@@ -67,7 +67,6 @@ inline void SetDevice(int device_id) {
CUDA_CALL(cudaSetDevice(device_id)); }
inline void StreamSynchronize(deviceStream_t stream) {
CUDA_CALL(cudaStreamSynchronize(stream)); }
inline void StreamCreate(deviceStream_t* stream) {
CUDA_CALL(cudaStreamCreate(stream)); }
inline void StreamDestroy(deviceStream_t stream) {
CUDA_CALL(cudaStreamDestroy(stream)); }
-inline void SetDevice(int device_id) { CUDA_CALL(cudaSetDevice(device_id)); }
#else