Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
6981 Discussions

Performance issue when running multiple instances of BLAS

missing__zlw
Beginner
382 Views

There is significant performance slow-down when I run a simple zgemv program with multiple instances on a machine.
If running a.exe take x time, when I run 4 a.exe at the same time on this machine, each takes 2x+ time. This is on Linux, multi-core (12), large memory machine. The matrix size is about 1400x1400.

What I can do to improve the performance with multiple instance run here?

Thanks.

0 Kudos
1 Reply
Todd_R_Intel
Employee
382 Views
First, you should know that linking a very simple zgemv program with Intel MKL will automaticallyparallelize the application and use all available cores on the system. Launching more instances will oversubscribe the resources of your system. In other words running two instances of your simply program will mean you have two different programs each trying to use all 12 cores cores.

Perhaps you want to link the sequential version to run zgemv on just one thread then launch multiple instances. You could also use mkl_set_num_threads() or other available environment variables.

Perhaps you're aware of all this and you were running into something else, but in that case we could use a little more information on how you're linking your program and how you expect to handle parallelism.

Todd
0 Kudos
Reply