diff --git a/inc/mkn/avx/lazy.hpp b/inc/mkn/avx/lazy.hpp index 2df54eb..78f61bc 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;