Quantcast
Channel: Recent posts
Viewing all articles
Browse latest Browse all 114

Importance of size of lwork array when passed to ?getri

$
0
0

Just a FYI for MKL users, as this caught me....

I was profiling and noticed that calls to zgetri was not scaling  as the # of threads increased. Also Intel Amplifier showed that that OMP threads apart from the main thread were spinning.

The problem was an work array only set to size "n". Increasing lwork to the recommended value tripled the performance with 4 cores and showed the threads fully occupied again.  Of course, the MKL documentation covers this, including a "pre-flight" to get an optimum value for lwork.

 


Viewing all articles
Browse latest Browse all 114

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>