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/ssm-scan.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 / ssm-scan.cuh` 13 lines ยท 650 bytes Raw Blame History 1 #include "common.cuh" 2 3 // fused-kernel recurrent-state output; strides in elements (per-seq stride is always the state row size, set in-kernel) 4 struct ggml_cuda_ssm_scan_fused_cache { 5 float * data; // rollback slot 0 6 int64_t slot_stride; // between rollback slots 7 }; 8 9 void ggml_cuda_op_ssm_scan(ggml_backend_cuda_context & ctx, ggml_tensor * dst); 10 11 // same op, but writes the state snapshot(s) into the cache instead of dst (see ggml_cuda_try_ssm_scan_cache_fusion) 12 void ggml_cuda_op_ssm_scan_fused_cache(ggml_backend_cuda_context & ctx, ggml_tensor * dst, 13 ggml_cuda_ssm_scan_fused_cache cache);