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/zero-copy.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 / 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 5 ifeq ($(CUDAPP_OMC_HOST),1) 6 CARRIED_HOST_TESTS += test-zero-copy-share 7 test-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 10 else 11 test-zero-copy-share: 12 @echo "test-zero-copy-share: NOT_RUN (requires a runnable pinned AArch64 omc)" 13 @exit 2 14 endif 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 21 test-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