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 / speculation / native-device-test.om

27 lines · 579 bytes Raw Blame History
1note Physical device context acceptance. No kernels, timings or model execution.
2text ok "NATIVE_DEVICE_CONTEXT_PASS\n"
3text bad "NATIVE_DEVICE_CONTEXT_FAIL\n"
4global result uchar 24
5fn pack off ulong v long to void
6for i ulong 8
7put result add off i uchar and shr v mul i 8 255
8end
9end
10fn main to int
11for attempt ulong 3
12good = nvstart
13stage = get nvstage 0
14error = get nverr 0
15closed = nvstop
16if not and good closed
17r = write 2 bad 0 len bad
18pack 0 long stage
19pack 8 error
20pack 16 long get nvsm 0
21r = write 1 result 0 len result
22ret 1
23end
24end
25r = write 1 ok 0 len ok
26ret 0
27end