Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with tf.Session() as sess:
- devices = sess.list_devices()
- print(devices)
- devices = sess.list_devices()
- print(devices)
- [_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)]
- from tensorflow.python.client import device_lib
- print(device_lib.list_local_devices())
- [name: "/device:CPU:0"
- device_type: "CPU"
- memory_limit: 268435456
- locality {
- }
- incarnation: 6138445927055843096
- , name: "/device:XLA_CPU:0"
- device_type: "XLA_CPU"
- memory_limit: 17179869184
- locality {
- }
- incarnation: 13364430858887117842
- physical_device_desc: "device: XLA_CPU device"
- ]
- nvcc -V
- nvcc: NVIDIA (R) Cuda compiler driver
- Copyright (c) 2005-2018 NVIDIA Corporation
- Built on Sat_Aug_25_21:08:01_CDT_2018
- Cuda compilation tools, release 10.0, V10.0.130
- nvidia-smi
- Thu Feb 21 11:53:14 2019
- +-----------------------------------------------------------------------------+
- | NVIDIA-SMI 410.48 Driver Version: 410.48 |
- |-------------------------------+----------------------+----------------------+
- | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
- | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
- |===============================+======================+======================|
- | 0 Quadro M5000 Off | 00000000:02:00.0 On | Off |
- | 38% 33C P8 13W / 150W | 416MiB / 8126MiB | 1% Default |
- +-------------------------------+----------------------+----------------------+
- +-----------------------------------------------------------------------------+
- | Processes: GPU Memory |
- | GPU PID Type Process name Usage |
- |=============================================================================|
- | 0 1049 G /usr/lib/xorg/Xorg 255MiB |
- | 0 1941 G compiz 157MiB |
- +-----------------------------------------------------------------------------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement