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 / mk / dnn-half.mk

20 lines · 1256 bytes Raw Blame History
1# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2# Scalar f16 conversion and guarded encoding verification; no device is opened.
3CARRIED_HOST_TESTS += test-dnn-half test-dnn-half-mutants
4
5.PHONY: test-dnn-half test-dnn-half-mutants
6$(OUT_DIR)/dnn_half_test: tests/gpu_dnn_half_test.c tests/bw_warp_sim_k.h src/omega_numeric.c $(OUT_DIR)/libomega_gpu.a
7 $(CC) $(CFLAGS) -ffp-contract=off -Isrc -Itests -o $@ $< src/omega_numeric.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm
8
9$(OUT_DIR)/dnn_half_alt_test: tests/gpu_dnn_half_test.c tests/bw_warp_sim.h src/omega_numeric.c $(OUT_DIR)/libomega_gpu.a
10 $(CC) $(CFLAGS) -ffp-contract=off -DDNN_HALF_ALT_SIM -Isrc -Itests -o $@ $< src/omega_numeric.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm
11
12test-dnn-half: $(OUT_DIR)/dnn_half_test $(OUT_DIR)/dnn_half_alt_test
13 $(OUT_DIR)/dnn_half_test
14 $(OUT_DIR)/dnn_half_alt_test
15
16# Converts .om through the bridge's seeded converter, which executes the pinned AArch64 omc.
17CUDAPP_TARGET_ONLY_TESTS += $(if $(CUDAPP_OMC_HOST),,test-dnn-half-mutants)
18test-dnn-half-mutants: $(OUT_DIR)/dnn_half_test
19 @$(CUDAPP_REQUIRE_OMC)
20 OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" CC="$(CC)" OMEGA_TEST_LIB="$(OUT_DIR)/libomega_gpu.a" python3 tests/gpu_dnn_half_mutants.py