[libc-commits] [PATCH] D149532: [libc] Enable running libc unit tests on NVPTX

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Sat Apr 29 14:20:00 PDT 2023


jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, tianshilei1992, tra, sivachandra, lntue, michaelrj.
Herald added subscribers: libc-commits, mattd, gchakrabarti, asavonic, ecnelises, tschuett.
Herald added projects: libc-project, All.
jhuber6 requested review of this revision.

The previous patches added the necessary support for global constructors
used to register tests. This patch enables the NVPTX target to build
and run the unit tests on the GPU. Currently this only tests the ctype
tests, but adding more should be straightforward from here on.

This ran all the ctest unit tests when run on an sm_70.

Depends on D149517 <https://reviews.llvm.org/D149517> D149527 <https://reviews.llvm.org/D149527>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149532

Files:
  libc/cmake/modules/LLVMLibCTestRules.cmake
  libc/test/CMakeLists.txt
  libc/test/UnitTest/CMakeLists.txt
  libc/test/UnitTest/HermeticTestUtils.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149532.518236.patch
Type: text/x-patch
Size: 3767 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230429/d95eacd5/attachment-0001.bin>


More information about the libc-commits mailing list