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 / tests / codegen_tern_sim_test.c
| 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 | } |