From 4db9a59fcff05621051ad0bbbb0528bb8fcfb9cb Mon Sep 17 00:00:00 2001 From: Jie Fu Date: Thu, 13 Jun 2024 07:42:20 +0800 Subject: [PATCH] Address review comments --- csrc/cpu/cpu_types.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/csrc/cpu/cpu_types.hpp b/csrc/cpu/cpu_types.hpp index f901fa69d955..d7621aaae81c 100644 --- a/csrc/cpu/cpu_types.hpp +++ b/csrc/cpu/cpu_types.hpp @@ -5,6 +5,10 @@ #include #include +#ifndef __AVX2__ +static_assert(false, "AVX2 must be supported for the current implementation."); +#endif + namespace vec_op { // FIXME: FP16 is not fully supported in Torch-CPU