Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

how set number of cores? -mac issue

Please login with a confirmed email address before reporting spam

Hi,
how set (check) how many cores use comsol 4a on mac?

2 Replies Last Post Feb 3, 2011, 8:50 a.m. EST

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Feb 3, 2011, 2:13 a.m. EST
Hi Patryk,

I am not sure for Mac, but it should be similar to linux - which I use - I suppose.
And I am working with v4.1, but I think the commands have already been available in 3.5 if I remember correctly.
If you start comsol from a command line in a terminal, try to start it with: comsol -np X (where X is the number of processors)
This works well for me.


There are some other command line options that might be useful for you.
e.g. "mpmode" (multiprocessor mode), which controls how comsol uses the available processors.
It offers three different choices: throughput, turnaround and owner. According to the documentation, the first choice is expected to give the best performance when several different processes are running actively at the same time as comsol. The second one (turnaround) should be the best in case that no other processes are running besides comsol and the third one - the documentation says - provides the highest performance in most cases.


Hope this helps,
Juergen
Hi Patryk, I am not sure for Mac, but it should be similar to linux - which I use - I suppose. And I am working with v4.1, but I think the commands have already been available in 3.5 if I remember correctly. If you start comsol from a command line in a terminal, try to start it with: comsol -np X (where X is the number of processors) This works well for me. There are some other command line options that might be useful for you. e.g. "mpmode" (multiprocessor mode), which controls how comsol uses the available processors. It offers three different choices: throughput, turnaround and owner. According to the documentation, the first choice is expected to give the best performance when several different processes are running actively at the same time as comsol. The second one (turnaround) should be the best in case that no other processes are running besides comsol and the third one - the documentation says - provides the highest performance in most cases. Hope this helps, Juergen

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Feb 3, 2011, 8:50 a.m. EST

Hi,
how set (check) how many cores use comsol 4a on mac?


On mac it will use all available cores. If you want to set yourself do it like this:

/Applications/COMSOL40a/bin/comsol -np 4


Danial


--
Comsol 4.1
Ubuntu 10.04.1
[QUOTE] Hi, how set (check) how many cores use comsol 4a on mac? [/QUOTE] On mac it will use all available cores. If you want to set yourself do it like this: /Applications/COMSOL40a/bin/comsol -np 4 Danial -- Comsol 4.1 Ubuntu 10.04.1

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.