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/host-trace/lossy.om # 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 / host-trace / lossy.om` 37 lines · 757 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note Fixture for run-host-trace.sh: a recording with known losses, so the exports must report 3 note dropped 2, refused 1, open_spans 1. Compose after native/trace/htrec.om; run as PROGRAM FRAG. 4 global path uchar 4096 5 fn main to int 6 if not htinit 7 ret 1 8 end 9 ok = htnbeg 1 10 ok = and ok htnbyte 120 11 ok = and ok htnend 12 if not ok 13 ret 1 14 end 15 note one span never ended 16 s = htbeg 9 1 17 note one malformed call: kind 99 does not exist 18 b = htmark 99 1 0 0 0 19 note 4095 slots remain; 4097 marks drop two 20 for i ulong 4097 21 b = htmark 10 1 i 0 0 22 end 23 n = argread 1 path 0 4095 24 if eq n 0 25 ret 1 26 end 27 fd = fopen path 0 ulong n 577 384 28 if lt fd 0 29 ret 1 30 end 31 r = htdump int fd 32 c = fclose int fd 33 if le r 0 34 ret 1 35 end 36 ret 0 37 end