CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
39 lines
1.8 KiB
CMake
39 lines
1.8 KiB
CMake
# Copyright © Advanced Micro Devices, Inc., or its affiliates.
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(hipdnn_data_sdk @HIPDNN_FRONTEND_DATA_SDK_MIN_VERSION@ CONFIG REQUIRED)
|
|
find_dependency(hipdnn_backend @HIPDNN_FRONTEND_BACKEND_MIN_VERSION@ CONFIG REQUIRED)
|
|
|
|
set(HIPDNN_ENABLE_SDPA @HIPDNN_ENABLE_SDPA@)
|
|
|
|
# Frontend headers include <nlohmann/json.hpp> directly when JSON support is enabled.
|
|
# This reflects how hipDNN was built; not consumer-overridable, since the imported
|
|
# target's compile definitions are already baked in.
|
|
set(HIPDNN_FRONTEND_SKIP_JSON_LIB @HIPDNN_FRONTEND_SKIP_JSON_LIB@)
|
|
if(NOT HIPDNN_FRONTEND_SKIP_JSON_LIB)
|
|
find_dependency(nlohmann_json REQUIRED)
|
|
endif()
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/hipdnn_frontendTargets.cmake")
|
|
|
|
# The nlohmann include dirs are attached to the in-tree targets via BUILD_INTERFACE
|
|
# only, so they don't survive export. Re-attach them here for every installed target
|
|
# whose headers pull in <nlohmann/json.hpp> -- both the direct-link and runtime-load
|
|
# frontends.
|
|
if(NOT HIPDNN_FRONTEND_SKIP_JSON_LIB AND TARGET nlohmann_json::nlohmann_json)
|
|
get_target_property(_hipdnn_nlohmann_includes nlohmann_json::nlohmann_json INTERFACE_INCLUDE_DIRECTORIES)
|
|
if(_hipdnn_nlohmann_includes)
|
|
foreach(_hipdnn_fe_target hipdnn_frontend hipdnn_frontend_dynamic)
|
|
get_property(_hipdnn_existing_includes TARGET ${_hipdnn_fe_target} PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
|
|
list(APPEND _hipdnn_existing_includes ${_hipdnn_nlohmann_includes})
|
|
set_property(TARGET ${_hipdnn_fe_target} PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${_hipdnn_existing_includes})
|
|
endforeach()
|
|
unset(_hipdnn_fe_target)
|
|
endif()
|
|
endif()
|
|
|
|
check_required_components(hipdnn_frontend)
|