Add provisions for windows support for BF16 code including CMake provision for enabling AVX512_BF16 (#7258)

This commit is contained in:
Srihari-mcw 2024-05-19 19:18:39 -07:00 committed by GitHub
parent d359f30921
commit 33c8d50acc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 38 additions and 8 deletions

View file

@ -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.
*