[libc] Fix typo is processing LIBC_GPU_TEST_ARCHITECTURE.
authorSiva Chandra Reddy <sivachandra@google.com>
Tue, 7 Feb 2023 00:17:54 +0000 (00:17 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Tue, 7 Feb 2023 00:21:12 +0000 (00:21 +0000)
Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D143444

libc/cmake/modules/prepare_libc_gpu_build.cmake

index beea99d..942d825 100644 (file)
@@ -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}")