Filter löschen
Filter löschen

MATLAB cluster on AWS-EC2 - vCPU utilization

3 Ansichten (letzte 30 Tage)
vasja sivec
vasja sivec am 29 Apr. 2024
Beantwortet: vasja sivec am 2 Mai 2024
Dear Matlab users,
I have set up a Matlab cluster on AWS-EC2 for a parallel computation task. When setting up the infrastructure, I selected the 'm6a.8xlarge' cluster, which works with 16 physical and 32 virtual CPU cores. Parpool connects to 16 cores, the code uses 50% of CPU (as read from the task manager). Is there a way to make use of the virtual cores as well? That is, is it possible to connect to 32 workers (32 vCPU units) and utilize the physical CPU at 100%?
This question likely reflects my limited understanding of online computing. I could not find an explanation for it by browsing the Matlab community (questions and tutorials).
Edit: Initially, Matlab on AWS-EC2 threw an error, which I bypassed using the instructions in the link below.
Thank you for your help.
Kind regards,
Vasja

Akzeptierte Antwort

vasja sivec
vasja sivec am 2 Mai 2024
Upon further reading, I discovered that MATLAB restricts the number of workers in `parpool` to be equal to the number of physical CPU cores when working with the Cloud Center. Therefore, one cannot utlize all vCPUs.
Specifically, MATLAB's documentation states: "Cloud Center supports at most one worker per physical core. Although Amazon Web Services machines can have many virtual cores, Cloud Center restricts use to at most one worker per physical core for optimal performance."

Weitere Antworten (0)

Kategorien

Mehr zu Parallel Computing Fundamentals finden Sie in Help Center und File Exchange

Produkte


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by