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 / om / apirest / victim.om

22 lines · 423 bytes Raw Blame History
1om2
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3fn ar_vfree q view ulong 8 x view uchar * j ulong to ulong
4b = mul j get q 1
5if eq get x add b get q 2 0
6ret 1
7end
8if eq get x add b get q 3 0
9ret 1
10end
11ret 0
12end
13fn arvictim q edit ulong 8 x view uchar * to ulong
14for i ulong get q 0
15j = rem add get q 4 i get q 0
16if ne ar_vfree q x j 0
17put q 4 rem add j 1 get q 0
18ret j
19end
20end
21ret 18446744073709551615
22end