mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-09-24 23:33:08 +08:00
fix mkl warning
This commit is contained in:
@@ -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<std::vector<std::vector<int>>> boxes;
|
||||
det.Run(srcimg, boxes);
|
||||
|
||||
Reference in New Issue
Block a user