diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b7eade8b..346a59486 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,6 +139,7 @@ if (NS_BTLA_UT) endif() include(FindOpenMP) +set(BTLA_USE_OPENMP ON) add_subdirectory(bestla) add_subdirectory(neural_speed) diff --git a/bestla/bestla/ut/kernel_wrapper.cpp b/bestla/bestla/ut/kernel_wrapper.cpp index 76327deb3..26765c06c 100644 --- a/bestla/bestla/ut/kernel_wrapper.cpp +++ b/bestla/bestla/ut/kernel_wrapper.cpp @@ -201,14 +201,16 @@ class UT_LayerNormalization { public: UT_LayerNormalization() { UT_START(); - ut(4096, false, true, true); - ut(4096, false, false, false); - ut(111, false, true, true); - ut(111, true, true, true); + CheckISA(AVX2); ut(4096, false, true, true); ut(4096, false, false, false); ut(111, false, true, true); ut(111, true, true, true); + CheckISA(AVX512F); + ut(4096, false, true, true); + ut(4096, false, false, false); + ut(111, false, true, true); + ut(111, true, true, true); } template void ut(int norm_size, bool simplified, bool hasscale, bool hasbias) {