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

조회 수: 3 (최근 30일)
guoliang song
guoliang song 2020년 1월 28일
편집: guoliang song 2020년 1월 28일
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.

답변 (1개)

guoliang song
guoliang song 2020년 1월 28일
편집: guoliang song 2020년 1월 28일
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!!!!!!!!!!

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by