You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Motivation
Users were faced with inconsistent prefixes for HIPDNN CMake variable
names.
## Technical Details
Standardize on HIPDNN_ variable prefix. Specifically, the following
variables were renamed to start with HIPDNN_:
- HIP_DNN_BUILD_BACKEND
- HIP_DNN_BUILD_FRONTEND
- HIP_DNN_BUILD_PLUGINS
- HIP_DNN_GENERATE_SDK_HEADERS
- HIP_DNN_SKIP_TESTS
## Test Plan
Perform configure with old and new variables.
Verify that both old and new variables properly affect build.
Verify od variables continue to work but issue deprecation message.
set(HIPDNN_BUILD_BACKEND ${HIP_DNN_BUILD_BACKEND}CACHEBOOL"Build the backend code"FORCE)
107
+
unset(HIP_DNN_BUILD_BACKEND CACHE)
108
+
message(DEPRECATION"HIP_DNN_BUILD_BACKEND has been renamed to HIPDNN_BUILD_BACKEND. Please update your build scripts to use -DHIPDNN_BUILD_BACKEND instead.")
109
+
endif()
110
+
option(HIPDNN_BUILD_BACKEND"Build the backend code"ON)
set(HIPDNN_BUILD_FRONTEND ${HIP_DNN_BUILD_FRONTEND}CACHEBOOL"Build the frontend code"FORCE)
115
+
unset(HIP_DNN_BUILD_FRONTEND CACHE)
116
+
message(DEPRECATION"HIP_DNN_BUILD_FRONTEND has been renamed to HIPDNN_BUILD_FRONTEND. Please update your build scripts to use -DHIPDNN_BUILD_FRONTEND instead.")
117
+
endif()
118
+
option(HIPDNN_BUILD_FRONTEND"Build the frontend code"ON)
set(HIPDNN_BUILD_PLUGINS ${HIP_DNN_BUILD_PLUGINS}CACHEBOOL"Builds the plugins as part of the main cmake"FORCE)
123
+
unset(HIP_DNN_BUILD_PLUGINS CACHE)
124
+
message(DEPRECATION"HIP_DNN_BUILD_PLUGINS has been renamed to HIPDNN_BUILD_PLUGINS. Please update your build scripts to use -DHIPDNN_BUILD_PLUGINS instead.")
125
+
endif()
126
+
option(HIPDNN_BUILD_PLUGINS"Builds the plugins as part of the main cmake"ON)
set(HIPDNN_GENERATE_SDK_HEADERS ${HIP_DNN_GENERATE_SDK_HEADERS}CACHEBOOL"Automatically generates sdk headers from schema during build"FORCE)
131
+
unset(HIP_DNN_GENERATE_SDK_HEADERS CACHE)
132
+
message(DEPRECATION"HIP_DNN_GENERATE_SDK_HEADERS has been renamed to HIPDNN_GENERATE_SDK_HEADERS. Please update your build scripts to use -DHIPDNN_GENERATE_SDK_HEADERS instead.")
133
+
endif()
134
+
option(HIPDNN_GENERATE_SDK_HEADERS"Automatically generates sdk headers from schema during build"ON)
135
+
136
+
# Migrate HIP_DNN_SKIP_TESTS -> HIPDNN_SKIP_TESTS
137
+
if(DEFINED HIP_DNN_SKIP_TESTS)
138
+
set(HIPDNN_SKIP_TESTS ${HIP_DNN_SKIP_TESTS}CACHEBOOL"Skips building all tests"FORCE)
139
+
unset(HIP_DNN_SKIP_TESTS CACHE)
140
+
message(DEPRECATION"HIP_DNN_SKIP_TESTS has been renamed to HIPDNN_SKIP_TESTS. Please update your build scripts to use -DHIPDNN_SKIP_TESTS instead.")
141
+
endif()
142
+
option(HIPDNN_SKIP_TESTS"Skips building all tests"OFF)
111
143
112
144
option(HIPDNN_ENABLE_COVERAGE"Build with code coverage flags"OFF)
113
145
option(BUILD_ADDRESS_SANITIZER"Build with Address Sanitizer enabled"OFF)
0 commit comments