Skip to content

Commit

Permalink
Merge pull request #37014 from trackreco/mkFit-immintrin-patch
Browse files Browse the repository at this point in the history
patch-around immintrin.h for non-x86 case in MkFit
  • Loading branch information
cmsbuild committed Feb 22, 2022
2 parents 2ee2dcc + e731805 commit 69c0b83
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions RecoTracker/MkFitCore/src/Matriplex/MatriplexCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@
// Intrinsics -- preamble
//==============================================================================

#if defined(__x86_64__)
#include "immintrin.h"
#else
#include <stdlib.h>
#define _mm_malloc(a, b) aligned_alloc(b, a)
#define _mm_free(p) free(p)
#define _mm_prefetch(a, b) __builtin_prefetch(a)
#endif

#if defined(MPLEX_USE_INTRINSICS)
// This seems unnecessary: __AVX__ is usually defined for all higher ISA extensions
Expand Down

0 comments on commit 69c0b83

Please sign in to comment.