Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/mk/apiviews.mk # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / mk / apiviews.mk` 47 lines · 2370 bytes Raw Blame History 1 # Host-data apiviews gate. Compile is unwrapped. Every test and mutant runs 2 # under the lane bwrap rule. 3 ROOT := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))/..) 4 CC ?= cc 5 OUT ?= $(ROOT)/build/apiviews 6 OMC ?= $(HOME)/work/cudastack/omega-mv/seed/out/omc 7 BRIDGE ?= $(OMEGA_BRIDGE) 8 BWRAP = bwrap --dev-bind / / --dev /dev --proc /proc -- taskset -c 10-14 nice -n 10 9 AV_C = $(ROOT)/src/cudapp_om_av_bf16.c $(ROOT)/src/cudapp_om_av_e4m3.c \ 10 $(ROOT)/src/cudapp_om_av_ewarg.c $(ROOT)/src/cudapp_om_av_fp8am.c \ 11 $(ROOT)/src/cudapp_om_av_fp8en.c $(ROOT)/src/cudapp_om_av_fp8q.c \ 12 $(ROOT)/src/cudapp_om_av_fp8sc.c $(ROOT)/src/cudapp_om_av_gdnch.c \ 13 $(ROOT)/src/cudapp_om_av_gdnsc.c $(ROOT)/src/cudapp_om_av_gdnsl.c \ 14 $(ROOT)/src/cudapp_om_av_gdnex.c $(ROOT)/src/cudapp_om_av_gdnpt.c \ 15 $(ROOT)/src/cudapp_om_av_gdnut.c $(ROOT)/src/cudapp_om_av_fp8x.c \ 16 $(ROOT)/src/cudapp_om_av_fp8xb.c $(ROOT)/src/cudapp_om_av_rope.c \ 17 $(ROOT)/src/cudapp_om_av_scan.c $(ROOT)/src/cudapp_om_av_widen.c 18 HOSTMATH = $(ROOT)/src/omega_gpu_hostmath.c $(ROOT)/src/cudapp_om_core_hostmath.c 19 AV_CFLAGS = -std=c11 -Wall -Wextra -Wno-unused-function -I$(ROOT)/src -ffp-contract=off -O0 --coverage \ 20 -DCUDAPP_MIGRATION_PENDING_APIVIEWS_DIFF 21 22 .PHONY: test-apiviews apiviews-red apiviews-mutants apiviews-bench apiviews-check 23 24 $(OUT)/apiviews_host_test: $(ROOT)/tests/apiviews_host_test.c $(AV_C) $(HOSTMATH) $(ROOT)/src/omega_gpu_apiviews.h 25 mkdir -p $(OUT) 26 $(CC) $(AV_CFLAGS) -o $@ $(ROOT)/tests/apiviews_host_test.c $(AV_C) $(HOSTMATH) -lm 27 28 $(OUT)/apiviews_host_selftest: $(ROOT)/tests/apiviews_host_test.c $(AV_C) $(HOSTMATH) $(ROOT)/src/omega_gpu_apiviews.h 29 mkdir -p $(OUT) 30 $(CC) $(AV_CFLAGS) -DCUDAPP_MIGRATION_PENDING_APIVIEWS_DIFF_SELFTEST -o $@ \ 31 $(ROOT)/tests/apiviews_host_test.c $(AV_C) $(HOSTMATH) -lm 32 33 test-apiviews: $(OUT)/apiviews_host_test 34 $(BWRAP) $(OUT)/apiviews_host_test 35 36 apiviews-bench: $(OUT)/apiviews_host_test 37 $(BWRAP) $(OUT)/apiviews_host_test --bench 38 39 apiviews-red: $(OUT)/apiviews_host_selftest 40 $(BWRAP) $(OUT)/apiviews_host_selftest; rc=$$?; \ 41 if [ $$rc -eq 0 ]; then echo "RED CHECK BROKEN: selftest passed"; exit 1; fi; \ 42 echo "RED CHECK: selftest rc $$rc" 43 44 apiviews-check: 45 OMEGA_OMC=$(OMC) OMEGA_BRIDGE=$(BRIDGE) sh $(ROOT)/om/units.sh --check 46 apiviews-mutants: $(OUT)/apiviews_host_test 47 sh $(ROOT)/tests/apiviews_mutants.sh $(OUT) $(OMC) $(BRIDGE) $(ROOT)