mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 13:58:46 +01:00
ggml : expose SSE3 and SSSE3 for MSVC when AVX is available (whisper/2128)
This commit is contained in:
parent
0d26d8ccd8
commit
182adefcf3
@ -120,9 +120,16 @@ extern "C" {
|
|||||||
#ifndef __F16C__
|
#ifndef __F16C__
|
||||||
#define __F16C__
|
#define __F16C__
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// __SSE3__ and __SSSE3__ are not defined in MSVC, but SSE3/SSSE3 are present when AVX/AVX2/AVX512 are available
|
||||||
|
#if defined(_MSC_VER) && (defined(__AVX__) || defined(__AVX2__) || defined(__AVX512F__))
|
||||||
#ifndef __SSE3__
|
#ifndef __SSE3__
|
||||||
#define __SSE3__
|
#define __SSE3__
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef __SSSE3__
|
||||||
|
#define __SSSE3__
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// 16-bit float
|
// 16-bit float
|
||||||
|
Loading…
Reference in New Issue
Block a user