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/ampere-plan.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 / ampere-plan.mk` 19 lines · 992 bytes Raw Blame History 1 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 # Host checks never open a driver. Device targets build only; run.py requires --device. 3 AMPERE_MATH_DEVICE = $(OUT_DIR)/ampere_math_device 4 AMPERE_MEMORY_REFUSAL = $(OUT_DIR)/ampere_memory_refusal 5 6 .PHONY: ampere-device-build test-ampere-plan 7 $(AMPERE_MATH_DEVICE): tests/ampere/math_device.c src/omega_ampere_codegen.h $(OUT_DIR)/libomega_gpu.a 8 $(CC) $(CFLAGS) -ffp-contract=off -o $@ $< $(OUT_DIR)/libomega_gpu.a -lpthread -lm 9 10 $(AMPERE_MEMORY_REFUSAL): tests/ampere/memory_refusal.c src/omega_gpu_platform_linux.h $(OUT_DIR)/libomega_gpu.a 11 $(CC) $(CFLAGS) -Wl,--wrap=ioctl -o $@ $< $(OUT_DIR)/libomega_gpu.a -lpthread -lm 12 13 ampere-device-build: $(AMPERE_MATH_DEVICE) $(AMPERE_MEMORY_REFUSAL) $(OUT_DIR)/hello_gpu $(OUT_DIR)/hello_gpu_control 14 15 test-ampere-plan: ampere-device-build 16 python3 tests/ampere/test_doctor.py 17 $(AMPERE_MATH_DEVICE) --self-test 18 $(AMPERE_MATH_DEVICE) --emit-only 19 $(OUT_DIR)/hello_gpu --target=sm_86 --sim