From: Siva Chandra Reddy Date: Tue, 7 Feb 2023 00:17:54 +0000 (+0000) Subject: [libc] Fix typo is processing LIBC_GPU_TEST_ARCHITECTURE. X-Git-Tag: upstream/17.0.6~18406 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7880f52e43bd7f08866a60d641b2c64738664b1;p=platform%2Fupstream%2Fllvm.git [libc] Fix typo is processing LIBC_GPU_TEST_ARCHITECTURE. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D143444 --- 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}")