|
|
### Running a simple command interactively
|
|
|
|
|
|
```
|
|
|
$ srun -t 0:2:0 -p x40 hostname
|
|
|
x020.cluster
|
|
|
$
|
|
|
```
|
|
|
The [srun](https://slurm.schedmd.com/srun.html) command options are similar to the ones of [sbatch](https://slurm.schedmd.com/sbatch.html).
|
|
|
|
|
|
### Running a heavy duty command interactively
|
|
|
|
|
|
You can make sure you get the whole node:
|
|
|
```
|
|
|
$ srun --exclusive -p fdr -t 0:10:0 make -j
|
|
|
/scratch/alainm/view/fargOCA/rel/src/version.cpp exists and is up to date.
|
|
|
[ 0%] Built target genversion
|
|
|
[ 1%] Building CXX object test/env/CMakeFiles/testBoostMPI.dir/testBoostMPI.cpp.o
|
|
|
....
|
|
|
[100%] Built target test_minimal_2Diso__dependencies
|
|
|
[100%] Built target test_boundaries_condition_dep
|
|
|
$
|
|
|
```
|
|
|
|
|
|
### Running a bash session
|
|
|
|
|
|
To start a bash session on a node:
|
|
|
```
|
|
|
[alainm@castor rel]$ srun --exclusive -p fdr -t 0:50:0 --pty bash
|
|
|
Currently Loaded Modulefiles:
|
|
|
1) userspace/OCA 4) intel/python3/2019.4 7) mpi/2019.4 10) cmake/3.9.4 13) cubegui/4.4.4
|
|
|
2) gnurt/8.3 5) intel/mkl/2019.4 8) intel2019/boost/1.70.0-abi11 11) scorep/6.0 14) scalasca/2.5
|
|
|
3) intel/compilers/2019.4 6) intel/tbb/2019.4 9) intel2019/hdf5/1.10.5-abi11 12) cubelib/4.4.4
|
|
|
[alainm@p102 rel]$ pwd
|
|
|
/beegfs/home/alainm
|
|
|
[alainm@p102 ~]$ xeyes
|
|
|
Error: Can't open display: localhost:13.0
|
|
|
[alainm@p102 ~]$
|
|
|
|
|
|
```
|
|
|
With |