[all-commits] [llvm/llvm-project] 20f4f2: [libc] Fix 'clock()' testing on the GPU

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Aug 30 14:58:32 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 20f4f295da4d3f05d88eb85a8bb83c0e8139ece8
      https://github.com/llvm/llvm-project/commit/20f4f295da4d3f05d88eb85a8bb83c0e8139ece8
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

  Changed paths:
    M libc/include/llvm-libc-macros/time-macros.h
    M libc/test/src/time/CMakeLists.txt

  Log Message:
  -----------
  [libc] Fix 'clock()' testing on the GPU

Summary:
We should check for the GPU architectures first, since `__linux__` can
be set potentially during these compilations. Also the test needs to be
a hermetic test.




More information about the All-commits mailing list