38,760
edits
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 6: | Line 6: | ||
'''NOTE 1:''' An important setting in ParaView's preferences is ''Render View -> Remote/Parallel Rendering Options -> Remote Render Threshold.'' If you set it to default (20MB) or similar, small rendering will be done on your computer's GPU, the rotation with a mouse will be fast, but anything modestly intensive (under 20MB) will be shipped to your computer and (depending on your connection) visualization might be slow. If you set it to 0MB, all rendering will be remote including rotation, so you will really be using the cluster resources for everything, which is good for large data processing but not so good for interactivity. Experiment with the threshold to find a suitable value. | '''NOTE 1:''' An important setting in ParaView's preferences is ''Render View -> Remote/Parallel Rendering Options -> Remote Render Threshold.'' If you set it to default (20MB) or similar, small rendering will be done on your computer's GPU, the rotation with a mouse will be fast, but anything modestly intensive (under 20MB) will be shipped to your computer and (depending on your connection) visualization might be slow. If you set it to 0MB, all rendering will be remote including rotation, so you will really be using the cluster resources for everything, which is good for large data processing but not so good for interactivity. Experiment with the threshold to find a suitable value. | ||
'''NOTE 2:''' ParaView requires the same major version on the local client and the remote host; this prevents incompatibility that typically shows as a failed handshake when establishing the client-server connection. For example, to use ParaView server version 5. | '''NOTE 2:''' ParaView requires the same major version on the local client and the remote host; this prevents incompatibility that typically shows as a failed handshake when establishing the client-server connection. For example, to use ParaView server version 5.8.0 on the cluster, you need client version 5.8.x on your computer. | ||
Please use the tabs below to select the remote system. | Please use the tabs below to select the remote system. | ||
Line 23: | Line 23: | ||
1. First, install on your computer the same ParaView version as the one available on the cluster you will be using; log into Cedar or Graham and start a serial CPU interactive job. | 1. First, install on your computer the same ParaView version as the one available on the cluster you will be using; log into Cedar or Graham and start a serial CPU interactive job. | ||
{{Command|salloc --time{{=}}1:00:0 --ntasks{{=}}1 --account{{=}}def-someprof}} | {{Command|salloc --time{{=}}1:00:0 --ntasks{{=}}1 --mem-per-cpu{{=}}3600 --account{{=}}def-someprof}} | ||
:The job should automatically start on one of the CPU interactive nodes. | :The job should automatically start on one of the CPU interactive nodes. | ||
Line 29: | Line 29: | ||
2. At the prompt that is now running inside your job, load the offscreen ParaView module and start the server. | 2. At the prompt that is now running inside your job, load the offscreen ParaView module and start the server. | ||
{{Command|module load paraview-offscreen/5. | {{Command|module load StdEnv/2020 gcc/9.3.0 paraview-offscreen/5.8.0}} | ||
{{Command|pvserver | {{Command|pvserver --force-offscreen-rendering | ||
|result= | |result= | ||
Waiting for client... | Waiting for client... | ||
Line 37: | Line 37: | ||
}} | }} | ||
: | :Wait for the server to be ready to accept client connection. | ||
3. Make a note of the node (in this case cdr774) and the port (usually 11111) and in another terminal on your computer (on Mac/Linux; in Windows use a terminal emulator) link the port 11111 on your computer and the same port on the compute node (make sure to use the correct compute node). | 3. Make a note of the node (in this case cdr774) and the port (usually 11111) and in another terminal on your computer (on Mac/Linux; in Windows use a terminal emulator) link the port 11111 on your computer and the same port on the compute node (make sure to use the correct compute node). | ||
Line 52: | Line 52: | ||
If you want to do parallel rendering on multiple CPUs, start a parallel job; don't forget to specify the correct maximum walltime limit. | If you want to do parallel rendering on multiple CPUs, start a parallel job; don't forget to specify the correct maximum walltime limit. | ||
{{Command|salloc --time{{=}}0:30:0 --ntasks{{=}}8 --account{{=}}def-someprof}} | {{Command|salloc --time{{=}}0:30:0 --ntasks{{=}}8 --mem-per-cpu{{=}}3600 --account{{=}}def-someprof}} | ||
Start the ParaView server with <code>srun</code>. | Start the ParaView server with <code>srun</code>. | ||
{{Commands | {{Commands | ||
|module load paraview-offscreen/5. | |module load StdEnv/2020 gcc/9.3.0 paraview-offscreen/5.8.0 | ||
|srun pvserver | |srun pvserver --force-offscreen-rendering | ||
}} | }} | ||
To check that you are doing parallel rendering, you can pass your visualization through the Process Id Scalars filter and then colour it by "process id". | To check that you are doing parallel rendering, you can pass your visualization through the Process Id Scalars filter and then colour it by "process id". | ||
Line 71: | Line 69: | ||
1. First, install on your computer the same version as the one available on the cluster you will be using; log into Cedar or Graham and start a serial GPU interactive job. | 1. First, install on your computer the same version as the one available on the cluster you will be using; log into Cedar or Graham and start a serial GPU interactive job. | ||
{{Command|salloc --time{{=}}1:00:0 --ntasks{{=}}1 --gres{{=}}gpu:1 --account{{=}}def-someprof}} | {{Command|salloc --time{{=}}1:00:0 --ntasks{{=}}1 --mem-per-cpu{{=}}3600 --gres{{=}}gpu:1 --account{{=}}def-someprof}} | ||
:The job should automatically start on one of the GPU interactive nodes. | :The job should automatically start on one of the GPU interactive nodes. | ||
Line 77: | Line 75: | ||
{{Commands | {{Commands | ||
|module load paraview-offscreen-gpu/5. | |module load StdEnv/2020 gcc/9.3.0 paraview-offscreen-gpu/5.8.0 | ||
|unset DISPLAY | |unset DISPLAY | ||
}} | }} |