Skip to content

Commit

Permalink
ggml : expose SSE3 and SSSE3 for MSVC when AVX is available (whisper/…
Browse files Browse the repository at this point in the history
…2128)
  • Loading branch information
przemoc authored and ggerganov committed May 14, 2024
1 parent 0d26d8c commit 182adef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ggml-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,16 @@ extern "C" {
#ifndef __F16C__
#define __F16C__
#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__
#define __SSE3__
#endif
#ifndef __SSSE3__
#define __SSSE3__
#endif
#endif

// 16-bit float
Expand Down

0 comments on commit 182adef

Please sign in to comment.