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/tests/codegen_tern_sim_test.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 / tests / codegen_tern_sim_test.c` 15 lines · 739 bytes Raw Blame History 1 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ 2 /* Verification-only reuse of omega-mv@`e5b32567`'s ternary/algebra battery with 3 * CUDApp's current warp simulator. The pinned Omega simulator predates the 4 * scalar LDG immediate fix and fails the same row-major cases for the C oracle. 5 * Its include guard ensures the battery uses this current simulator instead. 6 * Unreachable original main/chip sections are discarded with --gc-sections. */ 7 #include "bw_warp_sim_k.h" 8 #define main omega_tern_reference_main 9 #include OMEGA_TERN_REFERENCE 10 #undef main 11 int main(void) { 12 sim_battery(); 13 printf("CODEGEN TERN SIM: %d checks, %d failed: %s\n", g_checks, g_failed, g_failed ? "FAIL" : "PASS"); 14 return g_failed ? 1 : 0; 15 }