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-copy.mk

25 lines · 1247 bytes Raw Blame History
1# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2# Zero-copy sharing (native/share/share.om) against the fake RM: host reference, suite,
3# read-only trap control, mutants, and a compile-only chip gate. Opens no device file.
4.PHONY: test-zero-copy-share
5ifeq ($(CUDAPP_OMC_HOST),1)
6CARRIED_HOST_TESTS += test-zero-copy-share
7test-zero-copy-share:
8 OMEGA_OMC="$(OMEGA_OMC)" ZERO_COPY_OUT="$(abspath $(OUT_DIR))/zero-copy" CC="$(CC)" \
9 sh tests/share/run-share-host.sh
10else
11test-zero-copy-share:
12 @echo "test-zero-copy-share: NOT_RUN (requires a runnable pinned AArch64 omc)"
13 @exit 2
14endif
15
16# native/share/share_native.om (OM-2 function mode, for the one hosted native library) built as
17# a single-unit test library and run against a seccomp fake RM, then its mutants. Needs the
18# pinned OM-2 toolchain (see tests/share/run-share-native.sh); without it the script reports
19# NOT_RUN and exits 2, so it is not a carried host test.
20.PHONY: test-zero-copy-share-native
21test-zero-copy-share-native:
22 OMEGA_NATIVE_OMC="$(OMEGA_NATIVE_OMC)" OMEGA_NATIVE_OMC2="$(OMEGA_NATIVE_OMC2)" \
23 ZERO_COPY_NATIVE_BRIDGE="$(ZERO_COPY_NATIVE_BRIDGE)" \
24 ZERO_COPY_OUT="$(abspath $(OUT_DIR))/zero-copy" CC="$(CC)" \
25 sh tests/share/run-share-native.sh