Fix hipify to avoid nccl_service.h: No such file or directory (#13852)

Fix various flaky build error due to onnxruntime_session missing dependencies on hipify generated files.
This commit is contained in:
cloudhan 2022-12-07 09:10:37 +08:00 committed by GitHub
parent d12521d7b2
commit f79d38181b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,3 +66,7 @@ if (NOT onnxruntime_BUILD_SHARED_LIB)
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
FRAMEWORK DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
if (onnxruntime_USE_NCCL AND onnxruntime_USE_ROCM)
add_dependencies(onnxruntime_session generate_hipified_files)
endif()