diff options
author | Kenneth Heafield <github@kheafield.com> | 2019-03-24 19:48:48 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2019-03-24 19:48:48 +0300 |
commit | ca1b0b757ff1b3aa62b6b1a4e47d80201ca58786 (patch) | |
tree | 41bc59418e5e5da26d9ca20b07aabea335900141 /types.h | |
parent | 4d6282d55b0db74cfecc0ae50474e48b2836e4c8 (diff) | |
parent | 490addcd98d8b80c541695e3743a990c8f127dff (diff) |
Merge remote-tracking branch 'origin/tests_v2' into unsignedunsigned
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +#pragma once + +namespace intgemm { + +typedef unsigned int Index; + +// 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 |