ggml
[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)
Brought by drakestapleton
ggml / src / ggml-cuda / argsort.cuh
| 1 | #include "common.cuh" |
| 2 | |
| 3 | #define CUDA_ARGSORT_BLOCK_SIZE 1024 |
| 4 | |
| 5 | void ggml_cuda_op_argsort(ggml_backend_cuda_context & ctx, ggml_tensor * dst); |
| 6 | |
| 7 | int ggml_cuda_chunk_nrows(const size_t row_bytes, const int64_t nrows); |
| 8 | |
| 9 | #ifdef GGML_CUDA_USE_CUB |
| 10 | void argsort_f32_i32_cuda_cub(ggml_cuda_pool & pool, |
| 11 | const float * x, |
| 12 | int * dst, |
| 13 | const int ncols, |
| 14 | const int nrows, |
| 15 | ggml_sort_order order, |
| 16 | cudaStream_t stream); |
| 17 | #endif // GGML_CUDA_USE_CUB |
| 18 | void argsort_f32_i32_cuda_bitonic(const float * x, |
| 19 | int * dst, |
| 20 | const int ncols, |
| 21 | const int nrows, |
| 22 | ggml_sort_order order, |
| 23 | cudaStream_t stream); |