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

github.com/marian-nmt/intgemm/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2019-03-24 19:48:48 +0300
committerKenneth Heafield <github@kheafield.com>2019-03-24 19:48:48 +0300
commitca1b0b757ff1b3aa62b6b1a4e47d80201ca58786 (patch)
tree41bc59418e5e5da26d9ca20b07aabea335900141 /types.h
parent4d6282d55b0db74cfecc0ae50474e48b2836e4c8 (diff)
parent490addcd98d8b80c541695e3743a990c8f127dff (diff)
Merge remote-tracking branch 'origin/tests_v2' into unsignedunsigned
Diffstat (limited to 'types.h')
-rw-r--r--types.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/types.h b/types.h
new file mode 100644
index 0000000..0954dd3
--- /dev/null
+++ b/types.h
@@ -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