How to set the multithreading of the blas (matlab2019) in my new I9-10900X

3 Ansichten (letzte 30 Tage)
The 'a\b' operator works well on my old PC (i7/4core/matlab2017a). It can use all 4 CPU. But on my new PC(I9 10900XE), it can only use 1 core, whatever in Matlab2015b,2017a or 2019b.
OS:win10 ent
env:
NUMBER_OF_PROCESSORS=20
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_REVISION=5507
version -blas : Intel(R) Math Kernel Library Version 2018.0.3 Product Build 20180406 for Intel(R) 64 architecture applications, CNR branch AVX512
maxNumCompThreads : 10
I also try to install intel PS2013 and then PS2018, but it seems useless.

Antworten (1)

guoliang song
guoliang song am 28 Jan. 2020
Bearbeitet: guoliang song am 28 Jan. 2020
Oh, matlab is really a marvel!
If I work on the command line and input the three lines bellow, then matlab can use all 10 cores.
load('teaa466.mat','aa');
load('tebb466.mat','bb');
ab=aa\bb(:,5);
But if I wrote these three lines into a function f_fit4()
Then I run this function f_fit4. Matlab can only use 1 core.
That is not the end:
If I run these four lines in command window:
load('teaa466.mat','aa');
load('tebb466.mat','bb');
ab=aa\bb(:,5);
f_fit4;
Both two process can use all 10 core!!!!!!!!!!

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by