how to throttle CPU usage for fitrgp?
Show older comments
(I hate asking something this trivial, but I'm frustrated... thanks for reading.)
My gaussian process regression via fitrgp automatically uses the maximum number of physical cores.
maxNumCompThreads(1)
mdl = fitrgp(X_train, Y_train,'KernelFunction', 'squaredexponential');
Specifically, setting the maxNumCompThreads is not effective in limiting CPU usage.
What am i missing here for throttling built-ins? I want to hard-limit it to may maybe 20 or 30 cores on this shared memory system.
Accepted Answer
More Answers (1)
Drew
on 14 Dec 2023
Use maxNumCompThreads https://www.mathworks.com/help/matlab/ref/maxnumcompthreads.html to set the desired max number of computational threads.
LASTN = maxNumCompThreads(N)
If this answer helps you, please remember to accept the answer.
2 Comments
Walter Roberson
on 14 Dec 2023
? they are already doing that, but it isn't helping.
jessupj
on 14 Dec 2023
Categories
Find more on Gaussian Process Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!