techstaff:slurm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
techstaff:slurm [2018/05/04 12:32] – kauffman | techstaff:slurm [2018/05/04 12:41] – kauffman | ||
---|---|---|---|
Line 268: | Line 268: | ||
Example when using tensorflow: | Example when using tensorflow: | ||
- | Give the file ' | + | Given the file '' |
- | Depends on: | + | < |
- | | + | # |
- | '' | + | from tensorflow.python.client import device_lib |
- | < | + | print(device_lib.list_local_devices()) |
- | # | + | </ |
- | from tensorflow.python.client import device_lib | + | |
- | print(device_lib.list_local_devices()) | + | |
- | </ | + | |
Here we can see that no GPU was allocated to us because we did not specify the '' | Here we can see that no GPU was allocated to us because we did not specify the '' | ||
< | < | ||
- | kauffman3@bulldozer: | + | user@bulldozer: |
- | | + | user@gpu3:~$ ./f 2>&1 | grep physical_device_desc |
- | | + | user@gpu3:~$ |
</ | </ | ||
If we request only 1 GPU. | If we request only 1 GPU. | ||
< | < | ||
- | kauffman3@bulldozer: | + | user@bulldozer: |
- | | + | user@gpu3:~$ ./f 2>&1 | grep physical_device_desc |
- | physical_device_desc: | + | physical_device_desc: |
</ | </ | ||
If we request 2 GPUs. | If we request 2 GPUs. | ||
< | < | ||
- | kauffman3@bulldozer: | + | user@bulldozer: |
- | kauffman3@gpu3:~$ ./f 2>&1 | grep physical_device_desc | + | user@gpu3:~$ ./f 2>&1 | grep physical_device_desc |
- | physical_device_desc: | + | physical_device_desc: |
- | physical_device_desc: | + | physical_device_desc: |
</ | </ | ||
If we request more GPUs then are available. | If we request more GPUs then are available. | ||
< | < | ||
- | | + | kauffman3@bulldozer: |
- | srun: error: Unable to allocate resources: Requested node configuration is not available | + | srun: error: Unable to allocate resources: Requested node configuration is not available |
</ | </ | ||
/var/lib/dokuwiki/data/pages/techstaff/slurm.txt · Last modified: 2021/01/06 16:13 by kauffman