[libc-commits] [PATCH] D149517: [libc] Enable running libc unit tests on AMDGPU
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Sat Apr 29 16:48:14 PDT 2023
sivachandra added inline comments.
================
Comment at: libc/cmake/modules/LLVMLibCCheckCpuFeatures.cmake:47
+if(LIBC_TARGET_ARCHITECTURE_IS_GPU)
+ return()
----------------
Why was this moved?
================
Comment at: libc/cmake/modules/LLVMLibCTestRules.cmake:74
function(create_libc_unittest fq_target_name)
- if(NOT LLVM_INCLUDE_TESTS)
+ if(NOT LLVM_INCLUDE_TESTS OR NOT LIBC_ENABLE_UNITTESTS)
return()
----------------
Do we ever want to run unit tests the GPU? If no, then I think the right thing to do is to convert the unit test targets to `add_libc_test` targets which will then do the right thing.
================
Comment at: libc/test/src/CMakeLists.txt:13
+ return()
+ endif()
+
----------------
Why do you need this? If you don't include math tests in entrypoints.txt, this will not become active anyway, correct?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149517/new/
https://reviews.llvm.org/D149517
More information about the libc-commits
mailing list