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 / om / q38-head / budget-check.c
| 1 | /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ |
| 2 | /* Host-only verification: none of these calls may open a GPU session. */ |
| 3 | #include "omega_gpu_q38_graph.h" |
| 4 | #include <assert.h> |
| 5 | #include <stdio.h> |
| 6 | #include "../standalone-oracles/oracle.h" |
| 7 | int main(void) { |
| 8 | assert(so_eq(omega_gpu_q38_exact_extra_bytes(),so_call(17,0,0,0,0))); |
| 9 | assert(so_eq((uint64_t)(int64_t)omega_gpu_q38_graph_set_exact_head(NULL,NULL,NULL,10384),(uint64_t)(int64_t)OMEGA_GPU_DGRAPH_BAD_ARGS)); |
| 10 | assert(so_eq(omega_gpu_q38_graph_exact_head_active(NULL),0)); |
| 11 | omega_gpu_q38_graph_set_exact_head_on(NULL,1); |
| 12 | puts("PASS: exact-head extra admission reserve and null-handle refusals"); |
| 13 | return 0; |
| 14 | } |