okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge f-own-1a (451f3e8a6): own-stack phase 1A and cleanup 5.4; the ggml/MMQ sources the engines build are vendored in third_party/strata-ggml (frozen at the pin, manifest and check), default engine builds need no llama.cpp download, the TQ overlay is plain files, CMakeLists.txt is split into cmake/backends/*; every engine unchanged (CUDA/HIP gfx1201/gfx1151/SYCL device code identical, SYCL 22/22 checksums, Metal 104/105 objects with only __TIME__ differing, CUDA tokens 26/26); release scripts still pass -DSTRATA_GGML_DIR (owner go 11-08)508e6999a

main
741 B28 linesraw
1#pragma once
2
3#include <cuda_runtime.h>
4#include <cuda.h>
5#include <cublas_v2.h>
6#include <cuda_bf16.h>
7#include <cuda_fp16.h>
8
9#ifdef GGML_USE_NCCL
10#include <nccl.h>
11#endif // GGML_USE_NCCL
12
13#if CUDART_VERSION >= 11080
14#include <cuda_fp8.h>
15#define FP8_AVAILABLE
16#endif // CUDART_VERSION >= 11080
17
18#if CUDART_VERSION >= 12080
19#include <cuda_fp4.h>
20#endif // CUDART_VERSION >= 12080
21
22#if CUDART_VERSION < 11020
23#define CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED CU_DEVICE_ATTRIBUTE_VIRTUAL_ADDRESS_MANAGEMENT_SUPPORTED
24#define CUBLAS_TF32_TENSOR_OP_MATH CUBLAS_TENSOR_OP_MATH
25#define CUBLAS_COMPUTE_16F CUDA_R_16F
26#define CUBLAS_COMPUTE_32F CUDA_R_32F
27#define cublasComputeType_t cudaDataType_t
28#endif // CUDART_VERSION < 11020