Skip to content

Commit

Permalink
Fix enable_training and use_migraphx
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhan committed Oct 7, 2023
1 parent 37f4f27 commit 4f8a4dd
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 4f8a4dd

Please sign in to comment.