Skip to content

Commit

Permalink
Add deprecation message for AMD_ARCH.
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongreig committed Dec 7, 2023
1 parent 653ee8d commit 53dcd53
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/conformance/device_code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 53dcd53

Please sign in to comment.