Skip to content

Commit b237dc9

Browse files
houseroadPenghuiCheng
authored andcommitted
Fix the build of aten tests when FULL_CAFFE2=1
Summary: Pull Request resolved: pytorch#11019 Reviewed By: orionr Differential Revision: D9562691 Pulled By: houseroad fbshipit-source-id: 95a8dee580e5f4dc9af3a2e1f68ec6c62a0e4e04
1 parent d19cbcc commit b237dc9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/build_pytorch_libs.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,12 @@ function build_caffe2() {
281281
# STOP!!! Are you trying to add a C or CXX flag? Add it
282282
# to CMakeLists.txt and aten/CMakeLists.txt, not here.
283283
# We need the vanilla cmake build to work.
284+
285+
# This is needed by the aten tests built with caffe2
286+
if [ -f "${INSTALL_DIR}/lib/libnccl.so" ] && [ ! -f "lib/libnccl.so.1" ]; then
287+
cp "${INSTALL_DIR}/lib/libnccl.so.1" "lib/libnccl.so.1"
288+
fi
289+
284290
${CMAKE_INSTALL} -j"$MAX_JOBS"
285291

286292
# Install Python proto files

0 commit comments

Comments
 (0)