Skip to content

CUDA_TOO_MANY_PEERS exception when launching on p2.16xlarge on aws #5362

Closed

Description

@alexatknit

This issue is identical to the issue discussed here.

When launching tensorflow to train on more than 8 gpu instances, tensorflow will cause a CUDA_TOO_MANY_PEERS error in the driver. The Tesla K80 shows up as 2 gpu instances internally so even though the p2.16xlarge technically only has 8 gpus it looks to the driver like it has 16. It seems that the cuda p2p system limits any gpu to only connect to a maximum 8 other gpus via p2p, but when the graph is launched, tensorflow (quite understandably) attempts to create a p2p connection between every gpu in the graph.

Is there some way to disable p2p or is there a way via intelligent graph construction to limit the number of connections any given gpu requires, or even use a resource pool for gpu p2p connections?

ubuntu@host:~/workspace/nn$ nvidia-smi
Wed Nov  2 20:53:20 2016       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 361.93.02              Driver Version: 361.93.02                 |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla K80           Off  | 0000:00:0F.0     Off |                    0 |
| N/A   45C    P8    27W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  Tesla K80           Off  | 0000:00:10.0     Off |                    0 |
| N/A   39C    P8    30W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   2  Tesla K80           Off  | 0000:00:11.0     Off |                    0 |
| N/A   50C    P8    27W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   3  Tesla K80           Off  | 0000:00:12.0     Off |                    0 |
| N/A   43C    P8    31W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   4  Tesla K80           Off  | 0000:00:13.0     Off |                    0 |
| N/A   50C    P8    57W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   5  Tesla K80           Off  | 0000:00:14.0     Off |                    0 |
| N/A   41C    P8    70W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   6  Tesla K80           Off  | 0000:00:15.0     Off |                    0 |
| N/A   51C    P0    56W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   7  Tesla K80           Off  | 0000:00:16.0     Off |                    0 |
| N/A   43C    P0    71W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   8  Tesla K80           Off  | 0000:00:17.0     Off |                    0 |
| N/A   46C    P0    56W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   9  Tesla K80           Off  | 0000:00:18.0     Off |                    0 |
| N/A   39C    P0    71W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|  10  Tesla K80           Off  | 0000:00:19.0     Off |                    0 |
| N/A   49C    P0    58W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|  11  Tesla K80           Off  | 0000:00:1A.0     Off |                    0 |
| N/A   40C    P0    73W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|  12  Tesla K80           Off  | 0000:00:1B.0     Off |                    0 |
| N/A   49C    P0    58W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|  13  Tesla K80           Off  | 0000:00:1C.0     Off |                    0 |
| N/A   40C    P0    70W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|  14  Tesla K80           Off  | 0000:00:1D.0     Off |                    0 |
| N/A   49C    P0    60W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|  15  Tesla K80           Off  | 0000:00:1E.0     Off |                    0 |
| N/A   41C    P0    69W / 149W |      0MiB / 11441MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
ubuntu@host:~/workspace/nn$ python3 deploy_local.py 
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.8.0 locally
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:0f.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x3bb3f120
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 1 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:10.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x3bf86790
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 2 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:11.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x3c3cf0c0
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 3 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:12.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x4a7fe070
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 4 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:13.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x4ac4dd20
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 5 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:14.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x4b0a16a0
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 6 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:15.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x4b4f9220
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 7 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:16.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x4b9545d0
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 8 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:17.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x4bdb3920
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 9 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:18.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x4c216790
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 10 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:19.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x4c67d450
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 11 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:1a.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x4cae8580
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 12 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:1b.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x28999af0
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 13 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:1c.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x28e0bf00
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 14 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:1d.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x29282290
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 15 with properties: 
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:1e.0
Total memory: 11.17GiB
Free memory: 11.11GiB
E tensorflow/core/common_runtime/direct_session.cc:132] Internal: Internal: failed to enable peer access from 0x1c961680 to 0x18f1ac60: CUDA_ERROR_TOO_MANY_PEERS
Traceback (most recent call last):
  File "deploy_local.py", line 39, in <module>
    n_test_batches=4,
  File "/home/ubuntu/workspace/nn/nn/model/network.py", line 271, in train
    test_steps=test_steps, save_steps=save_steps, load_all=load_all, debug=debug, **kwargs)
  File "/home/ubuntu/workspace/nn/nn/train/train.py", line 86, in train_model
    with tf.Session(config=tf.ConfigProto(allow_soft_placement=True, gpu_options=gpu_options)) as sesh:
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/client/session.py", line 1138, in __init__
    super(Session, self).__init__(target, graph, config=config)
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/client/session.py", line 502, in __init__
    self._session = tf_session.TF_NewSession(opts, status)
  File "/usr/lib/python3.4/contextlib.py", line 66, in __exit__
    next(self.gen)
  File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/errors.py", line 463, in raise_exception_on_not_ok_status
    pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors.InternalError: Failed to create session.

