You can configure Vivado to run on SLURM using ssh to connect the client to
the scheduler.
Figure 1. SLURM Compute Nodes
In this example, the client machine name is xcolc200189, the scheduler machine name is xcolc200185.
- Set up SSH keys on client and scheduler to enable ssh without password.
- Start Vivado on the client machine.
- Create a custom SLURM cluster.
- Open the Vivado Settings dialog box ( ).
- Select .
- Click the "+" button in the toolbar to create a new cluster configuration.
- Fill in the form as follows. Important to leave the Type as CUSTOM.
Example Tcl script to get a Job ID:
proc user_defined_JID {str} { if { [regexp {(\d+)} $str matchresult] } { return $matchresult } else { return "" } }
- Launch a job on the cluster to test the configuration.
- Select .
- Click Next. Select BFT and click Next.
- Select a name and directory and click Next.
- Select the default part (xc7k70tfbg484-2) and click Next.
- Click Finish. In the
Design Runs
window, select synth_1 row and
click the green play toolbar button.
- In the Launch
Runs dialog box, choose Launch runs on cluster and in the combo
box, select the custom cluster name created above.
- Click OK to launch the job.
- In
a terminal, ssh into the scheduler machine and check to see the job
running using the
squeue
command on the scheduler machine.
- See the job complete successfully in the Vivado session running on the client.