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 / zero-cuda-argv.mk

15 lines · 843 bytes Raw Blame History
1# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2# Host check that the zero-CUDA ldd and nm probes pass binary_path as argv.
3# A path with spaces or shell metacharacters stays one pathname.
4.PHONY: test-zero-cuda-tool-argv
5ZERO_CUDA_TOOL_STUB = $(OUT_DIR)/zero_cuda_tool_stub
6ZERO_CUDA_ARGV_TEST = $(OUT_DIR)/zero_cuda_tool_argv_test
7
8$(ZERO_CUDA_TOOL_STUB): tests/zero_cuda_tool_stub.c src/cudapp_freest_leftovers.c src/cudapp_freest_pathcopy.c | $(OUT_DIR)
9 $(CC) $(CFLAGS) -o $@ $^
10
11$(ZERO_CUDA_ARGV_TEST): tests/zero_cuda_tool_argv_test.c src/omega_blackwell_submit.h $(OUT_DIR)/libomega_gpu.a
12 $(CC) $(CFLAGS) -o $@ tests/zero_cuda_tool_argv_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm
13
14test-zero-cuda-tool-argv: $(ZERO_CUDA_ARGV_TEST) $(ZERO_CUDA_TOOL_STUB)
15 ZERO_CUDA_TOOL_STUB=$(ZERO_CUDA_TOOL_STUB) $(ZERO_CUDA_ARGV_TEST)