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/tests/amd/branches.py # 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 / tests / amd / branches.py` 49 lines · 2203 bytes Raw Blame History 1 #!/usr/bin/env python3 2 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 3 """Test only: exercise signed SOPP range boundaries against the ISA definition. 4 No generated table is input to a production build. The production SGEMM backward 5 branch is separately compared to LLVM's complete .text bytes by run.sh. 6 """ 7 import pathlib 8 import struct 9 import subprocess 10 import sys 11 12 exe, source, output = sys.argv[1:] 13 out = pathlib.Path(output) 14 lines = pathlib.Path(source).read_text().splitlines() 15 header = '\n'.join(lines[:next(i for i, line in enumerate(lines) if line.startswith('I '))]) + '\n' 16 wait = 'I 4 0xc07f 0x0c\n' 17 end = 'I 4 0 0x01\n' 18 19 20 def text(data): 21 shoff, = struct.unpack_from('