[libc-commits] [PATCH] D153388: [libc] Add basic utility support for timing functions on the GPU

Matt Arsenault via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Jun 21 04:55:10 PDT 2023


arsenm added inline comments.


================
Comment at: libc/src/__support/GPU/amdgpu/utils.h:159
+    return __builtin_amdgcn_s_memrealtime();
+  else
+    return __builtin_amdgcn_s_memtime();
----------------
Should check for has s_memtime in case future hardware decides 4th time's the charm on timing instructions 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153388/new/

https://reviews.llvm.org/D153388



More information about the libc-commits mailing list