Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/src/ggml-cuda/argsort.cuh # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / src / ggml-cuda / argsort.cuh` 23 lines ยท 979 bytes Raw Blame History 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);