User Tools

Site Tools


techstaff:slurm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
techstaff:slurm [2018/05/04 12:32] kauffmantechstaff:slurm [2018/05/04 12:40] kauffman
Line 269: Line 269:
  
 Give the file 'f':    Give the file 'f':   
-  Depends on: +<code> 
-    ''%%pip3 install --user tensorflow-gpu%%'' +#!/usr/bin/env python3 
-    ''%%export PATH=$HOME/.local/bin:$PATH%%'' +from tensorflow.python.client import device_lib 
-  <code> +print(device_lib.list_local_devices()) 
-    #!/usr/bin/env python3 +</code>
-    from tensorflow.python.client import device_lib +
-    print(device_lib.list_local_devices()) +
-  </code>+
  
 Here we can see that no GPU was allocated to us because we did not specify the ''%%--gres%%'' option Here we can see that no GPU was allocated to us because we did not specify the ''%%--gres%%'' option
 <code> <code>
-  kauffman3@bulldozer:~$ srun -p titan --pty /bin/bash +user@bulldozer:~$ srun -p titan --pty /bin/bash 
-  kauffman3@gpu3:~$ ./f 2>&1 | grep physical_device_desc +user@gpu3:~$ ./f 2>&1 | grep physical_device_desc 
-  kauffman3@gpu3:~$+user@gpu3:~$
 </code> </code>
  
 If we request only 1 GPU. If we request only 1 GPU.
 <code> <code>
-  kauffman3@bulldozer:~$ srun -p titan --pty --gres=gpu:1 /bin/bash +user@bulldozer:~$ srun -p titan --pty --gres=gpu:1 /bin/bash 
-  kauffman3@gpu3:~$ ./f 2>&1 | grep physical_device_desc +user@gpu3:~$ ./f 2>&1 | grep physical_device_desc 
-  physical_device_desc: "device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:19:00.0, compute capability: 6.1"+physical_device_desc: "device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:19:00.0, compute capability: 6.1"
 </code> </code>
  
 If we request 2 GPUs. If we request 2 GPUs.
 <code> <code>
-kauffman3@bulldozer:~$ srun -p titan --pty --gres=gpu:2 /bin/bash +user@bulldozer:~$ srun -p titan --pty --gres=gpu:2 /bin/bash 
-kauffman3@gpu3:~$ ./f 2>&1 | grep physical_device_desc +user@gpu3:~$ ./f 2>&1 | grep physical_device_desc 
-  physical_device_desc: "device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:19:00.0, compute capability: 6.1" +physical_device_desc: "device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:19:00.0, compute capability: 6.1" 
-  physical_device_desc: "device: 1, name: GeForce GTX 1080 Ti, pci bus id: 0000:1a:00.0, compute capability: 6.1"+physical_device_desc: "device: 1, name: GeForce GTX 1080 Ti, pci bus id: 0000:1a:00.0, compute capability: 6.1"
 </code> </code>
  
 If we request more GPUs then are available. If we request more GPUs then are available.
 <code> <code>
-  kauffman3@bulldozer:~$ srun -p titan --pty --gres=gpu:5 /bin/bash +kauffman3@bulldozer:~$ srun -p titan --pty --gres=gpu:5 /bin/bash 
-  srun: error: Unable to allocate resources: Requested node configuration is not available+srun: error: Unable to allocate resources: Requested node configuration is not available
 </code> </code>
  
/var/lib/dokuwiki/data/pages/techstaff/slurm.txt · Last modified: 2021/01/06 16:13 by kauffman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki