File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -162,11 +162,23 @@ else
162
162
echo " BUILD_DEBUG_INFO was not set, skipping debug info"
163
163
fi
164
164
165
+ if [[ " $DISABLE_RCCL " = 1 ]]; then
166
+ echo " Disabling NCCL/RCCL in pyTorch"
167
+ USE_RCCL=0
168
+ USE_NCCL=0
169
+ USE_KINETO=0
170
+ else
171
+ USE_RCCL=1
172
+ USE_NCCL=1
173
+ USE_KINETO=1
174
+ fi
175
+
165
176
echo " Calling setup.py bdist at $( date) "
166
177
time CMAKE_ARGS=${CMAKE_ARGS[@]} \
167
- EXTRA_CAFFE2_CMAKE_FLAGS=${EXTRA_CAFFE2_CMAKE_FLAGS[@]} \
168
- BUILD_LIBTORCH_CPU_WITH_DEBUG=$BUILD_DEBUG_INFO \
169
- python setup.py bdist_wheel -d /tmp/$WHEELHOUSE_DIR
178
+ EXTRA_CAFFE2_CMAKE_FLAGS=${EXTRA_CAFFE2_CMAKE_FLAGS[@]} \
179
+ BUILD_LIBTORCH_CPU_WITH_DEBUG=$BUILD_DEBUG_INFO \
180
+ USE_NCCL=${USE_NCCL} USE_RCCL=${USE_RCCL} USE_KINETO=${USE_KINETO} \
181
+ python setup.py bdist_wheel -d /tmp/$WHEELHOUSE_DIR
170
182
echo " Finished setup.py bdist at $( date) "
171
183
172
184
# Build libtorch packages
You can’t perform that action at this time.
0 commit comments