Skip to content

Commit af741dc

Browse files
pieternteng-li
authored andcommitted
[c10d] Fix link order for building C++ tests (#8889)
List dependency on gloo_cuda before dependency on gloo such that unresolved symbols in gloo_cuda are correctly resolved (since the linker resolves from left to right). This fixes building c10d C++ tests on GCC 4.8.
1 parent 8ef5d37 commit af741dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/lib/c10d/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ set(C10D_SRCS
7777

7878
set(C10D_LIBS
7979
caffe2_gpu
80-
${Gloo_NATIVE_LIBRARY}
8180
${Gloo_LIBRARY}
81+
${Gloo_NATIVE_LIBRARY}
8282
)
8383

8484
if(DISTRIBUTED_NCCL_FOUND)

0 commit comments

Comments
 (0)