From 56b3e3f3f8ca9972ca390c8296fde363bdab271c Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Tue, 14 Jul 2020 01:34:03 +0000 Subject: AVX path for BF16 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 28103856e..867d068d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,6 +239,12 @@ if(NOT MSVC) message(STATUS "Enabling FMA in tests/examples") endif() + option(EIGEN_TEST_AVX2 "Enable/Disable AVX2 in tests/examples" OFF) + if(EIGEN_TEST_AVX2) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mavx2 -mfma") + message(STATUS "Enabling AVX2 in tests/examples") + endif() + option(EIGEN_TEST_AVX512 "Enable/Disable AVX512 in tests/examples" OFF) if(EIGEN_TEST_AVX512) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mavx512f -mfma") -- cgit v1.2.3