You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Use :ref:`Open OnDemand<ood>` for the best experience for interactive work on triton.
28
-
28
+
29
29
1) Connect to `<https://ondemand.triton.aalto.fi>`_ with your browser, log in. (It currently takes a while, please be patient.) Choose "My Interactive Sessions" from top bar, and then "Triton Desktop" from bottom. Launch your session, and once resources become available in triton, the session will be started on one of the interactive session nodes of triton. You can connect to a desktop in your browser with the "Launch Triton Desktop" button.
30
30
31
31
2) Once you have connected, you can open a terminal (in XFCE the black rectangle in the bottom of the screen).
32
-
32
+
33
33
- You can alternatively open a linux session in `<https://vdi.aalto.fi>`_.
34
-
34
+
35
35
1) Open a terminal, and connect with ssh to triton login node
36
36
37
37
.. code-block:: console
@@ -61,14 +61,14 @@ Best practices of using COMSOL Graphical User Interface in Triton
61
61
$ comsol
62
62
63
63
64
-
64
+
65
65
Prerequsities of running COMSOL in Triton
66
66
-----------------------------------------
67
67
68
68
There is a largish but limited pool of floating COMSOL licenses in Aalto University, so please be careful not launch large numbers of comsol processess that each consume a separate license.
69
-
69
+
70
70
- Comsol uses a lot of temp file storage, which by default goes to
71
-
``$HOME``. Fix a bit like the following::
71
+
``$HOME``. Fix a bit like the following:
72
72
73
73
.. code-block:: console
74
74
@@ -78,23 +78,23 @@ There is a largish but limited pool of floating COMSOL licenses in Aalto Univers
78
78
79
79
80
80
- You may need to enable access to the whole filesystem in *File|Options --> Preferences --> Security*: **File system access:** "*All files*"
81
-
81
+
82
82
.. image:: comsol_preferences_security.jpg
83
83
:width: 50%
84
84
:alt: Figure showing the comsol security preferences dialog box: File system access: All files is highlighted.
85
85
86
86
- Enable the "Study -> Batch and Cluster" as well as "Study -> Solver and Job Configurations" nodes in the "Show More Options dialog box you can open by right-clicking the study in the Model Builder Tree.
87
-
88
-
89
87
90
88
91
89
92
-
The cluster settings can be saved in comsol settings, not in the model file. The correct settings are entered in *File|Options --> Preferences --> Multicore and Cluster Computing*. It is enough to choose **Scheduler type**: "*SLURM*"
90
+
91
+
92
+
The cluster settings can be saved in comsol settings, not in the model file. The correct settings are entered in *File|Options --> Preferences --> Multicore and Cluster Computing*. It is enough to choose **Scheduler type**: "*SLURM*"
93
93
94
94
.. image:: comsol_preferences_cluster.jpg
95
95
:width:50%
96
96
:alt:Figure showing the cluster preferences dialog box: Scheduler type: Slurm is highlighted.
97
-
97
+
98
98
You can test by loading from the Application Libraries the "cluster_setup_validation" model. The model comes with a documentation -pdf file, which you can open in the Application Libraries dialogue after selecting the model.
99
99
100
100
@@ -111,40 +111,42 @@ The knowledge base article `Running COMSOL® in parallel on clusters <https://ww
111
111
112
112
* - COMSOL
113
113
- SLURM & MPI
114
-
-
114
+
-
115
115
* - node
116
116
- task
117
117
- A process, software concept
118
118
* - host
119
119
- node
120
120
- A single computer
121
121
* - core
122
-
- cpu
122
+
- cpu
123
123
- A single CPU-core
124
124
125
125
However, COMSOL does not seem to be using the terms in a 100% consistent way. E.g. sometimes in the SLURM context COMSOL may use node in the SLURM meaning.
126
126
127
-
127
+
128
128
An example run in a single node
129
129
-------------------------------
130
130
131
-
Use the parameters ``-clustersimple`` and ``-launcher slurm``. Here is a sample batch-job::
131
+
Use the parameters ``-clustersimple`` and ``-launcher slurm``. Here is a sample batch-job:
One would not expect to need ``-np $SLURM_CPUS_PER_TASK``, but in practice COMSOL does not always automatically limit the jobs to the number of cpus per task. Instead, COMSOL assumes all CPUs on the node are reserved for it, and there are more COMSOL process trying to run than there are CPUs available.
150
152
@@ -163,7 +165,7 @@ If you have a parameter scan to perform, you can use the Cluster sweep node. The
163
165
First set up the cluster preferences, as described above.
164
166
165
167
166
-
Start by opening the graphical user interface to comsol on the login node and open your model. ::
168
+
Start by opening the graphical user interface to comsol on the login node and open your model.
167
169
168
170
.. code-block:: console
169
171
@@ -172,17 +174,17 @@ Start by opening the graphical user interface to comsol on the login node and op
172
174
$ comsol
173
175
174
176
Add a "Cluster Sweep" node to your study and a "Cluster Computing" node into your "Job Configurations" (You may need to first enable them in the "Show more options". Check the various options. You can try solving a small test case from the graphical user interface. You should see COMSOL submitting jobs to the SLURM queue. You can download an :download:`example file <ringing_plate_cluster_sweep.mph>`.
175
-
176
177
177
-
For a larger run, COMSOL can then submit the jobs with comsol but without the GUI::
178
+
179
+
For a larger run, COMSOL can then submit the jobs with comsol but without the GUI:
See also how to `run a parametric sweep from command line? <https://www.comsol.com/support/knowledgebase/1250>`_
184
186
185
-
187
+
186
188
Since the sweep may take some time to finnish, please consider using `tmux <https://github.com/tmux/tmux/wiki/Getting-Started>`_ or `screen <https://www.gnu.org/software/screen/manual/screen.html#Getting-Started>`_ to keep your session open.
187
189
188
190
@@ -196,13 +198,13 @@ It is possible to control COMSOL with MATLAB. The `blog post <https://knifelees3
196
198
Save a username and password for COMSOL mph server
0 commit comments