Optimizing number of threads and workers in virtual machines.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
julian gaviria
am 5 Mär. 2025
Beantwortet: Mike Croucher
am 6 Mär. 2025
Can I reduce the computational time through adjusting the numer of threads and the number of workers in my VM?
Processor: Intel® Xeon® Platinum 8280L Processor 38.5M Cache, 2.70 GHz
Total Cores 28
Total Threads 56
I assume the cores are logical.
The following scenarios yielded barely the same results in terms of computatiional time.
NumWorkers= 1 NumThreats=1
NumWorkers= 2 NumThreats=1
NumWorkers= 3 NumThreats=1
NumWorkers= 1 NumThreats=3
NumWorkers= 2 NumThreats=3
NumWorkers= 3 NumThreats=3
0 Kommentare
Akzeptierte Antwort
Mike Croucher
am 6 Mär. 2025
In general, this depends hugely on exactly what your code is doing. If there was one perfect setting that always worked, it would be the default and you'd never need to do anything.
So, what is your code doing? Since you are varying number of workers your code is making use of parallel constructs like parfor or parfeval right? If not, this will make no difference,
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!