daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest Feb 21st, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. with tf.Session() as sess:
  2.   devices = sess.list_devices()
  3. print(devices)
  4.      
  5. devices = sess.list_devices()
  6.  
  7. print(devices)
  8.      
  9. [_DeviceAttributes(/job:localhost/replica:0/task:0/device:CPU:0, CPU, 268435456, 16480266202409258977), _DeviceAttributes(/job:localhost/replica:0/task:0/device:XLA_CPU:0, XLA_CPU, 17179869184, 765063795558819558)]
  10.      
  11. from tensorflow.python.client import device_lib
  12.  print(device_lib.list_local_devices())
  13.      
  14. [name: "/device:CPU:0"
  15. device_type: "CPU"
  16. memory_limit: 268435456
  17. locality {
  18. }
  19. incarnation: 6138445927055843096
  20. , name: "/device:XLA_CPU:0"
  21. device_type: "XLA_CPU"
  22. memory_limit: 17179869184
  23. locality {
  24. }
  25. incarnation: 13364430858887117842
  26. physical_device_desc: "device: XLA_CPU device"
  27. ]
  28.      
  29. nvcc -V
  30.      
  31. nvcc: NVIDIA (R) Cuda compiler driver
  32. Copyright (c) 2005-2018 NVIDIA Corporation
  33. Built on Sat_Aug_25_21:08:01_CDT_2018
  34. Cuda compilation tools, release 10.0, V10.0.130
  35.      
  36. nvidia-smi
  37.      
  38. Thu Feb 21 11:53:14 2019      
  39. +-----------------------------------------------------------------------------+
  40. | NVIDIA-SMI 410.48                 Driver Version: 410.48                    |
  41. |-------------------------------+----------------------+----------------------+
  42. | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
  43. | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
  44. |===============================+======================+======================|
  45. |   0  Quadro M5000        Off  | 00000000:02:00.0  On |                  Off |
  46. | 38%   33C    P8    13W / 150W |    416MiB /  8126MiB |      1%      Default |
  47. +-------------------------------+----------------------+----------------------+
  48.  
  49. +-----------------------------------------------------------------------------+
  50. | Processes:                                                       GPU Memory |
  51. |  GPU       PID   Type   Process name                             Usage      |
  52. |=============================================================================|
  53. |    0      1049      G   /usr/lib/xorg/Xorg                           255MiB |
  54. |    0      1941      G   compiz                                       157MiB |
  55. +-----------------------------------------------------------------------------+
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top