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 / host-trace / lossy.om

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