diff options
author | Max Ryabinin <mryabinin0@gmail.com> | 2022-07-01 17:16:10 +0300 |
---|---|---|
committer | Max Ryabinin <mryabinin0@gmail.com> | 2022-07-01 17:16:10 +0300 |
commit | 8258b4364a21a4da2572cb644d0926080c3268da (patch) | |
tree | 571e95bc327116fbaba08d14871fb0b224b8a65b /csrc/common.h | |
parent | 33efe4a09f459832e8beceba70add0695cc485e4 (diff) |
Add a CPU-only build option
Diffstat (limited to 'csrc/common.h')
-rw-r--r-- | csrc/common.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/csrc/common.h b/csrc/common.h new file mode 100644 index 0000000..35f2463 --- /dev/null +++ b/csrc/common.h @@ -0,0 +1,23 @@ +#include <BinSearch.h> + +#ifndef common +#define common + +using namespace BinSearch; + +struct quantize_block_args { + BinAlgo<Scalar, float, Direct2> *bin_searcher; + float *code; + float *A; + float *absmax; + unsigned char *out; + int block_end; + int block_idx; + int threadidx; +}; + +#define BLOCK_SIZE 4096 + +void *quantize_block(void *arguments); + +#endif
\ No newline at end of file |