okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge f-sycl-prs e106b4c86 into the batch 16 candidate (SYCL pull requests 4185 and 3153)a8a51b280

main
580 B14 linesraw
1#pragma once
2#include <cstdint>
3#include <cstdlib>
4namespace strata::kernels {
5inline bool b60_mtp_q8_cache_requested(){
6 const char* a=std::getenv("STRATA_PRIVATE_B60_NEXT_POOL");
7 const char* b=std::getenv("STRATA_PRIVATE_MTP_Q8_SOA");
8 return 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}