[libc-commits] [libc] [libc][POSIX] Add clock_settime() function for NVPTX targets (PR #168494)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Thu Feb 12 09:41:46 PST 2026


https://github.com/jhuber6 commented:

So, I think I originally implemented `clock_gettime()` because it's used in libc++. We can *somewhat* make that work for the monotonic case because GPUs provide fixed frequency clocks. Those clocks cannot be written so there's no way to implement `clock_settime`. Is there a need for this just to resolve a missing symbol?

https://github.com/llvm/llvm-project/pull/168494


More information about the libc-commits mailing list