diff --git a/inc/mkn/avx/lazy.hpp b/inc/mkn/avx/lazy.hpp index 2df54eb..0bb9629 100644 --- a/inc/mkn/avx/lazy.hpp +++ b/inc/mkn/avx/lazy.hpp @@ -39,6 +39,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include #include +#include namespace mkn::avx { @@ -225,7 +226,11 @@ struct LazyEvaluator } }; - auto const cl_size = std::hardware_destructive_interference_size; +#ifdef __cpp_lib_hardware_interference_size + std::size_t const cl_size = std::hardware_destructive_interference_size; +#else + std::size_t constexpr cl_size = 64; +#endif std::size_t const batch = cl_size / sizeof(T) / N; diff --git a/mkn.yaml b/mkn.yaml index 3c33057..574f5fd 100644 --- a/mkn.yaml +++ b/mkn.yaml @@ -11,7 +11,7 @@ profile: - name: test parent: headers - main: test/test.cpp + test: test/test_(\w).cpp mode: none - name: bench diff --git a/test/test.cpp b/test/test_avx.cpp similarity index 100% rename from test/test.cpp rename to test/test_avx.cpp