How to temporarily assign the number of cpu cores through matlab?

Please login with a confirmed email address before reporting spam

Hi there,

I want to run several modelings at the same time through opening several terminals of comsol with matlab.

The question is the size of the models varies from case to case. I think it would be more efficient to assign different number of cpu cores through matlab code for each specific modeling. Is it possible to run several modeling assigned with different number of cores at the same time?

More importantly, I know how to change the number of cores through comsol gui. I was wondering how to temporarily change it through matlab code.

Thank you so much!

Best


1 Reply Last Post 2024年7月15日 GMT-4 04:41
COMSOL Moderator

Hello HC L

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 4 months ago 2024年7月15日 GMT-4 04:41

Is it possible to fulfil this goal through the method described below. Maybe, there is a file that stipulates the number of cores that comsol will use in the coming starting up. Then, each time when I want to change the number of cores, I would modify this file before click on comsol with matlab. If so, how could I find this file and modify it?

Is it possible to fulfil this goal through the method described below. Maybe, there is a file that stipulates the number of cores that comsol will use in the coming starting up. Then, each time when I want to change the number of cores, I would modify this file before click on comsol with matlab. If so, how could I find this file and modify it?

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.