[all-commits] [llvm/llvm-project] 632fa3: [libc] Enable running libc unit tests on AMDGPU

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu May 4 04:33:11 PDT 2023


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

  Changed paths:
    M libc/cmake/modules/LLVMLibCCheckCpuFeatures.cmake
    M libc/config/gpu/entrypoints.txt
    M libc/docs/gpu/support.rst
    M libc/test/CMakeLists.txt
    M libc/test/UnitTest/CMakeLists.txt
    M libc/test/src/CMakeLists.txt
    M libc/test/src/__support/CMakeLists.txt
    M libc/test/src/__support/File/CMakeLists.txt
    M libc/test/src/__support/blockstore_test.cpp
    M libc/test/src/errno/CMakeLists.txt
    M libc/test/src/stdio/CMakeLists.txt
    M libc/test/src/string/StrchrTest.h

  Log Message:
  -----------
  [libc] Enable running libc unit tests on AMDGPU

The previous patches added the necessary support for global constructors
used to register tests. This patch enables the AMDGPU 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.

Reviewed By: sivachandra

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




More information about the All-commits mailing list