[libc-commits] [libc] c7880f5 - [libc] Fix typo is processing LIBC_GPU_TEST_ARCHITECTURE.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Mon Feb 6 16:21:20 PST 2023


Author: Siva Chandra Reddy
Date: 2023-02-07T00:21:12Z
New Revision: c7880f52e43bd7f08866a60d641b2c64738664b1

URL: https://github.com/llvm/llvm-project/commit/c7880f52e43bd7f08866a60d641b2c64738664b1
DIFF: https://github.com/llvm/llvm-project/commit/c7880f52e43bd7f08866a60d641b2c64738664b1.diff

LOG: [libc] Fix typo is processing LIBC_GPU_TEST_ARCHITECTURE.

Reviewed By: jhuber6

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

Added: 
    

Modified: 
    libc/cmake/modules/prepare_libc_gpu_build.cmake

Removed: 
    


################################################################################
diff  --git a/libc/cmake/modules/prepare_libc_gpu_build.cmake b/libc/cmake/modules/prepare_libc_gpu_build.cmake
index beea99d468c6a..942d82536fa42 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}")


        


More information about the libc-commits mailing list