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 Jan 22, 2024
1 parent d9a860a commit 44191dd
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 44191dd

Please sign in to comment.