Interactive session provides interactive shell on a computing unit (compute, memory, and GPU nodes). It is benefit for debugging, quick tests, or working with interactive tools that need a terminal. It also enables the X11, therefore it is able to do a small visualization to quickly check graphical results.
Initiate interactive session
To start interactive session, use sinteract
command and then choose the account that you want to use.
sinteract
is only available on lanta.nstda.or.th; It is NOT available on transfer.lanta.nstda.or.th
For example,
hpcuser@x3002c0s7b0n0:~> sinteract No account specified. Please select account to charge from: [1] lt200190 [2] lt200191 [3] lt200192 [q] Quit Please type a selection: 2 Running interactive job using lt200191 account srun: job 917751 queued and waiting for resources srun: job 917751 has been allocated resources
By default, sinteract
will allocate a 1 CPU core on compute-devel partition for 30 minutes.
Enabling X11 forwarding
To enable X11 forwarding in the interactive session, specify -X
option.
For example,
sinteract -X
Please note that, to run an application with GUI, the following requirements also have to be satisfied.
The ssh session have to allow X11 forwarding.
There is a X11 server running on your local machine.
Specifying partition and resource
Specify the following option to specify resources you require.
Option | Description |
---|---|
| specify partition for job allocation. |
| specify number of required GPUs. Must be specified if GPU(s) are required |
| specify number of required CPUs. |
| specify maximum wall-time for running the interactive session (HH:MM:SS). |
For example,
a. requesting for a compute node with 4 CPU cores for 30 minutes. X11 is also enable.
sinteract -c 4 -X
b. requesting for a compute node with 32 CPU cores for 3 hours.
sinteract -p compute -c 32 -t 3:00:00
c. requesting for a GPU for an hour.
sinteract -p gpu -c 16 -G 1 -t 01:00:00
d. requesting for 4 GPUs for 4 hours.
sinteract -p gpu -c 64 -G 4 -t 04:00:00