NVIDIA / nccl-tests

NCCL Tests
BSD 3-Clause "New" or "Revised" License
775 stars 226 forks source link

undefined reference nccl* #211

Closed gongyguo closed 3 months ago

gongyguo commented 3 months ago

/usr/bin/ld: /tmp/tmpxft_0010d077_00000000-11_main.o: in function `MultiInCoreLP<int, long>::postprocess() [clone ._omp_fn.0]': tmpxft_0010d077_00000000-6_main.cudafe1.cpp:(.text._ZN13MultiInCoreLPIilE11postprocessEv._omp_fn.0[_ZN13MultiInCoreLPIilE3runEi]+0xd8): undefined reference to `ncclCommDestroy' /usr/bin/ld: /tmp/tmpxft_0010d077_00000000-11_main.o: in function `MultiAsyncLP<int, long, AsyncLP<int, long, LFHTBase<int, long> > >::run(int)': tmpxft_0010d077_00000000-6_main.cudafe1.cpp:(.text._ZN12MultiAsyncLPIil7AsyncLPIil8LFHTBaseIilEEE3runEi[_ZN12MultiAsyncLPIil7AsyncLPIil8LFHTBaseIilEEE3runEi]+0x7e): undefined reference to `ncclCommInitAll' /usr/bin/ld: tmpxft_0010d077_00000000-6_main.cudafe1.cpp:(.text._ZN12MultiAsyncLPIil7AsyncLPIil8LFHTBaseIilEEE3runEi[_ZN12MultiAsyncLPIil7AsyncLPIil8LFHTBaseIilEEE3runEi]+0x1ad): undefined reference to `ncclCommDestroy' /usr/bin/ld: /tmp/tmpxft_0010d077_00000000-11_main.o: in function `MultiInCoreLP<int, long>::iterate(int, int)': tmpxft_0010d077_00000000-6_main.cudafe1.cpp:(.text._ZN13MultiInCoreLPIilE7iterateEii[_ZN13MultiInCoreLPIilE7iterateEii]+0x1c0): undefined reference to `ncclBcast' /usr/bin/ld: /tmp/tmpxft_0010d077_00000000-11_main.o: in function `MultiAsyncLP<int, long, AsyncLP<int, long, LFHTBase<int, long> > >::iterate(int, int)': tmpxft_0010d077_00000000-6_main.cudafe1.cpp:(.text._ZN12MultiAsyncLPIil7AsyncLPIil8LFHTBaseIilEEE7iterateEii[_ZN12MultiAsyncLPIil7AsyncLPIil8LFHTBaseIilEEE7iterateEii]+0x17a): undefined reference to `ncclBcast' /usr/bin/ld: /tmp/tmpxft_0010d077_00000000-11_main.o: in function `MultiInCoreLP<int, long>::preprocess()': tmpxft_0010d077_00000000-6_main.cudafe1.cpp:(.text._ZN13MultiInCoreLPIilE10preprocessEv[_ZN13MultiInCoreLPIilE10preprocessEv]+0x10a): undefined reference to `ncclCommInitAll' How to solve this issue and how to use -lnccl" lib to compile? Is this issue related to the lib?

### Tasks
gongyguo commented 3 months ago

symlinks works