bitsandbytes-rocm/csrc/common.h

26 lines
413 B
C
Raw Normal View History

2022-07-01 14:16:10 +00:00
#include <BinSearch.h>
#ifndef common
#define common
using namespace BinSearch;
#define BLOCK_SIZE 16384
2022-07-01 14:16:10 +00:00
struct quantize_block_args {
BinAlgo<Scalar, float, Direct2> *bin_searcher;
float *code;
float *A;
float *absmax;
unsigned char *out;
long long block_end;
long long block_idx;
long long threadidx;
long long blocksize;
2022-07-01 14:16:10 +00:00
};
void *quantize_block(void *arguments);
2022-07-01 14:36:30 +00:00
#endif