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 / api_rest_run.sh
| 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" |