mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-08-10 22:54:39 +02:00
Add provisions for windows support for BF16 code including CMake provision for enabling AVX512_BF16 (llama/7258)
This commit is contained in:
committed by
Georgi Gerganov
parent
67919cfe11
commit
eb2b086584
12
ggml-impl.h
12
ggml-impl.h
@ -17,6 +17,18 @@
|
||||
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
||||
#define m512bh(p) p
|
||||
#define m512i(p) p
|
||||
|
||||
#else
|
||||
|
||||
#define m512bh(p) (__m512bh)(p)
|
||||
#define m512i(p) (__m512i)(p)
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Converts brain16 to float32.
|
||||
*
|
||||
|
Reference in New Issue
Block a user