Files
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

91 lines
2.8 KiB
CMake

# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
# FLAGS.cmake
# Central registry of build flags for TheRock.
#
# Each flag creates a THEROCK_FLAG_${NAME} cache variable that can be
# controlled via -DTHEROCK_FLAG_<NAME>=ON|OFF on the cmake command line.
#
# See docs/development/flags.md for documentation on this system.
include(therock_flag_utils)
###############################################################################
# Flag declarations
###############################################################################
therock_declare_flag(
NAME KPACK_SPLIT_ARTIFACTS
DEFAULT_VALUE ON
DESCRIPTION "Split target-specific artifacts into generic and arch-specific components"
)
therock_declare_flag(
NAME HIPDNN_ENABLE_SDPA
DEFAULT_VALUE OFF
DESCRIPTION "Enable SDPA (Scaled Dot-Product Attention) support in hipDNN"
CMAKE_VARS
HIPDNN_ENABLE_SDPA=ON
SUB_PROJECTS
hipDNN
)
therock_declare_flag(
NAME HIPKERNELPROVIDER_ENABLE_ROCKE
DEFAULT_VALUE OFF
DESCRIPTION "Build the rocKE engine and smoke tests in hip-kernel-provider"
CMAKE_VARS
HIPKERNELPROVIDER_ENABLE_ROCKE=ON
SUB_PROJECTS
hipkernelprovider
)
therock_declare_flag(
NAME MIOPEN_ENABLE_HIPDNN_WRAPPER
DEFAULT_VALUE OFF
DESCRIPTION "Build MIOpen as a public wrapper (libMIOpen.so) over a private implementation library (libMIOpen_private.so), with optional runtime forwarding to hipDNN. See rocm-libraries MIOpen RFC 0001."
CMAKE_VARS
MIOPEN_ENABLE_HIPDNN_WRAPPER=ON
SUB_PROJECTS
MIOpen
)
therock_declare_flag(
NAME STAMP_LIBRARY_GIT_VERSIONS
DEFAULT_VALUE OFF
DESCRIPTION "Stamp library git revisions into generated version metadata"
ISSUE https://github.com/ROCm/TheRock/issues/5009
GLOBAL_PROPAGATE_FLAG
)
therock_declare_flag(
NAME INCLUDE_HRX
DEFAULT_VALUE OFF
DESCRIPTION "Include experimental HRX runtime in core-runtime"
)
therock_declare_flag(
NAME HSA_WINDOWS_SHARED_RUNTIME
DEFAULT_VALUE OFF
DESCRIPTION "Emit ROCR-Runtime and rocminfo from core-runtime on Windows"
)
###############################################################################
# Branch-specific flag overrides.
# BRANCH_FLAGS.cmake is .gitignored on main but can be committed on
# integration branches to change default flag values via
# therock_override_flag_default().
###############################################################################
include("${CMAKE_CURRENT_SOURCE_DIR}/BRANCH_FLAGS.cmake" OPTIONAL)
include("${CMAKE_CURRENT_BINARY_DIR}/cmake/therock_branch_config.cmake" OPTIONAL)
if(COMMAND therock_apply_branch_config_flags)
therock_apply_branch_config_flags()
endif()
###############################################################################
# Finalize all flags and report.
###############################################################################
therock_finalize_flags()
therock_report_flags()