Note
Prior to running VSim with Windows HPC Cluster tools, please ensure that VSim is properly installed on your Windows Cluster. (See VSim Installation Guide)
The following is an example of how to run an example VSim simulation on a Windows Cluster. In this example, the UNC Share Path that is set up on all nodes in the Cluster including the headnode is:
\\hpcheadnode\scratch
This path should be replaced by the path to your shared drive,
whatever it might be. Paths in UNC (Universal Naming Convention)
should be used, so \\machine_name\name_of_share\directory
instead of
S:\directory
.
To start, we create a new simulation in a directory on the shared drive. To do this, run VSimComposer on the headnode, which should be installed on the shared drive as Fig. 83 shows.
In VSimComposer, follow these actions:
Continue with:
Now:
You should now have a simulation directory in your share drive and be able to see it in Windows Explorer. See Fig. 86
Jobs can be started from the command line and from the Cluster Manager tool. We will show how to create and submit a job from the Cluster Manager interface and leave it to the user to follow the Microsoft documentation on how to save the Job XML and run subsequent jobs from the command line.
Start the Cluster Manager tool usually located in
C:Program FilesMicrosoft HPC Pack 2012BinHpcClusterManager.exe
This should present with a window as shown in Fig. 87
In the Cluster Manager, complete the following steps:
Continue with:
Edit the task details by:
The job Task Details dialog is shown in Fig. 90
Once the job task details are set, we need to do one last set of steps:
In the Environment Variables dialog (Fig. 92),
click the Add button. This will bring up the Add Environment Variable dialog (see Fig. 93).
In this dialog, enter PYTHONPATH for the Name and the following for Value: \\hpcheadnode\scratch\VSim\Contents\engine\share\scripts;\\hpcheadnode\scratch\VSim\Contents\engine\lib\site-packages;\\hpcheadnode\scratch\VSim\Contents\engine\lib;\\hpcheadnode\scratch\VSim\Contents\bin\lib\site-packages;\\hpcheadnode\scratch\VSim\Contents\bin\lib\python\lib;\\hpcheadnode\scratch\VSim\Contents\bin\lib\python\DLLs;\\hpcheadnode\scratch\VSim\Contents\bin;.
You will want to replace the value of the UNC Share Path
(\\hpcheadnode\scratch
) with your own UNC Share Path in
the PYTHONPATH line. The PYTHONPATH variable is required
for all vorpal simulations to run, but other variables
such as SIM_DATA_PATH may be needed for a few select simulations.