User Tools

Site Tools


gpu_resources

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

Link to this comparison view

Both sides previous revision Previous revision
gpu_resources [2017/06/08 17:36]
adoyle [Preventing Job Clobbering]
gpu_resources [2017/06/08 17:48] (current)
adoyle [Preventing Job Clobbering]
Line 34: Line 34:
 </​code>​ </​code>​
  
 +This will only take effect when you log in, so log out and back in and try the following to ensure that it worked:
 +
 +<​code>​
 +echo $CUDA_VISIBLE_DEVICES
 +</​code>​
 +
 +If it outputs the ID that you selected then you're ready to use the GPU.
 +
 +==== Sharing a single GPU ====
 To configure TensorFlow to not pre-allocate all GPU memory you can use the following Python code: To configure TensorFlow to not pre-allocate all GPU memory you can use the following Python code:
  
Line 44: Line 53:
 </​code>​ </​code>​
  
 +This has been found to work only to a certain extent, and when there are several jobs that use a significant amount of the GPU resources, jobs can still be ruined even when using the above code
 ===== GPU Info ===== ===== GPU Info =====
  
gpu_resources.1496943361.txt.gz ยท Last modified: 2017/06/08 17:36 by adoyle