diff --git a/faiss/utils/onednn/onednn_utils.h b/faiss/utils/onednn/onednn_utils.h index be60fe6c63..1fab631ae9 100644 --- a/faiss/utils/onednn/onednn_utils.h +++ b/faiss/utils/onednn/onednn_utils.h @@ -16,6 +16,7 @@ #include "oneapi/dnnl/dnnl.hpp" namespace faiss { + static dnnl::engine cpu_engine; static dnnl::stream engine_stream; static bool is_onednn_init = false; @@ -109,4 +110,4 @@ static void comput_f32bf16f32_inner_product(uint32_t xrow, uint32_t xcol, uint32 // printf("comput_f32bf16f32_inner_product finished#######>\n"); } -}//namespace faiss \ No newline at end of file +}//namespace faiss