okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
a8a51b280
main
1#pragma once 2#include <cstdint> 3#include <cstdlib> 4namespace strata::kernels { 5inline bool b60_mtp_q8_cache_requested (){ 6const char * a = std::getenv ("STRATA_PRIVATE_B60_NEXT_POOL" ); 7const char * b = std::getenv ("STRATA_PRIVATE_MTP_Q8_SOA" ); 8return a && a [0 ]== '1' && b && b [0 ]== '1' ; 9} 10void b60_make_mtp_q8_cache (const void * ,int rows ,int cols ,unsigned token_mask ,int device ,void * stream ); 11const void * b60_cached_mtp_q8_weight (const void * ,int rows ,int cols ,int tokens ,int device ); 12bool b60_has_mtp_q8_cache (const void * ); 13void b60_release_mtp_q8_cache (const void * ,int device ,void * stream ); 14}