diff --git a/cmake/FindRocmAgentEnumerator.cmake b/cmake/FindRocmAgentEnumerator.cmake index 987c1bb74f..6c32410265 100644 --- a/cmake/FindRocmAgentEnumerator.cmake +++ b/cmake/FindRocmAgentEnumerator.cmake @@ -9,7 +9,7 @@ # rocm_agent_enumerator is found. # -find_program(ROCM_AGENT_ENUMERATOR NAMES not_rocm_agent_enumerator) +find_program(ROCM_AGENT_ENUMERATOR NAMES rocm_agent_enumerator) if(ROCM_AGENT_ENUMERATOR) set(ROCM_AGENT_ENUMERATOR_FOUND TRUE) diff --git a/test/conformance/device_code/CMakeLists.txt b/test/conformance/device_code/CMakeLists.txt index 2942dc8ef1..4a60503d23 100644 --- a/test/conformance/device_code/CMakeLists.txt +++ b/test/conformance/device_code/CMakeLists.txt @@ -58,6 +58,10 @@ macro(add_device_binary SOURCE_FILE) set(AMD_TARGET_BACKEND -Xsycl-target-backend=${TRIPLE}) set(AMD_OFFLOAD_ARCH --offload-arch=${AMD_ARCH}) set(AMD_NOGPULIB -nogpulib) + else() + set(AMD_TARGET_BACKEND) + set(AMD_OFFLOAD_ARCH) + set(AMD_NOGPULIB) endif() # images are not yet supported in sycl on AMD if(${TRIPLE} MATCHES "amd" AND ${KERNEL_NAME} MATCHES "image_copy")