forked from ROCm/TheRock
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFLAGS.cmake
More file actions
64 lines (55 loc) · 2.08 KB
/
FLAGS.cmake
File metadata and controls
64 lines (55 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 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 HIP_KERNEL_PROVIDER_ENABLE
DEFAULT_VALUE OFF
DESCRIPTION "Enable hip-kernel-provider plugin"
CMAKE_VARS
HIP_KERNEL_PROVIDER_ENABLE=ON
SUB_PROJECTS
hipkernelprovider
)
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"
)
###############################################################################
# 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()