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 / graph / address.om

14 lines · 409 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2note q0: align256, split VA, strided byte offset. Unsigned address arithmetic matches the legacy ABI.
3fn mg_addr q view ulong 8 to ulong
4if eq get q 0 0
5ret and add get q 1 255 18446744073709551360
6end
7if eq get q 0 1
8if lt get q 4 get q 3
9ret add get q 1 get q 4
10end
11ret add get q 2 sub get q 4 get q 3
12end
13ret add get q 1 mul get q 5 get q 6
14end