Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | |||||
execute_process(COMMAND "${AMDGPU_ARCH_TOOL}" RESULT_VARIABLE amdgpu_arch_result | execute_process(COMMAND "${AMDGPU_ARCH_TOOL}" RESULT_VARIABLE amdgpu_arch_result | ||||
OUTPUT_VARIABLE amdgpu_arch_output) | OUTPUT_VARIABLE amdgpu_arch_output) | ||||
if (${amdgpu_arch_result}) | if (${amdgpu_arch_result}) | ||||
libomptarget_say("Not generating amdgcn test targets as amdgpu-arch exited with ${amdgpu_arch_result}") | libomptarget_say("Not generating amdgcn test targets as amdgpu-arch exited with ${amdgpu_arch_result}") | ||||
return() | return() | ||||
endif() | endif() | ||||
# Report to the parent scope that we are building a plugin for amdgpu | # Report to the parent scope that we are building a plugin for amdgpu | ||||
set(LIBOMPTARGET_SYSTEM_TARGETS "${LIBOMPTARGET_SYSTEM_TARGETS} amdgcn-amd-amdhsa" PARENT_SCOPE) | set(LIBOMPTARGET_SYSTEM_TARGETS "${LIBOMPTARGET_SYSTEM_TARGETS} amdgcn-amd-amdhsa amdgcn-amd-amdhsa-newRTL" PARENT_SCOPE) |