MATLAB cluster on AWS-EC2 - vCPU utilization

2 次查看(过去 30 天)
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

采纳的回答

vasja sivec
vasja sivec 2024-5-2
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."

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Cloud Integrations 的更多信息

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by