[all-commits] [llvm/llvm-project] f4002c: [libc] Enable running libc unit tests on NVPTX

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu May 4 06:36:48 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f4002c1415a70701d6603c293afbed4f094da4a4
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-05-04 (Thu, 04 May 2023)

  Changed paths:
    M libc/cmake/modules/LLVMLibCTestRules.cmake
    M libc/test/CMakeLists.txt
    M libc/test/UnitTest/CMakeLists.txt
    M libc/test/UnitTest/HermeticTestUtils.cpp
    M libc/test/src/__support/CMakeLists.txt
    M libc/test/src/__support/CPP/CMakeLists.txt
    M libc/test/src/__support/CPP/atomic_test.cpp
    M libc/test/utils/UnitTest/CMakeLists.txt

  Log Message:
  [libc] Enable running libc unit tests on NVPTX

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 D149527

Reviewed By: sivachandra

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

More information about the All-commits mailing list