Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/src/omega_gpu_fmt.h # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / src / omega_gpu_fmt.h` 11 lines · 732 bytes Raw Blame History 1 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ 2 /* omega_gpu_fmt.h -- bounded message formatting for the freestanding GPU code (native v1 P07 cut C session 3 * part, aienos#286). The session and the tensor APIs format their error stages with it in both builds, so a 4 * stage reads the same with or without libc. Conversions: %s %c %d %u %x %ld %lu %lld %llu %zu %%; anything 5 * else is copied literally. Always NUL-terminates inside cap (cap > 0); truncates, never overflows. Returns 6 * the number of characters written (without the NUL). */ 7 #ifndef OMEGA_GPU_FMT_H 8 #define OMEGA_GPU_FMT_H 9 #include 10 int omega_gpu_fmt(char *out, size_t cap, const char *fmt, ...) __attribute__((format(printf, 3, 4))); 11 #endif