HPC/Applications/comsol: Difference between revisions
Line 22: | Line 22: | ||
== Native desktop version, with license forwarding == | == Native desktop version, with license forwarding == | ||
[[Image:HPC Comsol license tunneling for PuTTY.png|thumb|Example for Comsol license tunneling using SSH under the popular PuTTY application. Adapt these settings for your SSH applications.|350px]] | <!-- [[Image:HPC Comsol license tunneling for PuTTY.png|thumb|Example for Comsol license tunneling using SSH under the popular PuTTY application. | ||
Adapt these -->settings for your SSH applications.|350px]] | |||
You can use a native Comsol version on your desktop but need a connection to the Comsol license server running on Carbon. | You can use a native Comsol version on your desktop but need a connection to the Comsol license server running on Carbon. | ||
Use these steps to set up the connection. | Use these steps to set up the connection. | ||
* On '''your desktop machine''', | * On '''your desktop machine''', set up SSH tunneling. | ||
** Windows: [[HPC/Network Access/PuTTY Configuration/Accessing Carbon licenses remotely | Configure PuTTY ]] | |||
** Linux/Mac/Cygwin: edit the file <code>~/.ssh/config</code> and add to the <code>Host clogin</code> section: | |||
Host clogin | Host clogin | ||
… | … | ||
Line 35: | Line 38: | ||
LocalForward 33319 sched1:1718 | LocalForward 33319 sched1:1718 | ||
* Log in to clogin. | * Log in to clogin. | ||
* Start the Comsol installer on your machine. Use the following settings when asked for licensing: | * Start the Comsol installer on your machine. Use the following settings when asked for licensing: | ||
Line 45: | Line 47: | ||
* Complete the installer. | * Complete the installer. | ||
* Locate and start the COMSOL Multiphysics application. | * Locate and start the COMSOL Multiphysics application. | ||
== Multicore usage == | == Multicore usage == |
Revision as of 12:56, August 30, 2012
Introduction
The COMSOL Multiphysics product is available for Mac, Windows, and Linux. You can run either the native version on your desktop or use the Linux version from Carbon, displaying on your desktop via X11.
- Contact me (stern) for a DVD of the software.
- Get Product Updates from Comsol.
Running comsol requires a license. Of the available features we have licensed a subset, shown at right.
Requirements
For casual use, and with X11 tunneling to Carbon already set up, simply add to your ~/.bashrc
file:
module load comsol
Basic usage with X11
Start the GUI on a clogin node:
comsol &
Comsol will use a number of cores to run calculations multithreaded by default. (On Carbon, COMSOL_NUM_THREADS is set.)
Quit the application as soon as you are done. Only one user can use Comsol at a time.
Native desktop version, with license forwarding
settings for your SSH applications.|350px]] You can use a native Comsol version on your desktop but need a connection to the Comsol license server running on Carbon. Use these steps to set up the connection.
- On your desktop machine, set up SSH tunneling.
- Windows: Configure PuTTY
- Linux/Mac/Cygwin: edit the file
~/.ssh/config
and add to theHost clogin
section:
Host clogin … # Comsol FlexLM LocalForward 1719 mgmt03:1719 LocalForward 33317 mgmt03:1718 LocalForward 33318 mgmt04:1718 LocalForward 33319 sched1:1718
- Log in to clogin.
- Start the Comsol installer on your machine. Use the following settings when asked for licensing:
- License type: networked server
- License hosts:
localhost, port 33317 localhost, port 33318 localhost, port 33319
- Complete the installer.
- Locate and start the COMSOL Multiphysics application.
Multicore usage
Ways to start multi-core (from http://www.comsol.com/support/knowledgebase/1096/)
comsol -np 2
export COMSOL_NUM_THREADS=8 # automatically provided on Carbon comsol
- COMSOL does not benefit from hyperthreading.
Cluster usage
- http://www.comsol.com/support/knowledgebase/1001/ .
- Media:HPC 2012-05-16 Comsol parallel usage.pdf (Modified from http://www.comsol.com/support/knowledgebase/1001/files/4027/cluster_install_linux_42a.pptx – Appendix slide, PBS)
- Note: MPD is not supported on Carbon (I patched the main comsol script), and no longer necessary at all in Comsol-4.3.
Sample Job file
#!/bin/bash
#PBS -l nodes=2:ppn=8
#PBS -l walltime=2:00:00
#PBS -N jobname
#PBS -l software=comsol
#PBS -o job.out
#PBS -e job.err
#PBS -m ae
#PBS -V
cd $PBS_O_WORKDIR
comsol -clustersimple batch \
-tmpdir $TMPDIR \
-inputfile inp.mph \
-outputfile out.mph