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

github.com/marian-nmt/FBGEMM.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoung Jin Kim <youki@microsoft.com>2019-09-17 19:52:24 +0300
committerYoung Jin Kim <youki@microsoft.com>2019-09-17 19:52:24 +0300
commitf0b354327aaf2330c65340725b1981040c8bec9e (patch)
tree8c6408445dd9b1296cfc619a7a2bc4106e89a116
parent57dcf55075e7173fd21eb81d825133aa740c7255 (diff)
Enable AVX2 query API when compiled with AVX
-rwxr-xr-xsrc/Utils.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/Utils.cc b/src/Utils.cc
index 8569553..355a5cb 100755
--- a/src/Utils.cc
+++ b/src/Utils.cc
@@ -202,14 +202,8 @@ bool fbgemmHasAvx512Support() {
cpuinfo_has_x86_avx512dq() && cpuinfo_has_x86_avx512vl());
}
-#ifdef __AVX2__
bool fbgemmHasAvx2Support() {
return (cpuinfo_initialize() && cpuinfo_has_x86_avx2());
}
-#else
-bool fbgemmHasAvx2Support() {
- return false;
-}
-#endif
} // namespace fbgemm