Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/paraview/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Introduction

ParaView is an open source post-processing visualization engine.

[Paraview Website](https://www.paraview.org/)

# Paraview - Server (pvserver)

## Pre-requisites
* Install in your workstation Paraview-Desktop, recommended the same version as the Server
```bash
https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.13&type=binary&os=Windows&downloadFile=ParaView-5.13.2-Windows-Python3.10-msvc2017-AMD64.msi
```
## Instructions

* From the **submit** node, run the `start_paraview.sh` script each time you need to launch paraview-server

```bash
./start_paraview.sh
```
* Read carefully the information displayed from the script, it contains important information to create the connection between the desktop application and pvserver

# Paraview - GUI
## Instructions
* From the **submit** node, start an interactive session, with X11 activated (Important)
```bash
salloc --x11 --mem=10Gb
```
* Run the script `paraview_GUI.sh`
14 changes: 14 additions & 0 deletions src/paraview/paraview_GUI.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/encs/bin/tcsh

echo "Loading modules"
module load GCC/12.3.0 -s
module load OpenMPI/4.1.5 -s
module load ParaView/5.13.2 -s

mkdir -p /speed-scratch/$USER/run-user
chmod 700 /speed-scratch/$USER/run-user
setenv XDG_RUNTIME_DIR /speed-scratch/$USER/run-user
setenv PSM3_DEVICES 'self,shm'
echo "Loading Paraview GUI ..."
srun --mpi=pmix paraview

32 changes: 32 additions & 0 deletions src/paraview/run_paraview.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/encs/bin/tcsh

module load GCC/12.3.0 -s
module load OpenMPI/4.1.5 -s
module load ParaView/5.13.2 -s
module load python/3.11.6/default -s

setenv PSM3_DEVICES 'self,shm'

# Get the current node and user information
set node = `hostname -s`
set user = `whoami`

# Get an available port for Jupyter
set port = `python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'`

# Print SSH tunneling instructions
echo "To connect to the compute node ${node} on speed.encs.concordia.ca running your Paraview server, \
use the following SSH command in a new terminal on your workstation/laptop: \
ssh -L ${port}:${node}:${port} ${user}@speed.encs.concordia.ca \
Open Paraview installed on your workstation as described in https://github.com/NAG-DevOps/speed-hpc/tree/master/src/paraview \
File - Connect - Add server and fill in the details:\
Name: HPC\
Server Type: Client/Server\
Startup Type: Manual\
Host: localhost\
Port: ${port}\
Save and connect\n\
Once finished working with Paraview, disconnect the session: File - Disconnect and close the application"

echo "Starting Paraview server. DO NOT CLOSE THIS WINDOWS"
mpirun pvserver -p ${port}
1 change: 1 addition & 0 deletions src/paraview/start_paraview.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
srun --mem=10G -c4 --mail-type=ALL $PWD/run_paraview.sh