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/evidence/MATHLIBS-GAPS-2026-11-06/reentry-probe.c # 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 / evidence / MATHLIBS-GAPS-2026-11-06 / reentry-probe.c` 31 lines · 1107 bytes Raw Blame History 1 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ 2 /* pre-fix reproduction: a plan_walk callback that calls omega_gpu_fft_twiddles (same as host_reentry which 0) */ 3 #include "omega_gpu_mathlibs_api.h" 4 #include 5 #include 6 #include 7 #include 8 static int cb(void *ctx, const OmegaGpuFftLaunch *l) { 9 (void)l; 10 float tw[16]; 11 int *calls = ctx; 12 if (omega_gpu_fft_twiddles(8, 0, tw) != OMEGA_GPU_ML_OK) return 99; 13 (*calls)++; 14 return 0; 15 } 16 int main(void) { 17 pid_t pid = fork(); 18 if (pid == 0) { 19 alarm(20); 20 int calls = 0; 21 size_t bytes[3]; 22 uint32_t n = 8; 23 int rc = omega_gpu_fft_plan_walk(OMEGA_GPU_FFT_R2C, 1, &n, 1, 0, bytes, cb, &calls); 24 _exit(rc == 0 && calls > 0 ? 0 : 3); 25 } 26 int st = 0; 27 waitpid(pid, &st, 0); 28 printf("reentry: exited=%d status=%d signaled=%d sig=%d (SIGALRM=%d)\n", WIFEXITED(st), WIFEXITED(st) ? WEXITSTATUS(st) : -1, 29 WIFSIGNALED(st), WIFSIGNALED(st) ? WTERMSIG(st) : 0, SIGALRM); 30 return WIFEXITED(st) && WEXITSTATUS(st) == 0 ? 0 : 1; 31 }