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

cpu_type.h - github.com/marian-nmt/intgemm/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 58c6584dd07b9b2a8371299492ffc92530f64ab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

namespace intgemm {

// If you want to detect the CPU and dispatch yourself, here's what to use:
typedef enum {CPU_AVX512BW = 4, CPU_AVX2 = 3, CPU_SSSE3 = 2, CPU_SSE2 = 1, CPU_UNSUPPORTED} CPUType;

// Running CPU type.  This is defined in intgemm.cc (as the dispatcher).
extern const CPUType kCPU;

} // namespace intgemm