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
| 1 | # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | CARRIED_HOST_TESTS += test-gpu-resident |
| 3 | $(OUT_DIR)/gpu_resident_test: tests/gpu_resident_test.c tests/gpu_resident_fixture.h tests/gpu_resident_grid.h tests/bw_warp_sim_k.h src/omega_bw_hazard.c src/omega_bw_hazard.h $(OUT_DIR)/libomega_gpu.a |
| 4 | $(CC) $(CFLAGS) -ffp-contract=off -Itests -o $@ $< src/omega_bw_hazard.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm |
| 5 | $(OUT_DIR)/gpu_resident_chip: tests/gpu_resident_chip.c tests/gpu_resident_fixture.h $(OUT_DIR)/libomega_gpu.a |
| 6 | $(CC) $(CFLAGS) -ffp-contract=off -Itests -o $@ $< $(OUT_DIR)/libomega_gpu.a -lpthread -lm |
| 7 | .PHONY: test-gpu-resident |
| 8 | test-gpu-resident: $(OUT_DIR)/gpu_resident_test $(OUT_DIR)/gpu_resident_chip |
| 9 | ./$(OUT_DIR)/gpu_resident_test --sim |
| 10 | $(call CUDAPP_OMC_STEP,python3 tests/gpu_resident_mutants.py $(OUT_DIR)/libomega_gpu.a,resident .om mutants) |