mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Missing MPI libraries for Cuda
This commit is contained in:
parent
66d5ac1fcb
commit
919c28a408
1 changed files with 3 additions and 0 deletions
|
|
@ -305,6 +305,9 @@ if (onnxruntime_USE_CUDA)
|
|||
|
||||
if (onnxruntime_ENABLE_TRAINING OR onnxruntime_ENABLE_TRAINING_OPS)
|
||||
target_include_directories(onnxruntime_providers_cuda PRIVATE ${ORTTRAINING_ROOT} ${MPI_INCLUDE_DIRS})
|
||||
if(onnxruntime_USE_MPI)
|
||||
target_link_libraries(onnxruntime_providers_cuda PRIVATE ${MPI_LIBRARIES} ${MPI_CXX_LINK_FLAGS})
|
||||
endif()
|
||||
|
||||
if (onnxruntime_USE_NCCL)
|
||||
target_include_directories(onnxruntime_providers_cuda PRIVATE ${NCCL_INCLUDE_DIRS})
|
||||
|
|
|
|||
Loading…
Reference in a new issue