transcribe-cpp-sys 0.5.2

Native FFI bindings for transcribe.cpp, a C/C++ speech-to-text library built on ggml
Documentation
#ifndef HTP_DCACHE_H
#define HTP_DCACHE_H

#include <stdint.h>
#include "hex-common.h"
#include "htp-ops.h"

#define HTP_MAX_DIRTY_RANGES           64
#define HTP_DCACHE_BLOCK_SIZE          (HEX_L2_LINE_SIZE * 4) // flush granularity (chunks per thread)
#define HTP_DCACHE_FLUSH_WQ_THRESHOLD  (4 * 1024)
#define HTP_DCACHE_FLUSH_ALL_THRESHOLD (4 * 1024 * 1024)

struct htp_dirty_range {
    uint32_t start;
    uint32_t end;
};

struct htp_context;

void htp_dcache_flush_dirty_ranges(struct htp_context * ctx);
void htp_dcache_flush_dirty_tensors(struct htp_context * ctx, const struct htp_tensor * const * tensors, uint32_t n);
void htp_dcache_mark_dirty_tensors(struct htp_context * ctx, const struct htp_tensor * const * tensors, uint32_t n);

#endif // HTP_DCACHE_H