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_families.sh

21 lines · 1643 bytes Raw Blame History
1#!/bin/sh
2# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3# Invoke only through the lane's bwrap /dev isolation and CPU affinity.
4set -eu
5: "${OMEGA_ROOT:?set OMEGA_ROOT to the pinned omega-mv oracle checkout}"
6cc=${CC:-cc}
7make -j3 build/gpu_moe_window_test build/gpu_tern_sched_test build/gpu_tcgemm_test build/gpu_fp8gemm_test build/gpu_pfgemm_test build/gpu_pfhost_test build/gpu_fp8_slots_test build/gpu_fp8_api_test
8"$cc" -std=gnu11 -Wall -Wextra -Werror -O2 -ffp-contract=off -D_GNU_SOURCE -DWS_MAX_THREADS=512 -Isrc -Itests tests/gpu_tgemm_test.c build/libomega_gpu.a -lm -lpthread -o build/gpu_tgemm_test
9# The external test's quoted include would otherwise select its stale simulator.
10# Compile its untouched algebra oracle separately; the current CUDApp simulator
11# is preincluded only into the test translation unit.
12"$cc" -std=gnu11 -Wall -Wextra -Werror -O2 -ffunction-sections -fdata-sections -I"$OMEGA_ROOT/src" -c "$OMEGA_ROOT/src/algebra/realize_common.c" -o build/tern_realize_oracle.o
13"$cc" -std=gnu11 -Wall -Wextra -Werror -O2 -ffp-contract=off -ffunction-sections -fdata-sections -Wl,--gc-sections -D_GNU_SOURCE -Isrc -Itests -I"$OMEGA_ROOT/src" -include tests/bw_warp_sim_k.h "$OMEGA_ROOT/tests/gpu_tern_test.c" build/tern_realize_oracle.o build/libomega_gpu.a -lm -lpthread -o build/gpu_tern_test
14build/gpu_moe_window_test --host-only
15build/gpu_tern_sched_test
16for family in tcgemm fp8gemm pfgemm pfhost tgemm tern fp8_api; do
17 "build/gpu_${family}_test" --host-only
18 "build/gpu_${family}_test" --sim
19done
20build/gpu_fp8_slots_test --host-only
21printf '%s\n' 'PASS api-rest family host/sim; chip NOT_RUN'