Activity

  1. added
    type:build/install
    and removed on Nov 3, 2016
  2. aselle commented on Nov 3, 2016

    @aselle
    Contributor

    @zhengxq, it seems like the recommended way to go about this is to use distributed and give each process on the same host half of the available GPUs using CUDA_VISIBLE_DEVICES as discussed on the link article. Could you confirm?

  3. added
    stat:awaiting tensorflower
    on Nov 3, 2016
  4. alexatknit commented on Nov 3, 2016

    @alexatknit
    Author

    I can confirm that deploying as a cluster to half of the devices per worker does not reduce the number of p2p connections attempted when starting a session.

    creating ec2 cluster
    creating security group
    launching instances
    waiting for ip addresses to be assigned
    cluster config: {
      "ps_hosts": [
        "35.162.204.77"
      ],
      "worker_hosts": [
        "35.162.204.77",
        "35.162.204.77"
      ]
    }
    setting rules for security group.
    waiting for cluster instances to boot up.
    starting ps host at: 35.162.204.77
    starting worker host at: 35.162.204.77
    starting master worker host at: 35.162.204.77
    35.162.204.77: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.8.0 locally
    35.162.204.77: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5 locally
    35.162.204.77: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.8.0 locally
    35.162.204.77: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
    35.162.204.77: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.8.0 locally
    35.162.204.77: INFO: starting parameter server 0
    35.162.204.77: INFO: starting master worker.
    35.162.204.77: INFO: starting training worker 1
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:0f.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7bd5093eb0
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:0f.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:0f.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b7838bed0
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b6e672bb0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 1 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:10.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7bd54e5d30
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 1 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:10.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b6eaa38b0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 1 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:10.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b78778410
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 2 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:11.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7bd59365b0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 2 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:11.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b6eed7d10
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 2 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:11.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b78b66470
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 3 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:12.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7bd5d8add0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 3 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:12.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b6f310590
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 3 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:12.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b78f55830
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 4 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:13.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7bd61e3400
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 4 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:13.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b65446460
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 4 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:13.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b79346310
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 5 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:14.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7bd663fad0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 5 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:14.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b65837ee0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 5 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:14.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b79738150
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 6 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:15.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7bd6aa04e0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 6 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:15.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b65c2b780
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 6 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:15.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b79b2b630
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 7 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:16.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7bd6f04a60
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 7 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:16.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b6601f5b0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 7 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:16.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b79f1f670
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 8 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:17.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 11.04GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7bd736cfc0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 8 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:17.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b66414bf0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 8 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:17.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b7a314800
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 9 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:18.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 11.04GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7bd77d9480
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 9 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:18.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b6680b590
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 9 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:18.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b7a70acf0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 10 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:19.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 11.04GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7bd7c49a40
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 10 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:19.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b66c03120
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 10 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:19.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b7ab02880
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 11 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1a.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 11.04GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f79f80be5b0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 11 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1a.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b66ffced0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 11 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1a.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b7aefc630
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 12 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1b.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 11.04GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f79f85369e0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 12 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1b.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b673f71f0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 12 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1b.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b7b2f6950
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 13 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1c.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 11.04GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f79f89b2d40
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 13 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1c.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b677f23c0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 13 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1c.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b7b6f1b20
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 14 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1d.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f79f8e32fe0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 14 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1d.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.98GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b67bee8f0
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 14 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1d.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.98GiB
    35.162.204.77: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f7b7baee050
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 15 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1e.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.99GiB
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 15 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1e.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.98GiB
    35.162.204.77: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.162.204.77: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 15 with properties:
    35.162.204.77: name: Tesla K80
    35.162.204.77: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.162.204.77: pciBusID 0000:00:1e.0
    35.162.204.77: Total memory: 11.17GiB
    35.162.204.77: Free memory: 10.98GiB
    Traceback (most recent call last):
      File "/Users/alexatknit/Workspace/nn/deploy_local.py", line 42, in <module>
        n_test_batches=4,
      File "/Users/alexatknit/Workspace/nn/nn/model/network.py", line 293, in train_cluster
        n_test_batches=n_test_batches, test_steps=test_steps, save_steps=save_steps, load_all=load_all, **kwargs)
      File "/Users/alexatknit/Workspace/nn/nn/train/deploy.py", line 81, in deploy_to_cluster
        **kwargs).result()
      File "/usr/local/lib/python3.5/site-packages/KnitPyUtils-0.0.39-py3.5.egg/knitutils/util/executor.py", line 25, in result
        raise self._result
      File "/usr/local/lib/python3.5/site-packages/KnitPyUtils-0.0.39-py3.5.egg/knitutils/util/executor.py", line 119, in _worker
        result = func(*args, **kwargs)
      File "/usr/local/lib/python3.5/site-packages/KnitPyUtils-0.0.39-py3.5.egg/knitutils/parallel/cluster.py", line 83, in _submit
        return self.proxy.submit(fn, *args, **kwargs)
      File "/usr/local/lib/python3.5/site-packages/KnitPyUtils-0.0.39-py3.5.egg/knitutils/util/server.py", line 202, in method
    security group removed.
        raise convert_to_error(kind, result)
    multiprocessing.managers.RemoteError: 
    ---------------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/local/lib/python3.4/dist-packages/KnitPyUtils-0.0.39-py3.4.egg/knitutils/util/server.py", line 122, in handle
        result = ('#RETURN', func(*args, **kwargs))
      File "/usr/local/lib/python3.4/dist-packages/KnitPyUtils-0.0.39-py3.4.egg/knitutils/util/functions.py", line 48, in wrapper
        return fn(*args, **kwargs)
      File "/usr/local/lib/python3.4/dist-packages/KnitPyUtils-0.0.39-py3.4.egg/knitutils/parallel/cluster.py", line 39, in submit
        return self.future_pool.submit(fn, *args, **kwargs).result()
      File "/usr/local/lib/python3.4/dist-packages/KnitPyUtils-0.0.39-py3.4.egg/knitutils/parallel/future.py", line 75, in result
        raise convert_to_error(kind, result)
    multiprocessing.managers.RemoteError: 
    ---------------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/local/lib/python3.4/dist-packages/KnitPyUtils-0.0.39-py3.4.egg/knitutils/parallel/future.py", line 18, in _deploy_worker
        result = ("#RETURN", fn(*args, **kwargs))
      File "/usr/local/lib/python3.4/dist-packages/KnitNN-0.5.29-py3.4.egg/nn/train/train.py", line 398, in train_master
        server = tf.train.Server(cluster, job_name='worker', task_index=0)
      File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/training/server_lib.py", line 152, in __init__
        self._server_def.SerializeToString(), status)
      File "/usr/lib/python3.4/contextlib.py", line 66, in __exit__
        next(self.gen)
      File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/errors.py", line 463, in raise_exception_on_not_ok_status
        pywrap_tensorflow.TF_GetCode(status))
    tensorflow.python.framework.errors.InternalError: Internal: failed to enable peer access from 0x7f7b8c286310 to 0x7f7b8e226740: CUDA_ERROR_TOO_MANY_PEERS
    scheduling instances for termination: ['35.162.204.77']
    waiting for termination to complete.
    
  5. zheng-xq commented on Nov 3, 2016

    @zheng-xq
    Contributor

    @alexatknit, could you confirm that you have set CUDA_VISIBLE_DEVICES? TensorFlow should not even see the invisible devices in that case.

    Even if it is not set, this is a bit weird. Before trying to enabling peer-access to each other GPU, TF calls cuDeviceCanAccessPeer, only if it returns True, TF proceeds to call the next cuCtxEnablePeerAccess. It seems to cuDeviceCanAccessPeer returns True even if the next cuCtxEnablePeerAccess will fail with CUDA_ERROR_TOO_MANY_PEERS.

    +@benbarsdell, our friend from NVIDIA. Could you confirm whether cuCtxEnablePeerAccess should fail in this case?

  6. alexatknit commented on Nov 3, 2016

    @alexatknit
    Author

    I have not altered CUDA_VISIBLE_DEVICES, I'll try it out.

  7. benbarsdell commented on Nov 3, 2016

    @benbarsdell
    Contributor

    cuDeviceCanAccessPeer returns True even if the next cuCtxEnablePeerAccess will fail with CUDA_ERROR_TOO_MANY_PEERS

    This is correct.

  8. zheng-xq commented on Nov 3, 2016

    @zheng-xq
    Contributor

    @benbarsdell, would it be too big a feature request to have future Cuda drivers return False in that case?

  9. alexatknit commented on Nov 3, 2016

    @alexatknit
    Author

    I've set CUDA_VISIBLE_DEVICES and still have the issue

  10. zheng-xq commented on Nov 3, 2016

    @zheng-xq
    Contributor

    @alexatknit, could you share your command line, your CUDA_VISIBLE_DEVICES setting, and the resulting logs? If the log is too large, feel free to upload somewhere such as pastebin.com and share the URL here.

  11. alexatknit commented on Nov 3, 2016

    @alexatknit
    Author

    My cluster is launched remotely, I set the environment variable in python, my workers and parameter server are launched from a python process listening to a specific port. It looks like the separate processes all have their own environment variables, so unless those need to be set before importing tensorflow in the first place they should be set based on:

    gpu_devices = [device.split(':')[-1] for device in devices if 'gpu' in device]
    if len(gpu_devices) > 0:
      environ['CUDA_VISIBLE_DEVICES'] = ','.join(gpu_devices)
  12. zheng-xq commented on Nov 3, 2016

    @zheng-xq
    Contributor

    Depending on where you set it, it might be too late. It needs to be set the first time Cuda driver is loaded.

    The safest thing to try is to set it in the script that launches your worker and ps.

  13. alexatknit commented on Nov 3, 2016

    @alexatknit
    Author

    There are far too many variables associated with launching a model, I would need to rework my entire system to try that. My listener process seems to be importing tensorflow during the depickle phase which loads the driver, and this state is passed to the child processes.

  14. benbarsdell commented on Nov 3, 2016

    @benbarsdell
    Contributor

    @zheng-xq

    would it be too big a feature request to have future Cuda drivers return False in that case?

    cuDeviceCanAccessPeer only considers the topology of the system, independent of any other state; I believe that changing this behavior could potentially break existing codes. There are also other reasons why calls to cuCtxEnablePeerAccess may still fail.

  15. alexatknit commented on Nov 3, 2016

    @alexatknit
    Author

    Alright, I updated the architecture to support setting environment variables before deserialization and it appears that it still fails:

    creating ec2 cluster
    launching instances
    waiting for ip addresses to be assigned
    cluster config: {
      "worker_hosts": [
        "35.160.255.186",
        "35.160.255.186"
      ],
      "ps_hosts": [
        "35.160.255.186"
      ]
    }
    setting rules for security group.
    waiting for cluster instances to boot up.
    starting ps host at: 35.160.255.186
    starting worker host at: 35.160.255.186
    starting master worker host at: 35.160.255.186
    35.160.255.186: env = {}
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.8.0 locally
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5 locally
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.8.0 locally
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
    35.160.255.186: env = {'CUDA_VISIBLE_DEVICES': '0,1,2,3,4,5,6,7'}
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.8.0 locally
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5 locally
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.8.0 locally
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.8.0 locally
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.8.0 locally
    35.160.255.186: env = {'CUDA_VISIBLE_DEVICES': '8,9,10,11,12,13,14,15'}
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so.8.0 locally
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so.5 locally
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so.8.0 locally
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
    35.160.255.186: I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so.8.0 locally
    35.160.255.186: INFO: starting parameter server 0
    35.160.255.186: INFO: starting master worker.
    35.160.255.186: INFO: starting training worker 1
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:17.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.11GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4e64e3f6b0
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:0f.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:0f.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4e60e3c540
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ebd0934f0
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 1 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:18.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.11GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4e6522b7e0
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 1 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:10.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ebd4e4f80
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 1 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:10.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4e612288e0
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 2 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:0f.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 10.99GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4e65619840
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 2 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:11.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ebd9357e0
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 2 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:11.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4e61616d00
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 3 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:10.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 10.99GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4e65a08fc0
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 3 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:12.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ebdd89f40
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 3 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:12.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4e61a060c0
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 4 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:11.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 10.99GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4e65df9aa0
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 4 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:13.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ebe1e2600
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 4 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:13.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4e61df67e0
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 5 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:12.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 10.99GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4e661eb520
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 5 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:14.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ebe63ec40
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 5 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:14.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4e621e8260
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 6 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:13.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 10.99GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4e665dedc0
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 6 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:15.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ebea9f5a0
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 6 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:15.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4e625dbb00
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 7 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:14.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 10.99GiB
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 7 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:16.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ebef03bb0
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 7 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:16.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.05GiB
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:972] DMA: 0 1 2 3 4 5 6 7
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 0:   Y Y Y Y Y Y Y Y
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 1:   Y Y Y Y Y Y Y Y
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 2:   Y Y Y Y Y Y Y Y
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 3:   Y Y Y Y Y Y Y Y
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 4:   Y Y Y Y Y Y Y Y
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 5:   Y Y Y Y Y Y Y Y
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 6:   Y Y Y Y Y Y Y Y
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 7:   Y Y Y Y Y Y Y Y
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: Tesla K80, pci bus id: 0000:00:17.0)
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:1) -> (device: 1, name: Tesla K80, pci bus id: 0000:00:18.0)
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:2) -> (device: 2, name: Tesla K80, pci bus id: 0000:00:0f.0)
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:3) -> (device: 3, name: Tesla K80, pci bus id: 0000:00:10.0)
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:4) -> (device: 4, name: Tesla K80, pci bus id: 0000:00:11.0)
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:5) -> (device: 5, name: Tesla K80, pci bus id: 0000:00:12.0)
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:6) -> (device: 6, name: Tesla K80, pci bus id: 0000:00:13.0)
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:7) -> (device: 7, name: Tesla K80, pci bus id: 0000:00:14.0)
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 8 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:17.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 565.56MiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ebf36c090
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 9 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:18.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 504.81MiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ebf7d8550
    35.160.255.186: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:197] Initialize GrpcChannelCache for job ps -> {0 -> 127.0.0.1:40842}
    35.160.255.186: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:197] Initialize GrpcChannelCache for job worker -> {0 -> 127.0.0.1:50425, 1 -> localhost:52197}
    35.160.255.186: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:206] Started server with target: grpc://localhost:52197
    35.160.255.186: INFO: training model res_net_v10_20161103_2_fcn.0
    35.160.255.186: INFO: setting up device: '/job:worker/task:1'
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 10 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:19.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.11GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ebfc48b00
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 11 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:1a.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.11GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ce40bd6e0
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 12 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:1b.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.11GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ce4535a80
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 13 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:1c.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.11GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ce49b1e00
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 14 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:1d.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.11GiB
    35.160.255.186: W tensorflow/stream_executor/cuda/cuda_driver.cc:572] creating context when one is currently active; existing: 0x7f4ce4e320b0
    35.160.255.186: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
    35.160.255.186: I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 15 with properties:
    35.160.255.186: name: Tesla K80
    35.160.255.186: major: 3 minor: 7 memoryClockRate (GHz) 0.8235
    35.160.255.186: pciBusID 0000:00:1e.0
    35.160.255.186: Total memory: 11.17GiB
    35.160.255.186: Free memory: 11.11GiB
    Traceback (most recent call last):
      File "/usr/local/lib/python3.4/dist-packages/KnitPyUtils-0.0.40-py3.4.egg/knitutils/parallel/future.py", line 18, in _deploy_worker
        result = ("#RETURN", fn(*args, **kwargs))
      File "/usr/local/lib/python3.4/dist-packages/KnitPyUtils-0.0.40-py3.4.egg/knitutils/parallel/cluster.py", line 23, in _run_worker
        return fn(*args, **kwargs)
      File "/usr/local/lib/python3.4/dist-packages/KnitNN-0.5.30-py3.4.egg/nn/train/train.py", line 406, in train_master
        server = tf.train.Server(cluster, job_name='worker', task_index=0)
      File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/training/server_lib.py", line 152, in __init__
        self._server_def.SerializeToString(), status)
      File "/usr/lib/python3.4/contextlib.py", line 66, in __exit__
        next(self.gen)
      File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/framework/errors.py", line 463, in raise_exception_on_not_ok_status
        pywrap_tensorflow.TF_GetCode(status))
    tensorflow.python.framework.errors.InternalError: Internal: failed to enable peer access from 0x7f4e79688120 to 0x7f4e7aa4ebb0: CUDA_ERROR_TOO_MANY_PEERS
    scheduling instances for termination: ['35.160.255.186']
    waiting for termination to complete.
    
  16. vrv commented on Nov 3, 2016

    @vrv

    If we change it from an error to a warning, would that make people happy? :)

  17. vrv commented on Nov 3, 2016

    @vrv

    (I'm going to send out a change that does this, and then we can refine it if it turns out to be bad). I think enough people are bitten by this that don't really care, that we should just fix it for the common case.

  18. alexatknit commented on Nov 3, 2016

    @alexatknit
    Author

    @vrv does the change make sure to prioritize the p2p connections that are in the graph? I wouldn't want to have an issue where gpus 8-15 can't talk to each other even though they're the only ones the graph is deployed to in that particular tf session.

    edit: (I guess that can be controlled by CUDA_VISIBLE_DEVICES)

  19. vrv commented on Nov 3, 2016

    @vrv

    Yeah, I would try to use CUDA_VISIBLE_DEVICES if you really don't plan on using the GPUs in your graph. All the change will do is not fail when it currently fails, so things might get a bit slower, but at least it will tell you via the warning logs, instead of just failing the job.

  20. added a commit that references this issue on Nov 4, 2016
    cfccd7c
  21. added a commit that references this issue on Nov 14, 2016
    cb2ef58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

stat:awaiting tensorflowertype:build/install

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions