Skip to content

Commit

Permalink
Fix enable_training and use_migraphx (microsoft#17827)
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhan authored and kleiti committed Mar 22, 2024
1 parent aa19330 commit 861bb9d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmake/onnxruntime_providers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,14 @@ if (onnxruntime_USE_MIGRAPHX)
message(STATUS "MIGRAPHX GPU STREAM SYNC is DISABLED")
endif()

if (onnxruntime_ENABLE_TRAINING_OPS)
onnxruntime_add_include_to_target(onnxruntime_providers_migraphx onnxruntime_training)
target_link_libraries(onnxruntime_providers_migraphx PRIVATE onnxruntime_training)
if (onnxruntime_ENABLE_TRAINING_TORCH_INTEROP)
onnxruntime_add_include_to_target(onnxruntime_providers_migraphx Python::Module)
endif()
endif()

install(TARGETS onnxruntime_providers_migraphx
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
Expand Down

0 comments on commit 861bb9d

Please sign in to comment.