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-activations.mk

19 lines · 1753 bytes Raw Blame History
1# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2# API shells and generated units are collected by existing Makefile wildcards.
3CARRIED_HOST_TESTS += test-gpu-dnn-activations test-gpu-dnn-activations-mutants
4.PHONY: test-gpu-dnn-activations test-gpu-dnn-activations-mutants
5DNN_ACTIVATIONS_WRAP = -Wl,--wrap=omega_gpu_session_open -Wl,--wrap=omega_gpu_session_lock -Wl,--wrap=omega_gpu_session_unlock -Wl,--wrap=omega_gpu_session_free -Wl,--wrap=omega_gpu_session_alloc
6$(OUT_DIR)/gpu_dnn_activations_test: tests/gpu_dnn_activations_test.c tests/gpu_dnn_activations_ref.h tests/bw_warp_sim_k.h src/omega_gpu_dnn_activations_api.h $(OUT_DIR)/libomega_gpu.a
7 $(CC) $(CFLAGS) -ffp-contract=off -Itests $(DNN_ACTIVATIONS_WRAP) -o $@ $< $(OUT_DIR)/libomega_gpu.a -lpthread -lm
8test-gpu-dnn-activations: $(OUT_DIR)/gpu_dnn_activations_test
9 ./$(OUT_DIR)/gpu_dnn_activations_test --sim
10 ./$(OUT_DIR)/gpu_dnn_activations_test --shell-contract
11# Converts .om through the bridge's seeded converter, which executes the pinned AArch64 omc.
12CUDAPP_TARGET_ONLY_TESTS += $(if $(CUDAPP_OMC_HOST),,test-gpu-dnn-activations-mutants)
13test-gpu-dnn-activations-mutants: $(OUT_DIR)/gpu_dnn_activations_test
14 @$(CUDAPP_REQUIRE_OMC)
15 OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" OUT_DIR="$(OUT_DIR)" CC="$(CC)" sh tests/gpu_dnn_activations_mutants.sh
16
17# Build only; deliberately not a CARRIED_HOST_TESTS target and never run by make.
18$(OUT_DIR)/gpu_dnn_activations_chip_test: tests/gpu_dnn_activations_test.c tests/gpu_dnn_activations_ref.h tests/bw_warp_sim_k.h src/omega_gpu_dnn_activations_api.h $(OUT_DIR)/libomega_gpu.a
19 $(CC) $(CFLAGS) -ffp-contract=off -DDA_CHIP_RUNNER -Itests $(DNN_ACTIVATIONS_WRAP) -o $@ $< $(OUT_DIR)/libomega_gpu.a -lpthread -lm