-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added visualization under Sophia
- Loading branch information
Showing
11 changed files
with
285 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
# ParaView on Sophia | ||
|
||
The recommended way of running ParaView on Sophia is in client/server mode. This consists of running the ParaView client on your local resource, and the ParaView server on the Sophia compute nodes. The ParaView client needs to first be installed on your local resource, and needs to match the version that you run on Sophia. | ||
|
||
There may be multiple versions of ParaView installed on Sophia. To find the versions of ParaView currently available on Sophia run the following command on a login node: | ||
``` | ||
module use /soft/modulefiles | ||
module avail paraview | ||
``` | ||
|
||
Binary and source packages of the ParaView client for Linux, MacOS, and Windows are available from the [ParaView Download Page](https://www.paraview.org/download/). | ||
|
||
## Connecting to the ParaView server on Sophia | ||
This section describes how to launch the ParaView server on Sophia from a local ParaView client. | ||
|
||
### Start ParaView Client | ||
First, launch the ParaView client on your local resource. You will need to configure some server settings in the client. This initial set up should only need to be done once, and can be reused each time you want to run ParaView on Sophia. | ||
|
||
### Server Configuration | ||
|
||
#### 1. Select Connect | ||
From the ParaView client choose to connect to a server by either clicking on the "Connect" icon in the menu bar | ||
|
||
![Connect icon](images/connect-icon.png) | ||
|
||
or selecting File->Connect from the main menu | ||
|
||
<figure markdown> | ||
![Select connect](images/ParaviewConnectMenu.png){ width="700" } | ||
</figure> | ||
|
||
#### 2. Set Up Servers (first time only) | ||
The first time you want to run a server on Sophia and have it connect to your local ParaView client, you will need to set up a Server. Once this server is set up, you can reuse it each time you run the ParaView client with the ParaView server on Sophia. | ||
|
||
Kitware, the developers of ParaView, maintain a database of server configurations which you can retrieve through the ParaView client. | ||
|
||
!!! note "NOTE" | ||
At this time there are no specific files for Sophia available from Kitware. We will update this page when the files are available. In the meantime, you can download configuration files here and import them with the `Load Servers` option. Please use the `Save link as` option in your browser. [Mac](serverfiles/sophia.pvsc) [Windows](serverfiles/windowsToSophia.pvsc) | ||
|
||
|
||
<!-- | ||
<figure markdown> | ||
![Load servers](images/ParaviewFetchServers.png){ width="700" } | ||
</figure> | ||
--> | ||
|
||
|
||
|
||
|
||
#### 3. Use ParaView | ||
|
||
After the previous step, you can now select SOPHIA@ANL in the File->Connect menu and press Connect | ||
|
||
<figure markdown> | ||
![Load servers](images/ParaviewChooseServerConfig.png){ width="700" } | ||
</figure> | ||
|
||
At this point a new window will pop up | ||
|
||
<figure markdown> | ||
![Load servers](images/ParaviewConnectionOptions.png){ width="700" } | ||
</figure> | ||
|
||
There are a number of parameters that you must enter manually here: | ||
|
||
**Xterm executable:** the path of a terminal on your system. The figure shows the case of a Mac with XQuartz. You may need to change these values for Windows or Linux. | ||
|
||
**SSH executable:** the name of your ssh command. It may be different on Windows depending on the ssh client installed (i.e putty) | ||
|
||
**Remote machine:** leave this value at polaris.alcf.anl.gov | ||
|
||
**Username:** your ALCF user name | ||
|
||
**ParaView version:** the version of Paraview that you want to use. Verify first that this version is installed on the system (as described at the top of this document). You will also need to add a `-EGL` suffix. | ||
|
||
Example: | ||
``` | ||
5.13.1-EGL | ||
``` | ||
|
||
**Client port:** it is safe to use the default value | ||
|
||
**Server port:** is is safe to use the default value | ||
|
||
**Number of nodes to reserve:** enter the number of Sophia compute nodes you want to use for your job | ||
|
||
**Number of ranks per node:** enter the number of ranks per node | ||
|
||
**Number of minutes to reserve:** the duration of your job in minutes | ||
|
||
**Account:** enter here the name of your ALCF allocation | ||
|
||
**Queue:** the name of the Sophia queue you would like to use (i.e: `by-gpu` or `by-node`. We recommend `by-gpu` for most jobs so that the nodes are used efficiently) | ||
|
||
**File Systems:** enter here the file systems you need for your job, separated with colons, no spaces. Keep in mind that your job may not run if one of these file systems is not available at that time, so enter these values carefully | ||
|
||
**Job name:** safe to use default value. The PBS scheduler will assign this name to your job | ||
|
||
Now you can press OK to establish the connection with a ParaView server on Sophia. | ||
|
||
An ssh connection will be established with a Sophia login node and a password will be requested in a terminal, similar to the process you normally use to connect and work on the system. | ||
|
||
After you enter your password, a job will be queued and you will see a window like this: | ||
|
||
<figure markdown> | ||
![Load servers](images/ParaviewWaitForServer.png){ width="700" } | ||
</figure> | ||
|
||
When the job is launched on the compute nodes, the previous window will go away and ParaView will show it is connected to Sophia in its Pipeline Browser: | ||
|
||
<figure markdown> | ||
![Load servers](images/ParaviewConnected.png){ width="700" } | ||
</figure> | ||
|
||
At this point you can open datasets stored on the ALCF file systems and use ParaView normally. | ||
|
||
## Additional Information | ||
- [ParaView Documentation](https://docs.paraview.org/en/latest/) | ||
- [ParaView Community Support](https://discourse.paraview.org/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<Servers> | ||
<Server name="SOPHIA@ANL" resource="csrc://localhost:11111" timeout="-1"> | ||
<CommandStartup> | ||
<Options> | ||
<Option name="XTERM_EXE" label="Xterm executable" save="true"> | ||
<File default="/usr/X11/bin/xterm"/> | ||
</Option> | ||
<Option name="SSH_EXE" label="SSH executable" save="true"> | ||
<File default="ssh"/> | ||
</Option> | ||
<Option name="MACHINE" label="Remote machine" save="true"> | ||
<String default="sophia.alcf.anl.gov"/> | ||
</Option> | ||
<Option name="USER" label="Username" save="true"> | ||
<String default="YOURUSERNAME"/> | ||
</Option> | ||
<Option name="VERSION" label="ParaView version" save="true"> | ||
<String default="5.13.1-EGL"/> | ||
</Option> | ||
<Option name="CLIENT_PORT" label="Client port"> | ||
<Range type="int" min="1025" max="65535" step="1" default="11111"/> | ||
</Option> | ||
<Option name="SERVER_PORT" label="Server port"> | ||
<Range type="int" min="1025" max="65535" step="1" default="random"/> | ||
</Option> | ||
<Option name="NUMNODES" label="Number of nodes to reserve" save="true"> | ||
<Range type="int" min="1" max="24" step="1" default="1"/> | ||
</Option> | ||
<Option name="RANKSPERNODE" label="Number of ranks per node" save="true"> | ||
<Range type="int" min="1" max="8" step="1" default="1"/> | ||
</Option> | ||
<Option name="NUMMINUTES" label="Number of minutes to reserve" save="true"> | ||
<Range type="int" min="5" max="1000" step="5" default="20"/> | ||
</Option> | ||
<Option name="ACCOUNT" label="Account" save="true"> | ||
<String default="YOURPROJECT"/> | ||
</Option> | ||
<Option name="QUEUE" label="Queue" save="true"> | ||
<String default="by-gpu"/> | ||
</Option> | ||
<Option name="FILE_SYSTEMS" label="File Systems" save="true"> | ||
<String default="home:eagle:grand"/> | ||
</Option> | ||
<Option name="JOBNAME" label="Job name" save="true"> | ||
<String default="paraview_server"/> | ||
</Option> | ||
</Options> | ||
<Command exec="$XTERM_EXE$" timeout="0" delay="0" Arguments="0" process_wait="0"> | ||
<Arguments> | ||
<Argument value="-T"/> | ||
<Argument value=""ParaView"/> | ||
<Argument value="$REMOTE_USER$@sophia""/> | ||
<Argument value="-e"/> | ||
<Argument value="$SSH_EXE$"/> | ||
<Argument value="-R"/> | ||
<Argument value="$SERVER_PORT$:localhost:$CLIENT_PORT$"/> | ||
<Argument value="$USER$@$MACHINE$"/> | ||
<Argument value="/soft/visualization/paraview/connect/launch.sh"/> | ||
<Argument value="$NUMNODES$"/> | ||
<Argument value="$RANKSPERNODE$"/> | ||
<Argument value="$NUMMINUTES$"/> | ||
<Argument value="$ACCOUNT$"/> | ||
<Argument value="$QUEUE$"/> | ||
<Argument value="$JOBNAME$"/> | ||
<Argument value="$SERVER_PORT$"/> | ||
<Argument value="$FILE_SYSTEMS$"/> | ||
<Argument value="pvserver"/> | ||
<Argument value="$VERSION$"/> | ||
</Arguments> | ||
</Command> | ||
</CommandStartup> | ||
</Server> | ||
</Servers> |
76 changes: 76 additions & 0 deletions
76
docs/sophia/visualization/serverfiles/windowsToSophia.pvsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<Servers> | ||
<Server name="builtin" configuration="" resource="builtin:"> | ||
<ManualStartup/> | ||
</Server> | ||
<Server name="windows to SOPHIA@ANL" resource="csrc://localhost"> | ||
<CommandStartup> | ||
<Options> | ||
<Option name="SSH_EXE" label="SSH executable" save="true"> | ||
<File default=""C:\Program Files\PuTTY\plink.exe""/> | ||
</Option> | ||
<Option name="MACHINE" label="Remote machine" save="true"> | ||
<String default="sophia.alcf.anl.gov"/> | ||
</Option> | ||
<Option name="USER" label="Username" save="true"> | ||
<String default="YOURUSERNAME"/> | ||
</Option> | ||
<Option name="VERSION" label="ParaView version" save="true"> | ||
<String default="5.13-1-EGL"/> | ||
</Option> | ||
<Option name="CLIENT_PORT" label="Client port"> | ||
<Range type="int" min="1025" max="65535" step="1" default="11111"/> | ||
</Option> | ||
<Option name="SERVER_PORT" label="Server port"> | ||
<Range type="int" min="1025" max="65535" step="1" default="random"/> | ||
</Option> | ||
<Option name="NUMNODES" label="Number of nodes to reserve" save="true"> | ||
<Range type="int" min="1" max="1024" step="1" default="1"/> | ||
</Option> | ||
<Option name="RANKSPERNODE" label="Number of ranks per node" save="true"> | ||
<Range type="int" min="1" max="8" step="1" default="1"/> | ||
</Option> | ||
<Option name="NUMMINUTES" label="Number of minutes to reserve" save="true"> | ||
<Range type="int" min="5" max="1000" step="5" default="20"/> | ||
</Option> | ||
<Option name="ACCOUNT" label="Account" save="true"> | ||
<String default="YOURPROJECT"/> | ||
</Option> | ||
<Option name="QUEUE" label="Queue" save="true"> | ||
<String default="debug"/> | ||
</Option> | ||
<Option name="FILE_SYSTEMS" label="File Systems" save="true"> | ||
<String default="home:eagle:grand"/> | ||
</Option> | ||
<Option name="JOBNAME" label="Job name" save="true"> | ||
<String default="paraview_server"/> | ||
</Option> | ||
</Options> | ||
<Command exec="cmd.exe" delay="10"> | ||
<Arguments> | ||
<Argument value="/C"/> | ||
<Argument value="start"/> | ||
<Argument value="cmd.exe"/> | ||
<Argument value="/C"/> | ||
<Argument value="$SSH_EXE$"/> | ||
<Argument value="-ssh"/> | ||
<Argument value="$MACHINE$"/> | ||
<Argument value="-R"/> | ||
<Argument value="$SERVER_PORT$:127.0.0.1:$CLIENT_PORT$"/> | ||
<Argument value="-l"/> | ||
<Argument value="$USER$"/> | ||
<Argument value="/soft/visualization/paraview/connect/launch.sh"/> | ||
<Argument value="$NUMNODES$"/> | ||
<Argument value="$RANKSPERNODE$"/> | ||
<Argument value="$NUMMINUTES$"/> | ||
<Argument value="$ACCOUNT$"/> | ||
<Argument value="$QUEUE$"/> | ||
<Argument value="$JOBNAME$"/> | ||
<Argument value="$SERVER_PORT$"/> | ||
<Argument value="$FILE_SYSTEMS$"/> | ||
<Argument value="pvserver"/> | ||
<Argument value="$VERSION$"/> | ||
</Arguments> | ||
</Command> | ||
</CommandStartup> | ||
</Server> | ||
</Servers> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Visualization on Sophia | ||
|
||
With its powerful NVIDIA GPUs, Sophia offers an excellent environment for visualization. | ||
|
||
Below is a list of available visualization tools with links to their respective documentation. | ||
|
||
[**ParaView**](paraview.md): ParaView is an open-source visualization engine that seamlessly integrates with your existing tools and workflows. It allows you to construct visualization pipelines for quick data analysis. Whether interactively exploring large datasets in 3D or performing batch processing programmatically, ParaView provides versatile capabilities. For additional information, visit the [Kitware website](https://www.paraview.org). | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters