Skip to content

Instantly share code, notes, and snippets.

@vivek-bala
Created January 11, 2019 15:40
Show Gist options
  • Save vivek-bala/3d82af9028adb23015ee5b96fe18c3c5 to your computer and use it in GitHub Desktop.
Save vivek-bala/3d82af9028adb23015ee5b96fe18c3c5 to your computer and use it in GitHub Desktop.
# Single process, single thread
```
$ cat resource-file-1
RS 0: { host: 1, cpu: 0}
$ export OMP_NUM_THREADS=1
$ jsrun -n 1 -a 1 -U /ccs/home/vivekb/resource-file-1 /ccs/proj/csc190/Hello_jsrun/jsrun_layout
########################################################################
*** MPI Ranks: 1, OpenMP Threads: 1, GPUs per Resource Set: 0 ***
========================================================================
MPI Rank 000 of 001 on HWThread 000 of Node summitdev-r0c0n14, OMP_threadID 0 of 1
$ cat resource-file-1
RS 0: { host: 1, cpu: 1}
$ jsrun -n 1 -a 1 -U /ccs/home/vivekb/resource-file-1 /ccs/proj/csc190/Hello_jsrun/jsrun_layout
########################################################################
*** MPI Ranks: 1, OpenMP Threads: 1, GPUs per Resource Set: 0 ***
========================================================================
MPI Rank 000 of 001 on HWThread 008 of Node summitdev-r0c0n14, OMP_threadID 0 of 1
```
# Single process, two threads
```
$ cat resource-file-1
RS 0: { host: 1, cpu: 0-2}
bash-4.2$ export OMP_NUM_THREADS=2
bash-4.2$ jsrun -n 1 -a 1 -U /ccs/home/vivekb/resource-file-1 /ccs/proj/csc190/Hello_jsrun/jsrun_layout
The JSM daemon has exited (server_loop failed)
READ:: Operation not supported
Failed to read status, RM_PMIx_spawn(): 0
ERROR: Other error.
$ cat resource-file-1
RS 0: { host: 1, cpu: 0}
$ export OMP_NUM_THREADS=1
$ jsrun -n 1 -a 1 -U /ccs/home/vivekb/resource-file-1 /ccs/proj/csc190/Hello_jsrun/jsrun_layout
Error: Connection request to JSM daemon timed out.
File : /tmp/jsm.summitdev-login1.13499/6128/JSM_rm_port_13499_6128
Errno : No such file or directory
Error initializing RM connection. Exiting.
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment