Skip to content

Commit

Permalink
Fix MSVC inconsistent DLL linkage
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyever committed Oct 5, 2023
1 parent 2b04682 commit 687ab54
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/EmbeddingSpMDMAvx2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* LICENSE file in the root directory of this source tree.
*/

#include <cassert>
#define FBGEMM_EXPORTS
#include <cmath>
#include "RefImplementations.h"
#include "fbgemm/FbgemmEmbedding.h"
Expand Down
1 change: 1 addition & 0 deletions src/FbgemmBfloat16ConvertAvx2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86)))
#include <immintrin.h>
#endif
#define FBGEMM_EXPORTS
#include "fbgemm/FbgemmConvert.h"

namespace fbgemm {
Expand Down
1 change: 1 addition & 0 deletions src/FbgemmBfloat16ConvertAvx512.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86)))
#include <immintrin.h>
#endif
#define FBGEMM_EXPORTS
#include "fbgemm/FbgemmConvert.h"

namespace fbgemm {
Expand Down
1 change: 1 addition & 0 deletions src/FbgemmFloat16ConvertAvx2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86)))
#include <immintrin.h>
#endif
#define FBGEMM_EXPORTS
#include "fbgemm/FbgemmConvert.h"

namespace fbgemm {
Expand Down
1 change: 1 addition & 0 deletions src/FbgemmFloat16ConvertAvx512.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86)))
#include <immintrin.h>
#endif
#define FBGEMM_EXPORTS
#include "fbgemm/FbgemmConvert.h"

namespace fbgemm {
Expand Down

0 comments on commit 687ab54

Please sign in to comment.