[all-commits] [llvm/llvm-project] 4a3d18: [libc][NFC] Simplify AMDGPU constant frequency che...

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Jan 29 06:17:58 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a3d187075b2e3795b3e00e6ebb7a2a42143f3bb
      https://github.com/llvm/llvm-project/commit/4a3d187075b2e3795b3e00e6ebb7a2a42143f3bb
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-01-29 (Mon, 29 Jan 2024)

  Changed paths:
    M libc/src/time/gpu/time_utils.h

  Log Message:
  -----------
  [libc][NFC] Simplify AMDGPU constant frequency checks (#79653)

Summary:
The AMDGPU fixed frequency clock is fixed to a chip dependent frequency.
More modern chips have started to fix this at known values of 25 MHz or
100 MHz, so this function forwards those values. This was done using the
individual architectures. This patch simply uses the more concise
`__GFXn__` macro which indicates the major revision




More information about the All-commits mailing list