diff --git a/ml-libs/CMakeLists.txt b/ml-libs/CMakeLists.txt index 7ea91c19db..7e597939b1 100644 --- a/ml-libs/CMakeLists.txt +++ b/ml-libs/CMakeLists.txt @@ -180,12 +180,12 @@ if(THEROCK_ENABLE_HIPDNN) amd-hip BUILD_DEPS therock-googletest + RUNTIME_DEPS + hip-clr + therock-fmt therock-flatbuffers therock-nlohmann-json - therock-fmt therock-spdlog - RUNTIME_DEPS - hip-clr ) therock_cmake_subproject_glob_c_sources(hipDNN SUBDIRS diff --git a/third-party/flatbuffers/CMakeLists.txt b/third-party/flatbuffers/CMakeLists.txt index 9b8634b607..a6815eec3e 100644 --- a/third-party/flatbuffers/CMakeLists.txt +++ b/third-party/flatbuffers/CMakeLists.txt @@ -18,4 +18,14 @@ therock_cmake_subproject_declare(therock-flatbuffers therock_cmake_subproject_provide_package(therock-flatbuffers flatbuffers lib/cmake) therock_cmake_subproject_activate(therock-flatbuffers) +if(THEROCK_ENABLE_HIPDNN) + therock_provide_artifact(flatbuffers + DESCRIPTOR artifact-flatbuffers.toml + COMPONENTS + dev + SUBPROJECT_DEPS + therock-flatbuffers + ) +endif() + add_dependencies(therock-third-party therock-flatbuffers) diff --git a/third-party/flatbuffers/artifact-flatbuffers.toml b/third-party/flatbuffers/artifact-flatbuffers.toml new file mode 100644 index 0000000000..f068ac2ef3 --- /dev/null +++ b/third-party/flatbuffers/artifact-flatbuffers.toml @@ -0,0 +1,2 @@ +# flatbuffers +[components.dev."third-party/flatbuffers/stage"] diff --git a/third-party/fmt/CMakeLists.txt b/third-party/fmt/CMakeLists.txt index a5f8098773..c00e7e8115 100644 --- a/third-party/fmt/CMakeLists.txt +++ b/third-party/fmt/CMakeLists.txt @@ -19,4 +19,14 @@ therock_cmake_subproject_provide_package( therock-fmt fmt lib/cmake/fmt) therock_cmake_subproject_activate(therock-fmt) +if(THEROCK_ENABLE_HIPDNN) + therock_provide_artifact(fmt + DESCRIPTOR artifact-fmt.toml + COMPONENTS + dev + SUBPROJECT_DEPS + therock-fmt + ) +endif() + add_dependencies(therock-third-party therock-fmt) diff --git a/third-party/fmt/artifact-fmt.toml b/third-party/fmt/artifact-fmt.toml new file mode 100644 index 0000000000..3ab1774a15 --- /dev/null +++ b/third-party/fmt/artifact-fmt.toml @@ -0,0 +1,2 @@ +# fmt +[components.dev."third-party/fmt/stage"] diff --git a/third-party/nlohmann-json/CMakeLists.txt b/third-party/nlohmann-json/CMakeLists.txt index 372838be48..fb0eea5ffc 100644 --- a/third-party/nlohmann-json/CMakeLists.txt +++ b/third-party/nlohmann-json/CMakeLists.txt @@ -18,4 +18,14 @@ therock_cmake_subproject_provide_package( therock-nlohmann-json nlohmann_json share/cmake/nlohmann_json) therock_cmake_subproject_activate(therock-nlohmann-json) +if(THEROCK_ENABLE_HIPDNN) + therock_provide_artifact(nlohmann-json + DESCRIPTOR artifact-nlohmann-json.toml + COMPONENTS + dev + SUBPROJECT_DEPS + therock-nlohmann-json + ) +endif() + add_dependencies(therock-third-party therock-nlohmann-json) diff --git a/third-party/nlohmann-json/artifact-nlohmann-json.toml b/third-party/nlohmann-json/artifact-nlohmann-json.toml new file mode 100644 index 0000000000..a594c17adc --- /dev/null +++ b/third-party/nlohmann-json/artifact-nlohmann-json.toml @@ -0,0 +1,2 @@ +# nlohmann-json +[components.dev."third-party/nlohmann-json/stage"] diff --git a/third-party/spdlog/CMakeLists.txt b/third-party/spdlog/CMakeLists.txt index 71978cb267..05e006a367 100644 --- a/third-party/spdlog/CMakeLists.txt +++ b/third-party/spdlog/CMakeLists.txt @@ -21,4 +21,14 @@ therock_cmake_subproject_declare(therock-spdlog therock_cmake_subproject_provide_package(therock-spdlog spdlog lib/cmake) therock_cmake_subproject_activate(therock-spdlog) +if(THEROCK_ENABLE_HIPDNN) + therock_provide_artifact(spdlog + DESCRIPTOR artifact-spdlog.toml + COMPONENTS + dev + SUBPROJECT_DEPS + therock-spdlog + ) +endif() + add_dependencies(therock-third-party therock-spdlog) diff --git a/third-party/spdlog/artifact-spdlog.toml b/third-party/spdlog/artifact-spdlog.toml new file mode 100644 index 0000000000..1360e44424 --- /dev/null +++ b/third-party/spdlog/artifact-spdlog.toml @@ -0,0 +1,2 @@ +# spdlog +[components.dev."third-party/spdlog/stage"]