File tree Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ include(external/boost) # download boost
142
142
include (external/any ) # download libn::any
143
143
include (external/eigen ) # download eigen3
144
144
include (external/pybind11 ) # download pybind11
145
- include (external/nccl )
146
145
include (external/cares )
147
146
include (external/grpc )
148
147
Original file line number Diff line number Diff line change 1
1
if (WITH_GPU )
2
- cc_library (enforce SRCS enforce.cc DEPS nccl )
2
+ cc_library (enforce SRCS enforce.cc DEPS )
3
3
else ()
4
4
cc_library (enforce SRCS enforce.cc )
5
5
endif ()
Original file line number Diff line number Diff line change 1
1
cc_library (dynamic_loader SRCS dynamic_loader.cc DEPS glog gflags enforce )
2
2
nv_library (dynload_cuda SRCS cublas.cc cudnn.cc curand.cc nccl.cc
3
- DEPS dynamic_loader nccl )
3
+ DEPS dynamic_loader )
4
4
cc_library (dynload_warpctc SRCS warpctc.cc DEPS dynamic_loader warpctc )
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ TEST(NCCL, all_reduce) {
89
89
90
90
VLOG (1 ) << " Invoking ncclAllReduce" ;
91
91
92
+ dynload::ncclGroupStart ();
92
93
for (int i = 0 ; i < dev_count; ++i) {
93
94
VLOG (1 ) << " Invoking ncclAllReduce with device " << i;
94
95
SetDeviceId (i);
@@ -97,6 +98,7 @@ TEST(NCCL, all_reduce) {
97
98
ncclSum, comms[i], data[i]->dev_ctx .stream ()));
98
99
VLOG (1 ) << " Invoked ncclAllReduce for device " << i;
99
100
}
101
+ dynload::ncclGroupEnd ();
100
102
101
103
VLOG (1 ) << " Invoked ncclAllReduce" ;
102
104
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ function cmake_gen() {
34
34
Configuring cmake in /paddle/build ...
35
35
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:- Release}
36
36
${PYTHON_FLAGS}
37
+ -DWITH_DSO=ON
37
38
-DWITH_DOC=OFF
38
39
-DWITH_GPU=${WITH_GPU:- OFF}
39
40
-DWITH_DISTRIBUTE=${WITH_DISTRIBUTE:- OFF}
57
58
cmake .. \
58
59
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:- Release} \
59
60
${PYTHON_FLAGS} \
61
+ -DWITH_DSO=ON \
60
62
-DWITH_DOC=OFF \
61
63
-DWITH_GPU=${WITH_GPU:- OFF} \
62
64
-DWITH_DISTRIBUTE=${WITH_DISTRIBUTE:- OFF} \
171
173
if [[ ${WITH_GPU} == " ON" ]]; then
172
174
NCCL_DEPS=" apt-get install -y libnccl-dev &&"
173
175
else
174
- NCCL_DEPS=" "
176
+ NCCL_DEPS=" "
175
177
fi
176
178
177
179
cat >> /paddle/build/Dockerfile << EOF
187
189
ldconfig
188
190
${DOCKERFILE_CUDNN_DSO}
189
191
${DOCKERFILE_GPU_ENV}
192
+ ENV NCCL_LAUNCH_MODE PARALLEL
190
193
ADD go/cmd/pserver/pserver /usr/bin/
191
194
ADD go/cmd/master/master /usr/bin/
192
195
# default command shows the paddle version and exit
You can’t perform that action at this time.
0 commit comments