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.

Comsol on HPC server

Please login with a confirmed email address before reporting spam

I have just set up Comsol on a 48 processor machine using HPC server it is one machine with no cluster. It is running extremely slow. When using all 48 processors it takes over 137 seconds to process the wrench simulation model that comes in the model library. When I limit the processors to 2 it process in about 24 seconds which is faster but still slower than it should be. I think it must be something with the configuration settings of either Comsol or HPC server or both? Can anyone help me with the configuration of Comsol and HPC server? Thanks.

7 Replies Last Post 7 feb 2013, 12:54 GMT-5

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 22 feb 2011, 16:19 GMT-5
Hi Troy!

I never tried using Comsol on so many cores, but from other parallel programming I know that you only get a speedup if the overhead of chunking the problem is much less than the solution of each problem chunk. Try monitoring the load of your server. Maybe it takes Comsol a long time to split your huge problem into chunks (which I assume is done on a single core) and then the solution of each chunk takes little time on each core. But as I said, it's just a guess.
Hi Troy! I never tried using Comsol on so many cores, but from other parallel programming I know that you only get a speedup if the overhead of chunking the problem is much less than the solution of each problem chunk. Try monitoring the load of your server. Maybe it takes Comsol a long time to split your huge problem into chunks (which I assume is done on a single core) and then the solution of each chunk takes little time on each core. But as I said, it's just a guess.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 23 feb 2011, 08:56 GMT-5
Thanks,

I will try monitoring the server more closely. Right now I am not running a large problem however. I am just trying to run a simple model from the model library and it seems to be taking a lot longer to solve the model than it should be even when I limit the processers.

We did learn that the math library that Comsol uses is tailored for the Intel Xeon processor and our computer uses AMD processors. We installed the AMD-speciic math library and it improved the performance of the machine, but it still seems to be slow.

The wrench model that comes with the model library has a solution time of 11 seconds. When I run it with 48 processors it takes over 70 seconds. The model seems to run fastest when using 2 processors, but it still takes over 20 seconds to solve. I am new to Comsol, but this just seems slower than it should be with this computer.
Thanks, I will try monitoring the server more closely. Right now I am not running a large problem however. I am just trying to run a simple model from the model library and it seems to be taking a lot longer to solve the model than it should be even when I limit the processers. We did learn that the math library that Comsol uses is tailored for the Intel Xeon processor and our computer uses AMD processors. We installed the AMD-speciic math library and it improved the performance of the machine, but it still seems to be slow. The wrench model that comes with the model library has a solution time of 11 seconds. When I run it with 48 processors it takes over 70 seconds. The model seems to run fastest when using 2 processors, but it still takes over 20 seconds to solve. I am new to Comsol, but this just seems slower than it should be with this computer.

Jim Freels mechanical side of nuclear engineering, multiphysics analysis, COMSOL specialist

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 24 feb 2011, 14:11 GMT-5
What switches do you use when you start comsol ?

If you have no cluster, then you should not try to run the distributed parallel processing mode. You should only run the shared memory parallel processing mode. See the COMSOL documentation for definitions.

You should start comsol with "comsol -np 48" and do not use the "-nn" switch.

What switches do you use when you start comsol ? If you have no cluster, then you should not try to run the distributed parallel processing mode. You should only run the shared memory parallel processing mode. See the COMSOL documentation for definitions. You should start comsol with "comsol -np 48" and do not use the "-nn" switch.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 26 mar 2011, 17:14 GMT-4
Troy Burnett,
I just wanted you followup on this issue. So were you able resolve the issue? if so, how?

in the near future, I hope to run comsol on a similar server. thanks.


--
merci
Troy Burnett, I just wanted you followup on this issue. So were you able resolve the issue? if so, how? in the near future, I hope to run comsol on a similar server. thanks. -- merci

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 28 mar 2011, 09:04 GMT-4
We were able to get the system functioning properly. Our computers use AMD processors and there is a special math library for the AMD processor. Once we obtained this math library and were able to load it the performance time was a lot better. After installing the math library you have to set the –blaspath in Comsol to read it.
We were able to get the system functioning properly. Our computers use AMD processors and there is a special math library for the AMD processor. Once we obtained this math library and were able to load it the performance time was a lot better. After installing the math library you have to set the –blaspath in Comsol to read it.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 16 mag 2012, 06:31 GMT-4
Hi Troy,
I have the same problem on an AMD Opteron dual socket (32 cores total) with 256 GB RAM.
The same model ran on a Intel 8 cores machine is a lot faster than on the big AMD machine.
Could you tell me more about the "special math library"? Is The ACML or something other?

Thanks!
Hi Troy, I have the same problem on an AMD Opteron dual socket (32 cores total) with 256 GB RAM. The same model ran on a Intel 8 cores machine is a lot faster than on the big AMD machine. Could you tell me more about the "special math library"? Is The ACML or something other? Thanks!

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 7 feb 2013, 12:54 GMT-5
Hi Tory,
Would you please let me know who you set up your COMSOL fro running on HPC server? We have HPC server here at NCSU, but I could not get run on that up to now.
Thank you,
Giti
Hi Tory, Would you please let me know who you set up your COMSOL fro running on HPC server? We have HPC server here at NCSU, but I could not get run on that up to now. Thank you, Giti

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.