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 / smi / capprobe.om

21 lines · 708 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note capprobe.om: does this omc admit a 55888-byte devcall (the utilization control's params)?
3note Issues the NV_ESC_RM_CONTROL request 3223340586 on /dev/null, which is not a GPU device:
4note the kernel answers ENOTTY (-25) when the call is made. An omc without the aien-dev/omega-mv#1042
5note bound traps 3 at the devcall instead (exit 103). Exit 0: the call was made and returned -25.
6text cpnull "/dev/null"
7global cphdr uchar 32
8global cpbuf uchar 55888
9
10fn main to int
11fd = fopen cpnull 0 len cpnull 524290 0
12if lt fd 0
13ret 1
14end
15r = devcall int fd uint 3223340586 cphdr 0 32 cpbuf 0 55888
16c = fclose int fd
17if ne r -25
18ret 2
19end
20ret 0
21end