Welcome to mirror list, hosted at ThFree Co, Russian Federation.

compile_test_avx512bw.cc - github.com/marian-nmt/intgemm/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8d0755155c6b047a5ebe592a9fc294b4727fda19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Some compilers don't have AVX512BW support.  Test for them.
#include <immintrin.h>

#if defined __INTEL_COMPILER
#define INTGEMM_AVX512BW __attribute__ ((target ("avx512f")))
#else
#define INTGEMM_AVX512BW __attribute__ ((target ("avx512bw")))
#endif

INTGEMM_AVX512BW int Test() {
  // AVX512BW
  __m512i value = _mm512_set1_epi32(1);
  value = _mm512_maddubs_epi16(value, value);
  return *(int*)&value;
}

int main() {
}