diff --git a/deploy/cpp_infer/src/main.cpp b/deploy/cpp_infer/src/main.cpp index 187b70dcf408e0a0cd655a45c143a61e6db88b6c..21890d45ce8c6b13e280c87bdfad8ca8e48f8523 100644 --- a/deploy/cpp_infer/src/main.cpp +++ b/deploy/cpp_infer/src/main.cpp @@ -67,19 +67,6 @@ int main(int argc, char **argv) { config.gpu_mem, config.cpu_math_library_num_threads, config.use_mkldnn, config.char_list_file); -#ifdef USE_MKL -#pragma omp parallel - for (auto i = 0; i < 10; i++) { - LOG_IF(WARNING, - config.cpu_math_library_num_threads != omp_get_num_threads()) - << "WARNING! MKL is running on " << omp_get_num_threads() - << " threads while cpu_math_library_num_threads is set to " - << config.cpu_math_library_num_threads - << ". Possible reason could be 1. You have set omp_set_num_threads() " - "somewhere; 2. MKL is not linked properly"; - } -#endif - auto start = std::chrono::system_clock::now(); std::vector>> boxes; det.Run(srcimg, boxes);