[libc-commits] [libc] [libc][NFC] Factor GPU exiting into a common function (PR #66093)
Matt Arsenault via libc-commits
libc-commits at lists.llvm.org
Tue Sep 12 07:45:48 PDT 2023
================
@@ -176,6 +176,12 @@ LIBC_INLINE uint64_t fixed_frequency_clock() {
return 0;
}
+/// Terminates execution of the associated wavefront.
+LIBC_INLINE void exit() {
+ __builtin_amdgcn_endpgm();
+ __builtin_unreachable();
----------------
arsenm wrote:
This should be redundant, the endpgm should be noreturn
https://github.com/llvm/llvm-project/pull/66093
More information about the libc-commits
mailing list