Skip to content

Commit

Permalink
[libc] Fix typo is processing LIBC_GPU_TEST_ARCHITECTURE.
Browse files Browse the repository at this point in the history
Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D143444
  • Loading branch information
Siva Chandra Reddy committed Feb 7, 2023
1 parent a3d4f73 commit c7880f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libc/cmake/modules/prepare_libc_gpu_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit c7880f5

Please sign in to comment.