ggml
[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)
Brought by drakestapleton
ggml / src / ggml-cuda / vendors / cuda.h
| 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 |