From c7880f52e43bd7f08866a60d641b2c64738664b1 Mon Sep 17 00:00:00 2001 From: Siva Chandra Reddy Date: Tue, 7 Feb 2023 00:17:54 +0000 Subject: [PATCH] [libc] Fix typo is processing LIBC_GPU_TEST_ARCHITECTURE. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D143444 --- libc/cmake/modules/prepare_libc_gpu_build.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/cmake/modules/prepare_libc_gpu_build.cmake b/libc/cmake/modules/prepare_libc_gpu_build.cmake index beea99d..942d825 100644 --- a/libc/cmake/modules/prepare_libc_gpu_build.cmake +++ b/libc/cmake/modules/prepare_libc_gpu_build.cmake @@ -46,11 +46,11 @@ set(LIBC_GPU_TEST_ARCHITECTURE "" CACHE STRING "Architecture for the GPU tests") if(LIBC_GPU_TEST_ARCHITECTURE) message(STATUS "Using user-specified GPU architecture for testing " "'${LIBC_GPU_TARGET_ARCHITECTURE}'") - if("${LIBC_GPU_TARGET_ARCHITECTURE}" IN_LIST all_amdgpu_architectures) + if("${LIBC_GPU_TEST_ARCHITECTURE}" IN_LIST all_amdgpu_architectures) set(LIBC_GPU_TARGET_ARCHITECTURE_IS_AMDGPU TRUE) set(LIBC_GPU_TARGET_TRIPLE "amdgcn-amd-amdhsa") set(LIBC_GPU_TARGET_ARCHITECTURE "${LIBC_GPU_TEST_ARCHITECTURE}") - elseif("${LIBC_GPU_TARGET_ARCHITECTURE}" IN_LIST all_nvptx_architectures) + elseif("${LIBC_GPU_TEST_ARCHITECTURE}" IN_LIST all_nvptx_architectures) set(LIBC_GPU_TARGET_ARCHITECTURE_IS_NVPTX TRUE) set(LIBC_GPU_TARGET_TRIPLE "nvptx64-nvidia-cuda") set(LIBC_GPU_TARGET_ARCHITECTURE "${LIBC_GPU_TEST_ARCHITECTURE}") -- 2.7.4