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 / 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.
3AMPERE_MATH_DEVICE = $(OUT_DIR)/ampere_math_device
4AMPERE_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
13ampere-device-build: $(AMPERE_MATH_DEVICE) $(AMPERE_MEMORY_REFUSAL) $(OUT_DIR)/hello_gpu $(OUT_DIR)/hello_gpu_control
14
15test-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