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/api_rest_run.sh # 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 / api_rest_run.sh` 17 lines · 800 bytes Raw Blame History 1 #!/bin/sh 2 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 3 # Invoke only inside the lane's device-isolated bwrap envelope. 4 set -eu 5 ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) 6 cd "$ROOT" 7 OUT=${OUT:-build/api-rest} 8 mkdir -p "$OUT" 9 objs= 10 for src in src/cudapp_om_ar_*.c src/cudapp_om_cg_pack_len.c src/cudapp_om_cg_pack_h.c src/cudapp_om_cg_mrow.c; do 11 name=$(basename "$src" .c) 12 ${CC:-cc} -std=gnu11 -O2 -ffp-contract=off ${REST_CFLAGS:-} -Isrc -c "$src" -o "$OUT/$name.o" 13 objs="$objs $OUT/$name.o" 14 done 15 ${CC:-cc} -std=gnu11 -Wall -Wextra -Werror -O2 -ffp-contract=off ${REST_CFLAGS:-} -Isrc -c tests/api_rest_diff.c -o "$OUT/api_rest_diff.o" 16 ${CC:-cc} ${REST_CFLAGS:-} -o "$OUT/api_rest_diff" "$OUT/api_rest_diff.o" $objs build/libomega_gpu.a -lm -lpthread 17 "$OUT/api_rest_diff"