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

14 lines · 1141 bytes Raw Blame History
1# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2CARRIED_HOST_TESTS += test-gpu-dnn-rows test-gpu-dnn-rows-mutants
3.PHONY: test-gpu-dnn-rows test-gpu-dnn-rows-mutants
4DNN_ROWS_WRAP = -Wl,--wrap=omega_gpu_session_open,--wrap=omega_gpu_session_alloc,--wrap=omega_gpu_session_lock,--wrap=omega_gpu_session_unlock,--wrap=omega_gpu_session_free
5$(OUT_DIR)/gpu_dnn_rows_test: tests/gpu_dnn_rows_test.c tests/gpu_dnn_rows_ref.h tests/bw_warp_sim_k.h src/omega_gpu_dnn_rows_api.h mk/dnn-rows.mk $(OUT_DIR)/libomega_gpu.a
6 $(CC) $(CFLAGS) -ffp-contract=off -Itests -o $@ $< $(OUT_DIR)/libomega_gpu.a $(DNN_ROWS_WRAP) -lpthread -lm
7test-gpu-dnn-rows: $(OUT_DIR)/gpu_dnn_rows_test
8 ./$(OUT_DIR)/gpu_dnn_rows_test --sim
9 ./$(OUT_DIR)/gpu_dnn_rows_test --shell-contract
10# Converts .om through the bridge's seeded converter, which executes the pinned AArch64 omc.
11CUDAPP_TARGET_ONLY_TESTS += $(if $(CUDAPP_OMC_HOST),,test-gpu-dnn-rows-mutants)
12test-gpu-dnn-rows-mutants: $(OUT_DIR)/gpu_dnn_rows_test
13 @$(CUDAPP_REQUIRE_OMC)
14 OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" OUT_DIR="$(OUT_DIR)" CC="$(CC)" sh tests/gpu_dnn_rows_mutants.sh