From 44191dd7354d30d7056a3eea466db0147dc1ca41 Mon Sep 17 00:00:00 2001 From: Aaron Greig Date: Thu, 7 Dec 2023 10:34:24 +0000 Subject: [PATCH] Add deprecation message for AMD_ARCH. --- test/conformance/device_code/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/conformance/device_code/CMakeLists.txt b/test/conformance/device_code/CMakeLists.txt index fe78d73fb1..2942dc8ef1 100644 --- a/test/conformance/device_code/CMakeLists.txt +++ b/test/conformance/device_code/CMakeLists.txt @@ -3,7 +3,12 @@ # See LICENSE.TXT # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -set(AMD_ARCH "${UR_CONFORMANCE_AMD_ARCH}") +if(NOT "${AMD_ARCH}" STREQUAL "" AND "${UR_CONFORMANCE_AMD_ARCH}" STREQUAL "") + message(WARNING "Passing the HIP target architecture with AMD_ARCH is deprecated. " + "Please use UR_CONFORMANCE_AMD_ARCH instead.") +else() + set(AMD_ARCH "${UR_CONFORMANCE_AMD_ARCH}") +endif() if("${AMD_ARCH}" STREQUAL "" AND "${TARGET_TRIPLES}" MATCHES "amd") find_package(RocmAgentEnumerator)