interplane.Get Omega
Read in your language

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

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.
4set -eu
5ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
6cd "$ROOT"
7OUT=${OUT:-build/api-rest}
8mkdir -p "$OUT"
9objs=
10for 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"
14done
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"