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
CUDApp / src / omega_gpu_fmt.h
| 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 <stddef.h> |
| 10 | int omega_gpu_fmt(char *out, size_t cap, const char *fmt, ...) __attribute__((format(printf, 3, 4))); |
| 11 | #endif |