Skip to content

Commit 44191dd

Browse files
committed
Add deprecation message for AMD_ARCH.
1 parent d9a860a commit 44191dd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/conformance/device_code/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
# See LICENSE.TXT
44
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55

6-
set(AMD_ARCH "${UR_CONFORMANCE_AMD_ARCH}")
6+
if(NOT "${AMD_ARCH}" STREQUAL "" AND "${UR_CONFORMANCE_AMD_ARCH}" STREQUAL "")
7+
message(WARNING "Passing the HIP target architecture with AMD_ARCH is deprecated. "
8+
"Please use UR_CONFORMANCE_AMD_ARCH instead.")
9+
else()
10+
set(AMD_ARCH "${UR_CONFORMANCE_AMD_ARCH}")
11+
endif()
712

813
if("${AMD_ARCH}" STREQUAL "" AND "${TARGET_TRIPLES}" MATCHES "amd")
914
find_package(RocmAgentEnumerator)

0 commit comments

Comments
 (0)