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
CUDApp / tests / share / native-mutants.txt
| 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. |
| 6 | zcp32 p 12 1|zcp32 p 12 0 |
| 7 | zcp32 p 16 2|zcp32 p 16 0 |
| 8 | # Export record magic. |
| 9 | put rec magic 1129991503|put rec magic 1129991504 |
| 10 | # Re-export of an import allowed. |
| 11 | if 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. |
| 13 | if ne size get s size|if eq size 0 |
| 14 | # Address bound check reduced to the low bound. |
| 15 | if or lt va 65536 gt va sub 1099511627776 size|if lt va 65536 |
| 16 | # RM's returned duplicate handle ignored. |
| 17 | d = zcg32 p 8|d = get s newh |
| 18 | # Size proof: the past-end probe's refusal not required. |
| 19 | if eq st 32|if eq st 99 |
| 20 | # Failed CPU map leaves the duplicate held. |
| 21 | if zcfree s p|if eq size 0 |
| 22 | # RM_FREE confirmed without clearing live bit 1. |
| 23 | put 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. |
| 25 | r = mapbind m int fd 0 1|r = mapbind m int fd 0 3 |
| 26 | zcp32 p 44 1|zcp32 p 44 0 |
| 27 | fl = 33041|fl = 33040 |
| 28 | kind = 3|kind = 1 |
| 29 | # Read/write CPU mapping made read-only; read/write DMA flags wrong. |
| 30 | r = mapbind m int fd 0 3|r = mapbind m int fd 0 1 |
| 31 | fl = uint 33040|fl = uint 33024 |
| 32 | # DMA address echo not checked. |
| 33 | if ne zcg64 p 48 va|if eq va 0 |
| 34 | # GPU UUID copied one byte off. |
| 35 | put 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. |
| 37 | if ne and get s live 4 0|if ne and get s live 0 0 |
| 38 | r = mapdrop get s map|r = long 0 |