Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

CPU 1 thread operation

Imai__Yoshiaki
Beginner
723 Views

Hello,

I'm using OpenVINO R4 on the server with Gold5115 CPU (10 cores/20 threads) x2 (two way server).

I want to compare the performance between CPU (one thread), FPGA, and Myriad.

 

However, If I start some inference sample program, such as face detection,

20 logical processors #1~#20 usages are almost 100%.

(Others are almost 0%.)

 

I'd like to use only one thread to check and compare performance.

Could you teach me how to limit the threads number of CPU in OpenVINO?

 

 

0 Kudos
2 Replies
Severine_H_Intel
Employee
723 Views

Dear Yoshiaki,

use the following line before calling your program:

export OMP_NUM_THREADS=1

Best, 

Severine

0 Kudos
Imai__Yoshiaki1
Beginner
723 Views

Dear Severine,

It works and I find CPU usage becomes low as expected.

Thank you very much for your comment.

Best regards,

Imai

 

 

0 Kudos
Reply