[libc-commits] [PATCH] D153388: [libc] Add basic utility support for timing functions on the GPU
Tue Ly via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Jun 21 08:45:09 PDT 2023
lntue added inline comments.
================
Comment at: libc/src/__support/GPU/nvptx/utils.h:140
+ uint64_t timestamp;
+ asm volatile("mov.u64 %0, %%clock64;" : "=l"(timestamp));
+ return timestamp;
----------------
nit: Can you change this to the internal macro `LIBC_INLINE_ASM`?
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