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 / attn-any.mk

14 lines · 1137 bytes Raw Blame History
1# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2CARRIED_HOST_TESTS += test-gpu-attn-any test-gpu-attn-any-mutants
3.PHONY: test-gpu-attn-any test-gpu-attn-any-mutants
4ATTN_ANY_HOST_WRAP := -Wl,--wrap=omega_gpu_session_open,--wrap=omega_gpu_session_lock,--wrap=omega_gpu_session_unlock,--wrap=omega_gpu_session_free,--wrap=omega_gpu_session_alloc
5$(OUT_DIR)/gpu_attn_any_test: tests/gpu_attn_any_test.c tests/gpu_attn_any_ref.h tests/bw_warp_sim_k.h src/omega_gpu_attn_any_api.h $(OUT_DIR)/libomega_gpu.a
6 $(CC) $(CFLAGS) -ffp-contract=off -Itests -o $@ $< $(OUT_DIR)/libomega_gpu.a -lpthread -lm $(ATTN_ANY_HOST_WRAP)
7test-gpu-attn-any: $(OUT_DIR)/gpu_attn_any_test
8 ./$(OUT_DIR)/gpu_attn_any_test --sim
9 ./$(OUT_DIR)/gpu_attn_any_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-attn-any-mutants)
12test-gpu-attn-any-mutants: $(OUT_DIR)/gpu_attn_any_test
13 @$(CUDAPP_REQUIRE_OMC)
14 OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" OUT_DIR="$(OUT_DIR)" CC="$(CC)" sh tests/gpu_attn_any_mutants.sh