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
CUDApp / src / omega_ampere_qmd.h
| 1 | /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ |
| 2 | #ifndef OMEGA_AMPERE_QMD_H |
| 3 | #define OMEGA_AMPERE_QMD_H |
| 4 | #include <stdint.h> |
| 5 | /* NVIDIA open-gpu-doc classes/compute/clc7c0.h AMPERE_COMPUTE_B, |
| 6 | * Vendor source pin: NVIDIA open-gpu-doc@9fdf5c4062007929d9f4e6cbad9c9771fe61b880. |
| 7 | * clc6c0.h AMPERE_COMPUTE_A, host/clc56f.h AMPERE_CHANNEL_GPFIFO_A. |
| 8 | * SM86 uses COMPUTE_B, not the GA100 COMPUTE_A class. These are not qualifications. */ |
| 9 | #define OMEGA_AMPERE_COMPUTE_A 0xc6c0u |
| 10 | #define OMEGA_AMPERE_COMPUTE_B 0xc7c0u |
| 11 | #define OMEGA_AMPERE_GPFIFO_A 0xc56fu |
| 12 | #define OMEGA_AMPERE_QMD_WORDS 64u |
| 13 | /* Internal bridge entry shared by NVRM's class/reserve admission and QMD host glue. |
| 14 | * om/encoder/amp_runtime.om is the implementation; no C fallback. */ |
| 15 | int omega_ampere_policy(const uint64_t m[16], uint32_t q[64]); |
| 16 | int omega_ampere_build_qmd(uint32_t q[64], uint64_t code, uint64_t cbank, |
| 17 | uint64_t semaphore, uint32_t tx, uint32_t ty, |
| 18 | uint32_t gx, uint32_t gy, uint32_t registers, |
| 19 | uint32_t shared_bytes); |
| 20 | #endif |