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 / tests / share / native-mutants.txt

38 lines · 1723 bytes Raw Blame History
1# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2# Mutants of native/share/share_native.om for tests/share/run-share-native.sh.
3# Each line: search|replace. The search text must occur exactly once; every mutant must build
4# and must make tests/share/native-share-test.c fail.
5# Share policy: access mask without DUP_OBJECT, wrong share type.
6zcp32 p 12 1|zcp32 p 12 0
7zcp32 p 16 2|zcp32 p 16 0
8# Export record magic.
9put rec magic 1129991503|put rec magic 1129991504
10# Re-export of an import allowed.
11if ne and get s live 16 0|if ne and get s live 0 0
12# Size check against the wanted size skipped before RM.
13if ne size get s size|if eq size 0
14# Address bound check reduced to the low bound.
15if or lt va 65536 gt va sub 1099511627776 size|if lt va 65536
16# RM's returned duplicate handle ignored.
17d = zcg32 p 8|d = get s newh
18# Size proof: the past-end probe's refusal not required.
19if eq st 32|if eq st 99
20# Failed CPU map leaves the duplicate held.
21if zcfree s p|if eq size 0
22# RM_FREE confirmed without clearing live bit 1.
23put s live and get s live 4294967294|put s live get s live
24# Read-only flags: CPU mapping protection, RM_MAP_MEMORY, DMA, UVM mapping type.
25r = mapbind m int fd 0 1|r = mapbind m int fd 0 3
26zcp32 p 44 1|zcp32 p 44 0
27fl = 33041|fl = 33040
28kind = 3|kind = 1
29# Read/write CPU mapping made read-only; read/write DMA flags wrong.
30r = mapbind m int fd 0 3|r = mapbind m int fd 0 1
31fl = uint 33040|fl = uint 33024
32# DMA address echo not checked.
33if ne zcg64 p 48 va|if eq va 0
34# GPU UUID copied one byte off.
35put p add i 24 get s uuid i|put p add i 25 get s uuid i
36# Release: UVM free skipped, CPU unmap skipped.
37if ne and get s live 4 0|if ne and get s live 0 0
38r = mapdrop get s map|r = long 0