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/getrows.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 / getrows.cuh` 15 lines ยท 622 bytes Raw Blame History 1 #include "common.cuh" 2 3 #define CUDA_GET_ROWS_BLOCK_SIZE 256 4 #define CUDA_GET_ROWS_BACK_BLOCK_SIZE 256 5 6 void get_rows_cuda( 7 const void * src0_d, ggml_type src0_type, const int32_t * src1_d, void * dst_d, ggml_type dst_type, 8 int64_t ne00, size_t nb01, size_t nb02, size_t nb03, 9 int64_t ne10, int64_t ne11, int64_t ne12, size_t nb10, size_t nb11, size_t nb12, 10 size_t nb1, size_t nb2, size_t nb3, 11 cudaStream_t stream); 12 13 void ggml_cuda_op_get_rows(ggml_backend_cuda_context & ctx, ggml_tensor * dst); 14 15 void ggml_cuda_op_get_rows_back(ggml_backend_cuda_context & ctx, ggml_tensor * dst);