Cifar10 underutilizing GPUs?
I am running on four GPUs on a cloud server.
I am fairly certain I am underutiliing GPUs since I am running watch nvidia-smi and seeing lots of zeroes with periodic breif upticks to about 20-30% in one or two gpus. I sent --num-gpus=4 as an argument.
Here is some detail:
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:910] 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:885] Found device 0 with properties:
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:04.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:590] creating context when one is currently active; existing: 0x2c26cc0
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:910] 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:885] Found device 1 with properties:
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:05.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:590] creating context when one is currently active; existing: 0x2c2ab00
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:910] 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:885] Found device 2 with properties:
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:06.0
Total memory: 11.17GiB
Free memory: 11.11GiB
W tensorflow/stream_executor/cuda/cuda_driver.cc:590] creating context when one is currently active; existing: 0x2c4e9c0
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:910] 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:885] Found device 3 with properties:
name: Tesla K80
major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:07.0
Total memory: 11.17GiB
Free memory: 11.11GiB
I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 0 and 1
I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 0 and 2
I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 0 and 3
I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 1 and 0
I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 1 and 2
I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 1 and 3
I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 2 and 0
I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 2 and 1
I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 2 and 3
I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 3 and 0
I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 3 and 1
I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 3 and 2
I tensorflow/core/common_runtime/gpu/gpu_device.cc:906] DMA: 0 1 2 3
I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 0: Y N N N
I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 1: N Y N N
I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 2: N N Y N
I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 3: N N N Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -> (device: 0, name: Tesla K80, pci bus id: 0000:00:04.0)
I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:1) -> (device: 1, name: Tesla K80, pci bus id: 0000:00:05.0)
I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:2) -> (device: 2, name: Tesla K80, pci bus id: 0000:00:06.0)
I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:3) -> (device: 3, name: Tesla K80, pci bus id: 0000:00:07.0)
and then my steps are slower than the file claims should be... since I am running 4 K80s I would expect much faster. I have been running about 2 hours now...
2017-03-27 19:26:46.990922: step 0, loss = 4.67 (1.3 examples/sec; 100.494 sec/batch)
2017-03-27 19:27:15.323066: step 10, loss = 4.63 (212.7 examples/sec; 0.602 sec/batch)
2017-03-27 19:27:42.953002: step 20, loss = 4.61 (194.4 examples/sec; 0.659 sec/batch)
2017-03-27 19:28:08.125142: step 30, loss = 4.39 (202.5 examples/sec; 0.632 sec/batch)
2017-03-27 19:28:34.616396: step 40, loss = 4.32 (197.4 examples/sec; 0.649 sec/batch)
2017-03-27 19:29:00.785607: step 50, loss = 4.33 (221.3 examples/sec; 0.578 sec/batch)
2017-03-27 19:29:28.233038: step 60, loss = 4.31 (205.7 examples/sec; 0.622 sec/batch)
2017-03-27 19:29:54.034672: step 70, loss = 4.07 (232.7 examples/sec; 0.550 sec/batch)
2017-03-27 19:30:20.986209: step 80, loss = 4.13 (216.5 examples/sec; 0.591 sec/batch)
2017-03-27 19:30:46.936150: step 90, loss = 4.02 (182.9 examples/sec; 0.700 sec/batch)
2017-03-27 19:31:10.537182: step 100, loss = 4.03 (208.4 examples/sec; 0.614 sec/batch)
2017-03-27 19:31:40.003347: step 110, loss = 3.93 (187.7 examples/sec; 0.682 sec/batch)
2017-03-27 19:32:06.837135: step 120, loss = 3.86 (225.1 examples/sec; 0.569 sec/batch)
2017-03-27 19:32:33.440906: step 130, loss = 4.01 (165.4 examples/sec; 0.774 sec/batch)
2017-03-27 19:32:59.915578: step 140, loss = 3.98 (176.0 examples/sec; 0.727 sec/batch)
2017-03-27 19:33:25.993545: step 150, loss = 3.96 (195.5 examples/sec; 0.655 sec/batch)
2017-03-27 19:33:53.430149: step 160, loss = 3.78 (170.8 examples/sec; 0.749 sec/batch)
2017-03-27 19:34:18.521821: step 170, loss = 3.75 (212.1 examples/sec; 0.604 sec/batch)
2017-03-27 19:34:43.483902: step 180, loss = 3.88 (220.9 examples/sec; 0.580 sec/batch)
2017-03-27 19:35:10.340536: step 190, loss = 3.65 (182.9 examples/sec; 0.700 sec/batch)
2017-03-27 19:35:37.155107: step 200, loss = 3.90 (181.9 examples/sec; 0.704 sec/batch)
2017-03-27 19:36:07.403705: step 210, loss = 3.80 (192.3 examples/sec; 0.666 sec/batch)
2017-03-27 19:36:33.683254: step 220, loss = 3.91 (201.4 examples/sec; 0.635 sec/batch)
2017-03-27 19:36:59.653552: step 230, loss = 3.57 (176.6 examples/sec; 0.725 sec/batch)
2017-03-27 19:37:26.459334: step 240, loss = 3.66 (195.9 examples/sec; 0.653 sec/batch)
2017-03-27 19:37:54.057299: step 250, loss = 3.50 (212.2 examples/sec; 0.603 sec/batch)
2017-03-27 19:38:20.363680: step 260, loss = 3.54 (169.5 examples/sec; 0.755 sec/batch)
2017-03-27 19:38:46.152019: step 270, loss = 3.65 (211.0 examples/sec; 0.607 sec/batch)
2017-03-27 19:39:13.269074: step 280, loss = 3.77 (164.5 examples/sec; 0.778 sec/batch)
2017-03-27 19:39:38.569408: step 290, loss = 3.52 (197.6 examples/sec; 0.648 sec/batch)
2017-03-27 19:40:06.769787: step 300, loss = 3.52 (234.1 examples/sec; 0.547 sec/batch)
2017-03-27 19:40:37.029889: step 310, loss = 3.47 (192.5 examples/sec; 0.665 sec/batch)
2017-03-27 19:41:03.169604: step 320, loss = 3.52 (204.1 examples/sec; 0.627 sec/batch)
2017-03-27 19:41:31.389978: step 330, loss = 3.44 (180.9 examples/sec; 0.708 sec/batch)
2017-03-27 19:41:57.252489: step 340, loss = 3.68 (215.6 examples/sec; 0.594 sec/batch)
2017-03-27 19:42:23.678016: step 350, loss = 3.31 (196.3 examples/sec; 0.652 sec/batch)
2017-03-27 19:42:51.908805: step 360, loss = 3.24 (218.5 examples/sec; 0.586 sec/batch)
2017-03-27 19:43:19.394081: step 370, loss = 3.25 (170.1 examples/sec; 0.752 sec/batch)
2017-03-27 19:43:44.038110: step 380, loss = 3.20 (208.9 examples/sec; 0.613 sec/batch)
2017-03-27 19:44:11.626015: step 390, loss = 3.25 (163.5 examples/sec; 0.783 sec/batch)
2017-03-27 19:44:38.404796: step 400, loss = 3.29 (203.4 examples/sec; 0.629 sec/batch)
2017-03-27 19:45:07.275305: step 410, loss = 3.36 (169.9 examples/sec; 0.753 sec/batch)
2017-03-27 19:45:34.380476: step 420, loss = 3.28 (194.0 examples/sec; 0.660 sec/batch)
2017-03-27 19:46:00.917443: step 430, loss = 3.09 (189.5 examples/sec; 0.676 sec/batch)
2017-03-27 19:46:28.402162: step 440, loss = 3.16 (170.2 examples/sec; 0.752 sec/batch)
2017-03-27 19:46:54.475613: step 450, loss = 3.23 (214.7 examples/sec; 0.596 sec/batch)
2017-03-27 19:47:20.203394: step 460, loss = 3.14 (197.6 examples/sec; 0.648 sec/batch)
2017-03-27 19:47:46.100768: step 470, loss = 3.15 (205.0 examples/sec; 0.624 sec/batch)
2017-03-27 19:48:12.108813: step 480, loss = 3.16 (182.7 examples/sec; 0.700 sec/batch)
2017-03-27 19:48:38.917580: step 490, loss = 3.03 (189.9 examples/sec; 0.674 sec/batch)
2017-03-27 19:49:06.275778: step 500, loss = 3.33 (217.0 examples/sec; 0.590 sec/batch)
2017-03-27 19:49:37.939371: step 510, loss = 3.00 (168.8 examples/sec; 0.758 sec/batch)
2017-03-27 19:50:05.918202: step 520, loss = 3.17 (203.2 examples/sec; 0.630 sec/batch)
2017-03-27 19:50:33.384825: step 530, loss = 3.06 (188.6 examples/sec; 0.679 sec/batch)
2017-03-27 19:50:58.220123: step 540, loss = 3.04 (189.3 examples/sec; 0.676 sec/batch)
2017-03-27 19:51:24.429506: step 550, loss = 3.10 (214.1 examples/sec; 0.598 sec/batch)
2017-03-27 19:51:50.033498: step 560, loss = 3.17 (197.8 examples/sec; 0.647 sec/batch)
2017-03-27 19:52:15.544901: step 570, loss = 2.89 (213.4 examples/sec; 0.600 sec/batch)
2017-03-27 19:52:41.645112: step 580, loss = 2.88 (182.8 examples/sec; 0.700 sec/batch)
2017-03-27 19:53:08.246384: step 590, loss = 2.85 (184.3 examples/sec; 0.695 sec/batch)
2017-03-27 19:53:34.648499: step 600, loss = 3.23 (159.7 examples/sec; 0.802 sec/batch)
2017-03-27 19:54:05.155759: step 610, loss = 2.97 (154.4 examples/sec; 0.829 sec/batch)
2017-03-27 19:54:32.427825: step 620, loss = 2.93 (191.4 examples/sec; 0.669 sec/batch)
2017-03-27 19:54:58.939925: step 630, loss = 2.85 (171.5 examples/sec; 0.746 sec/batch)
2017-03-27 19:55:25.750831: step 640, loss = 2.75 (177.0 examples/sec; 0.723 sec/batch)
2017-03-27 19:55:54.483247: step 650, loss = 3.01 (174.2 examples/sec; 0.735 sec/batch)
2017-03-27 19:56:20.648869: step 660, loss = 2.79 (198.0 examples/sec; 0.646 sec/batch)
2017-03-27 19:56:48.254483: step 670, loss = 2.94 (177.0 examples/sec; 0.723 sec/batch)
2017-03-27 19:57:14.791461: step 680, loss = 2.86 (220.6 examples/sec; 0.580 sec/batch)
2017-03-27 19:57:41.755795: step 690, loss = 2.60 (176.1 examples/sec; 0.727 sec/batch)
2017-03-27 19:58:07.782214: step 700, loss = 2.84 (181.8 examples/sec; 0.704 sec/batch)
2017-03-27 19:58:37.283130: step 710, loss = 2.72 (174.5 examples/sec; 0.733 sec/batch)
2017-03-27 19:59:02.973874: step 720, loss = 2.72 (212.3 examples/sec; 0.603 sec/batch)
2017-03-27 19:59:30.256519: step 730, loss = 2.58 (186.9 examples/sec; 0.685 sec/batch)
2017-03-27 19:59:58.869470: step 740, loss = 2.66 (199.2 examples/sec; 0.642 sec/batch)
2017-03-27 20:00:24.191095: step 750, loss = 2.60 (254.0 examples/sec; 0.504 sec/batch)
2017-03-27 20:00:49.456903: step 760, loss = 2.66 (183.1 examples/sec; 0.699 sec/batch)
2017-03-27 20:01:15.948954: step 770, loss = 2.75 (169.9 examples/sec; 0.753 sec/batch)
2017-03-27 20:01:43.432525: step 780, loss = 2.68 (185.4 examples/sec; 0.690 sec/batch)
2017-03-27 20:02:09.862770: step 790, loss = 2.52 (160.3 examples/sec; 0.798 sec/batch)
2017-03-27 20:02:37.205679: step 800, loss = 2.55 (221.0 examples/sec; 0.579 sec/batch)
2017-03-27 20:03:06.496276: step 810, loss = 2.84 (242.3 examples/sec; 0.528 sec/batch)
2017-03-27 20:03:33.060909: step 820, loss = 2.41 (203.1 examples/sec; 0.630 sec/batch)
2017-03-27 20:03:59.760558: step 830, loss = 2.65 (177.4 examples/sec; 0.722 sec/batch)
2017-03-27 20:04:25.873692: step 840, loss = 2.57 (196.4 examples/sec; 0.652 sec/batch)
2017-03-27 20:04:51.278986: step 850, loss = 2.40 (254.7 examples/sec; 0.503 sec/batch)
2017-03-27 20:05:18.219390: step 860, loss = 2.45 (231.0 examples/sec; 0.554 sec/batch)
2017-03-27 20:05:43.783941: step 870, loss = 2.54 (231.2 examples/sec; 0.554 sec/batch)
2017-03-27 20:06:10.881609: step 880, loss = 2.49 (194.2 examples/sec; 0.659 sec/batch)
2017-03-27 20:06:37.334819: step 890, loss = 2.57 (179.2 examples/sec; 0.714 sec/batch)
2017-03-27 20:07:04.405804: step 900, loss = 2.66 (194.2 examples/sec; 0.659 sec/batch)
2017-03-27 20:07:33.789852: step 910, loss = 2.41 (169.8 examples/sec; 0.754 sec/batch)
2017-03-27 20:08:00.781905: step 920, loss = 2.39 (188.1 examples/sec; 0.681 sec/batch)
2017-03-27 20:08:27.574612: step 930, loss = 2.47 (204.2 examples/sec; 0.627 sec/batch)
2017-03-27 20:08:53.584209: step 940, loss = 2.33 (203.6 examples/sec; 0.629 sec/batch)
2017-03-27 20:09:20.882582: step 950, loss = 2.74 (170.6 examples/sec; 0.750 sec/batch)
2017-03-27 20:09:46.787176: step 960, loss = 2.35 (226.8 examples/sec; 0.564 sec/batch)
2017-03-27 20:10:13.693611: step 970, loss = 2.23 (221.3 examples/sec; 0.578 sec/batch)
2017-03-27 20:10:39.787442: step 980, loss = 2.30 (189.5 examples/sec; 0.675 sec/batch)
2017-03-27 20:11:05.435047: step 990, loss = 2.46 (222.1 examples/sec; 0.576 sec/batch)
2017-03-27 20:11:31.995699: step 1000, loss = 2.42 (189.5 examples/sec; 0.676 sec/batch)
2017-03-27 20:12:02.392635: step 1010, loss = 2.41 (176.0 examples/sec; 0.727 sec/batch)
2017-03-27 20:12:28.601123: step 1020, loss = 2.28 (189.5 examples/sec; 0.675 sec/batch)
2017-03-27 20:12:57.962129: step 1030, loss = 2.07 (166.6 examples/sec; 0.768 sec/batch)
2017-03-27 20:13:23.711667: step 1040, loss = 2.40 (150.0 examples/sec; 0.853 sec/batch)
2017-03-27 20:13:50.391482: step 1050, loss = 2.16 (163.3 examples/sec; 0.784 sec/batch)
2017-03-27 20:14:17.150539: step 1060, loss = 2.18 (176.4 examples/sec; 0.725 sec/batch)
2017-03-27 20:14:43.821420: step 1070, loss = 2.23 (231.7 examples/sec; 0.552 sec/batch)
2017-03-27 20:15:11.304181: step 1080, loss = 2.38 (194.1 examples/sec; 0.659 sec/batch)
2017-03-27 20:15:37.173430: step 1090, loss = 2.05 (203.5 examples/sec; 0.629 sec/batch)
2017-03-27 20:16:04.255046: step 1100, loss = 2.23 (194.7 examples/sec; 0.657 sec/batch)
2017-03-27 20:16:34.813689: step 1110, loss = 2.28 (165.6 examples/sec; 0.773 sec/batch)
2017-03-27 20:17:01.100678: step 1120, loss = 2.14 (178.2 examples/sec; 0.718 sec/batch)
2017-03-27 20:17:28.586044: step 1130, loss = 2.11 (195.2 examples/sec; 0.656 sec/batch)
2017-03-27 20:17:55.360578: step 1140, loss = 2.04 (150.1 examples/sec; 0.853 sec/batch)
2017-03-27 20:18:22.455943: step 1150, loss = 2.24 (186.1 examples/sec; 0.688 sec/batch)
2017-03-27 20:18:50.903029: step 1160, loss = 1.96 (185.7 examples/sec; 0.689 sec/batch)
2017-03-27 20:19:18.376409: step 1170, loss = 2.09 (170.0 examples/sec; 0.753 sec/batch)
2017-03-27 20:19:45.204791: step 1180, loss = 2.04 (213.4 examples/sec; 0.600 sec/batch)
2017-03-27 20:20:11.020790: step 1190, loss = 2.19 (189.2 examples/sec; 0.676 sec/batch)
2017-03-27 20:20:37.598919: step 1200, loss = 2.10 (198.9 examples/sec; 0.644 sec/batch)
2017-03-27 20:21:08.177342: step 1210, loss = 2.31 (182.7 examples/sec; 0.701 sec/batch)
2017-03-27 20:21:35.569058: step 1220, loss = 2.14 (153.8 examples/sec; 0.832 sec/batch)
2017-03-27 20:22:02.416500: step 1230, loss = 2.10 (186.6 examples/sec; 0.686 sec/batch)
2017-03-27 20:22:30.671925: step 1240, loss = 1.93 (176.6 examples/sec; 0.725 sec/batch)
2017-03-27 20:22:56.999680: step 1250, loss = 2.17 (183.7 examples/sec; 0.697 sec/batch)
2017-03-27 20:23:25.414515: step 1260, loss = 2.00 (189.4 examples/sec; 0.676 sec/batch)
2017-03-27 20:23:52.737623: step 1270, loss = 2.07 (181.8 examples/sec; 0.704 sec/batch)
2017-03-27 20:24:20.142201: step 1280, loss = 1.95 (174.4 examples/sec; 0.734 sec/batch)
2017-03-27 20:24:47.854200: step 1290, loss = 1.81 (184.2 examples/sec; 0.695 sec/batch)
2017-03-27 20:25:14.885685: step 1300, loss = 1.94 (175.9 examples/sec; 0.728 sec/batch)
2017-03-27 20:25:43.580519: step 1310, loss = 2.08 (244.6 examples/sec; 0.523 sec/batch)
2017-03-27 20:26:10.291048: step 1320, loss = 2.09 (154.9 examples/sec; 0.826 sec/batch)
2017-03-27 20:26:36.991663: step 1330, loss = 2.06 (180.9 examples/sec; 0.708 sec/batch)
2017-03-27 20:27:04.117405: step 1340, loss = 2.12 (188.9 examples/sec; 0.678 sec/batch)
2017-03-27 20:27:30.031492: step 1350, loss = 1.96 (213.5 examples/sec; 0.600 sec/batch)
2017-03-27 20:27:56.745065: step 1360, loss = 1.83 (199.8 examples/sec; 0.641 sec/batch)
2017-03-27 20:28:23.977106: step 1370, loss = 1.98 (220.1 examples/sec; 0.581 sec/batch)
2017-03-27 20:28:51.653204: step 1380, loss = 1.90 (189.6 examples/sec; 0.675 sec/batch)
2017-03-27 20:29:18.689594: step 1390, loss = 2.08 (190.3 examples/sec; 0.673 sec/batch)
2017-03-27 20:29:46.789295: step 1400, loss = 2.07 (141.3 examples/sec; 0.906 sec/batch)
2017-03-27 20:30:15.382193: step 1410, loss = 1.87 (203.6 examples/sec; 0.629 sec/batch)
2017-03-27 20:30:40.716611: step 1420, loss = 2.02 (214.1 examples/sec; 0.598 sec/batch)
2017-03-27 20:31:07.416061: step 1430, loss = 1.73 (185.0 examples/sec; 0.692 sec/batch)
2017-03-27 20:31:35.051818: step 1440, loss = 1.89 (191.9 examples/sec; 0.667 sec/batch)
2017-03-27 20:32:01.469996: step 1450, loss = 2.10 (231.1 examples/sec; 0.554 sec/batch)
2017-03-27 20:32:28.600844: step 1460, loss = 1.70 (197.7 examples/sec; 0.647 sec/batch)
2017-03-27 20:32:56.324405: step 1470, loss = 1.76 (203.2 examples/sec; 0.630 sec/batch)
2017-03-27 20:33:23.486288: step 1480, loss = 2.25 (202.5 examples/sec; 0.632 sec/batch)
2017-03-27 20:33:49.776652: step 1490, loss = 1.77 (211.4 examples/sec; 0.606 sec/batch)
2017-03-27 20:34:16.973078: step 1500, loss = 1.75 (162.7 examples/sec; 0.786 sec/batch)
2017-03-27 20:34:47.797704: step 1510, loss = 1.78 (176.4 examples/sec; 0.726 sec/batch)
2017-03-27 20:35:14.206160: step 1520, loss = 1.79 (202.8 examples/sec; 0.631 sec/batch)
2017-03-27 20:35:40.812538: step 1530, loss = 1.95 (185.6 examples/sec; 0.689 sec/batch)
2017-03-27 20:36:08.044138: step 1540, loss = 1.83 (189.3 examples/sec; 0.676 sec/batch)
2017-03-27 20:36:35.161508: step 1550, loss = 1.78 (208.4 examples/sec; 0.614 sec/batch)
2017-03-27 20:37:01.680550: step 1560, loss = 1.81 (189.5 examples/sec; 0.676 sec/batch)
2017-03-27 20:37:29.050672: step 1570, loss = 1.78 (189.7 examples/sec; 0.675 sec/batch)
2017-03-27 20:37:56.332387: step 1580, loss = 1.73 (174.9 examples/sec; 0.732 sec/batch)
2017-03-27 20:38:22.492058: step 1590, loss = 1.62 (207.6 examples/sec; 0.617 sec/batch)
2017-03-27 20:36:35.161508: step 1550, loss = 1.78 (208.4 examples/sec; 0.614 sec/batch)
2017-03-27 20:37:01.680550: step 1560, loss = 1.81 (189.5 examples/sec; 0.676 sec/batch)
2017-03-27 20:37:29.050672: step 1570, loss = 1.78 (189.7 examples/sec; 0.675 sec/batch)
2017-03-27 20:37:56.332387: step 1580, loss = 1.73 (174.9 examples/sec; 0.732 sec/batch)
2017-03-27 20:38:22.492058: step 1590, loss = 1.62 (207.6 examples/sec; 0.617 sec/batch)
Is this abnormal? Is something stopping the GPUs from running correctly?
Mon Mar 27 20:38:08 2017 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 375.39 Driver Version: 375.39 | |-------------------------------+----------------------+----------------------+ | 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:04.0 Off | 0 | | N/A 56C P0 58W / 149W | 10943MiB / 11439MiB | 1% Default | +-------------------------------+----------------------+----------------------+ | 1 Tesla K80 Off | 0000:00:05.0 Off | 0 | | N/A 72C P0 71W / 149W | 10943MiB / 11439MiB | 1% Default | +-------------------------------+----------------------+----------------------+ | 2 Tesla K80 Off | 0000:00:06.0 Off | 0 | | N/A 73C P0 72W / 149W | 10943MiB / 11439MiB | 0% Default | +-------------------------------+----------------------+----------------------+ | 3 Tesla K80 Off | 0000:00:07.0 Off | 0 | | N/A 56C P0 63W / 149W | 10941MiB / 11439MiB | 0% Default | +-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage |
Now I am running on a single GPU and my batches are running four times as quick. I didn't use the multi_gpu script but instead used the cifar10_train.py script outright. And even at on ~47% utilization
Filling queue with 20000 CIFAR images before starting to train. This will take a few minutes. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations. I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:910] 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:885] Found device 0 with properties: name: Tesla K80 major: 3 minor: 7 memoryClockRate (GHz) 0.8235 pciBusID 0000:00:04.0 Total memory: 11.17GiB Free memory: 11.11GiB I tensorflow/core/common_runtime/gpu/gpu_device.cc:906] DMA: 0 I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 0: Y I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -> (device: 0, name: Tesla K80, pci bus id: 0000:00:04.0)
Every 2.0s: nvidia-smi Tue Mar 28 14:53:22 2017
Tue Mar 28 14:53:22 2017 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 375.39 Driver Version: 375.39 | |-------------------------------+----------------------+----------------------+ | 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:04.0 Off | 0 | | N/A 49C P0 69W / 149W | 10941MiB / 11439MiB | 49% Default | +-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 4878 C python 10937MiB | +-----------------------------------------------------------------------------+
2017-03-28 14:49:08.503782: step 0, loss = 4.67 (49.6 examples/sec; 2.581 sec/batch) 2017-03-28 14:49:10.061204: step 10, loss = 4.59 (821.9 examples/sec; 0.156 sec/batch) 2017-03-28 14:49:11.797713: step 20, loss = 4.43 (737.1 examples/sec; 0.174 sec/batch) 2017-03-28 14:49:13.546810: step 30, loss = 4.43 (731.8 examples/sec; 0.175 sec/batch) 2017-03-28 14:49:15.300738: step 40, loss = 4.35 (729.8 examples/sec; 0.175 sec/batch) 2017-03-28 14:49:17.040841: step 50, loss = 4.28 (735.6 examples/sec; 0.174 sec/batch) 2017-03-28 14:49:18.765036: step 60, loss = 4.23 (742.4 examples/sec; 0.172 sec/batch) 2017-03-28 14:49:20.500242: step 70, loss = 4.11 (737.7 examples/sec; 0.174 sec/batch) 2017-03-28 14:49:22.230395: step 80, loss = 4.18 (739.8 examples/sec; 0.173 sec/batch) 2017-03-28 14:49:23.980973: step 90, loss = 4.11 (731.2 examples/sec; 0.175 sec/batch) 2017-03-28 14:49:25.891835: step 100, loss = 3.95 (669.9 examples/sec; 0.191 sec/batch) 2017-03-28 14:49:27.480994: step 110, loss = 3.99 (805.5 examples/sec; 0.159 sec/batch) 2017-03-28 14:49:29.224755: step 120, loss = 4.11 (734.0 examples/sec; 0.174 sec/batch) 2017-03-28 14:49:30.958370: step 130, loss = 4.04 (738.3 examples/sec; 0.173 sec/batch) 2017-03-28 14:49:32.705750: step 140, loss = 4.08 (732.5 examples/sec; 0.175 sec/batch) 2017-03-28 14:49:34.471373: step 150, loss = 3.69 (725.0 examples/sec; 0.177 sec/batch) 2017-03-28 14:49:36.238366: step 160, loss = 4.14 (724.4 examples/sec; 0.177 sec/batch) 2017-03-28 14:49:38.007504: step 170, loss = 3.88 (723.5 examples/sec; 0.177 sec/batch) 2017-03-28 14:49:39.786091: step 180, loss = 3.86 (719.7 examples/sec; 0.178 sec/batch) 2017-03-28 14:49:41.566218: step 190, loss = 3.86 (719.1 examples/sec; 0.178 sec/batch) 2017-03-28 14:49:43.511899: step 200, loss = 3.76 (657.9 examples/sec; 0.195 sec/batch) 2017-03-28 14:49:45.128574: step 210, loss = 3.70 (791.7 examples/sec; 0.162 sec/batch) 2017-03-28 14:49:46.905638: step 220, loss = 3.82 (720.3 examples/sec; 0.178 sec/batch) 2017-03-28 14:49:48.675772: step 230, loss = 3.59 (723.1 examples/sec; 0.177 sec/batch) 2017-03-28 14:49:50.446288: step 240, loss = 3.84 (723.0 examples/sec; 0.177 sec/batch) 2017-03-28 14:49:52.226309: step 250, loss = 3.73 (719.1 examples/sec; 0.178 sec/batch) 2017-03-28 14:49:54.003592: step 260, loss = 3.69 (720.2 examples/sec; 0.178 sec/batch) 2017-03-28 14:49:55.770411: step 270, loss = 4.10 (724.5 examples/sec; 0.177 sec/batch) 2017-03-28 14:49:57.539315: step 280, loss = 3.65 (723.6 examples/sec; 0.177 sec/batch) 2017-03-28 14:49:59.318240: step 290, loss = 3.63 (719.5 examples/sec; 0.178 sec/batch) 2017-03-28 14:50:01.264667: step 300, loss = 3.79 (657.6 examples/sec; 0.195 sec/batch) 2017-03-28 14:50:02.880557: step 310, loss = 3.61 (792.1 examples/sec; 0.162 sec/batch) 2017-03-28 14:50:04.654657: step 320, loss = 3.41 (721.5 examples/sec; 0.177 sec/batch) 2017-03-28 14:50:06.440401: step 330, loss = 3.51 (716.8 examples/sec; 0.179 sec/batch) 2017-03-28 14:50:08.210680: step 340, loss = 3.54 (723.1 examples/sec; 0.177 sec/batch) 2017-03-28 14:50:09.994224: step 350, loss = 3.49 (717.7 examples/sec; 0.178 sec/batch) 2017-03-28 14:50:11.756684: step 360, loss = 3.55 (726.3 examples/sec; 0.176 sec/batch) 2017-03-28 14:50:13.530332: step 370, loss = 3.54 (721.7 examples/sec; 0.177 sec/batch) 2017-03-28 14:50:15.280809: step 380, loss = 3.33 (731.4 examples/sec; 0.175 sec/batch) 2017-03-28 14:50:17.060650: step 390, loss = 3.62 (719.0 examples/sec; 0.178 sec/batch) 2017-03-28 14:50:18.957711: step 400, loss = 3.39 (674.7 examples/sec; 0.190 sec/batch) 2017-03-28 14:50:20.569623: step 410, loss = 3.28 (794.1 examples/sec; 0.161 sec/batch) 2017-03-28 14:50:22.327392: step 420, loss = 3.37 (728.2 examples/sec; 0.176 sec/batch) 2017-03-28 14:50:24.086916: step 430, loss = 3.40 (727.5 examples/sec; 0.176 sec/batch) 2017-03-28 14:50:25.838644: step 440, loss = 3.21 (730.7 examples/sec; 0.175 sec/batch) 2017-03-28 14:50:27.585544: step 450, loss = 3.24 (732.7 examples/sec; 0.175 sec/batch) 2017-03-28 14:50:29.334994: step 460, loss = 3.24 (731.7 examples/sec; 0.175 sec/batch) 2017-03-28 14:50:31.087463: step 470, loss = 3.24 (730.4 examples/sec; 0.175 sec/batch) 2017-03-28 14:50:32.839409: step 480, loss = 3.23 (730.6 examples/sec; 0.175 sec/batch) 2017-03-28 14:50:34.597143: step 490, loss = 3.28 (728.2 examples/sec; 0.176 sec/batch) 2017-03-28 14:50:36.529082: step 500, loss = 3.13 (662.5 examples/sec; 0.193 sec/batch) 2017-03-28 14:50:38.113470: step 510, loss = 3.04 (807.9 examples/sec; 0.158 sec/batch) 2017-03-28 14:50:39.868931: step 520, loss = 3.33 (729.2 examples/sec; 0.176 sec/batch) 2017-03-28 14:50:41.625445: step 530, loss = 3.04 (728.7 examples/sec; 0.176 sec/batch) 2017-03-28 14:50:43.379224: step 540, loss = 3.31 (729.9 examples/sec; 0.175 sec/batch) 2017-03-28 14:50:45.129397: step 550, loss = 3.03 (731.4 examples/sec; 0.175 sec/batch) 2017-03-28 14:50:46.879616: step 560, loss = 3.08 (731.3 examples/sec; 0.175 sec/batch) 2017-03-28 14:50:48.623947: step 570, loss = 3.20 (733.8 examples/sec; 0.174 sec/batch) 2017-03-28 14:50:50.364862: step 580, loss = 3.07 (735.2 examples/sec; 0.174 sec/batch) 2017-03-28 14:50:52.115999: step 590, loss = 2.89 (731.0 examples/sec; 0.175 sec/batch) 2017-03-28 14:50:54.033950: step 600, loss = 2.99 (667.4 examples/sec; 0.192 sec/batch) 2017-03-28 14:50:55.636277: step 610, loss = 2.93 (798.8 examples/sec; 0.160 sec/batch) 2017-03-28 14:50:57.389240: step 620, loss = 2.98 (730.2 examples/sec; 0.175 sec/batch) 2017-03-28 14:50:59.131509: step 630, loss = 2.93 (734.7 examples/sec; 0.174 sec/batch) 2017-03-28 14:51:00.872233: step 640, loss = 2.81 (735.3 examples/sec; 0.174 sec/batch) 2017-03-28 14:51:02.626183: step 650, loss = 2.76 (729.8 examples/sec; 0.175 sec/batch) 2017-03-28 14:51:04.380095: step 660, loss = 2.85 (729.8 examples/sec; 0.175 sec/batch) 2017-03-28 14:51:06.153402: step 670, loss = 2.86 (721.8 examples/sec; 0.177 sec/batch) 2017-03-28 14:51:07.906410: step 680, loss = 3.01 (730.2 examples/sec; 0.175 sec/batch) 2017-03-28 14:51:09.662106: step 690, loss = 2.93 (729.1 examples/sec; 0.176 sec/batch) 2017-03-28 14:51:11.551747: step 700, loss = 3.04 (677.4 examples/sec; 0.189 sec/batch) 2017-03-28 14:51:13.145449: step 710, loss = 3.03 (803.2 examples/sec; 0.159 sec/batch) 2017-03-28 14:51:14.903081: step 720, loss = 2.82 (728.3 examples/sec; 0.176 sec/batch) 2017-03-28 14:51:16.655197: step 730, loss = 2.80 (730.5 examples/sec; 0.175 sec/batch) 2017-03-28 14:51:18.396940: step 740, loss = 2.63 (734.9 examples/sec; 0.174 sec/batch) 2017-03-28 14:51:20.144535: step 750, loss = 2.64 (732.4 examples/sec; 0.175 sec/batch) 2017-03-28 14:51:21.893216: step 760, loss = 2.80 (732.0 examples/sec; 0.175 sec/batch) 2017-03-28 14:51:23.654034: step 770, loss = 2.80 (726.9 examples/sec; 0.176 sec/batch) 2017-03-28 14:51:25.414079: step 780, loss = 2.52 (727.3 examples/sec; 0.176 sec/batch) 2017-03-28 14:51:27.182685: step 790, loss = 2.79 (723.7 examples/sec; 0.177 sec/batch) 2017-03-28 14:51:29.091231: step 800, loss = 2.61 (670.7 examples/sec; 0.191 sec/batch) 2017-03-28 14:51:30.700309: step 810, loss = 2.60 (795.5 examples/sec; 0.161 sec/batch) 2017-03-28 14:51:32.468838: step 820, loss = 2.76 (723.8 examples/sec; 0.177 sec/batch) 2017-03-28 14:51:34.218376: step 830, loss = 2.46 (731.6 examples/sec; 0.175 sec/batch) 2017-03-28 14:51:35.975607: step 840, loss = 2.67 (728.4 examples/sec; 0.176 sec/batch) 2017-03-28 14:51:37.723319: step 850, loss = 2.66 (732.4 examples/sec; 0.175 sec/batch) 2017-03-28 14:51:39.457751: step 860, loss = 2.68 (738.0 examples/sec; 0.173 sec/batch) 2017-03-28 14:51:41.207947: step 870, loss = 2.59 (731.3 examples/sec; 0.175 sec/batch) 2017-03-28 14:51:42.964824: step 880, loss = 2.64 (728.6 examples/sec; 0.176 sec/batch) 2017-03-28 14:51:44.713942: step 890, loss = 2.85 (731.8 examples/sec; 0.175 sec/batch) 2017-03-28 14:51:46.619599: step 900, loss = 2.49 (671.7 examples/sec; 0.191 sec/batch) 2017-03-28 14:51:48.237911: step 910, loss = 2.53 (790.9 examples/sec; 0.162 sec/batch) 2017-03-28 14:51:50.006327: step 920, loss = 2.57 (723.8 examples/sec; 0.177 sec/batch) 2017-03-28 14:51:51.767779: step 930, loss = 2.50 (726.7 examples/sec; 0.176 sec/batch) 2017-03-28 14:51:53.529869: step 940, loss = 2.56 (726.4 examples/sec; 0.176 sec/batch) 2017-03-28 14:51:55.292576: step 950, loss = 2.69 (726.2 examples/sec; 0.176 sec/batch) 2017-03-28 14:51:57.022734: step 960, loss = 2.52 (739.8 examples/sec; 0.173 sec/batch) 2017-03-28 14:51:58.798084: step 970, loss = 2.53 (721.0 examples/sec; 0.178 sec/batch) 2017-03-28 14:52:00.542663: step 980, loss = 2.45 (733.7 examples/sec; 0.174 sec/batch) 2017-03-28 14:52:02.305653: step 990, loss = 2.52 (726.0 examples/sec; 0.176 sec/batch) 2017-03-28 14:52:04.225483: step 1000, loss = 2.60 (666.7 examples/sec; 0.192 sec/batch) 2017-03-28 14:52:05.828974: step 1010, loss = 2.41 (798.3 examples/sec; 0.160 sec/batch) 2017-03-28 14:52:07.577224: step 1020, loss = 2.41 (732.2 examples/sec; 0.175 sec/batch) 2017-03-28 14:52:09.319319: step 1030, loss = 2.45 (734.7 examples/sec; 0.174 sec/batch) 2017-03-28 14:52:11.073527: step 1040, loss = 2.48 (729.7 examples/sec; 0.175 sec/batch) 2017-03-28 14:52:12.812541: step 1050, loss = 2.22 (736.0 examples/sec; 0.174 sec/batch) 2017-03-28 14:52:14.563638: step 1060, loss = 2.40 (731.0 examples/sec; 0.175 sec/batch) 2017-03-28 14:52:16.336639: step 1070, loss = 2.38 (721.9 examples/sec; 0.177 sec/batch) 2017-03-28 14:52:18.110815: step 1080, loss = 2.31 (721.5 examples/sec; 0.177 sec/batch) 2017-03-28 14:52:19.871150: step 1090, loss = 2.29 (727.1 examples/sec; 0.176 sec/batch) 2017-03-28 14:52:21.745866: step 1100, loss = 2.48 (682.8 examples/sec; 0.187 sec/batch) 2017-03-28 14:52:23.361302: step 1110, loss = 2.23 (792.4 examples/sec; 0.162 sec/batch) 2017-03-28 14:52:25.111435: step 1120, loss = 2.35 (731.4 examples/sec; 0.175 sec/batch) 2017-03-28 14:52:26.867515: step 1130, loss = 2.24 (728.9 examples/sec; 0.176 sec/batch) 2017-03-28 14:52:28.620779: step 1140, loss = 2.09 (730.1 examples/sec; 0.175 sec/batch) 2017-03-28 14:52:30.366310: step 1150, loss = 2.32 (733.3 examples/sec; 0.175 sec/batch) 2017-03-28 14:52:32.131482: step 1160, loss = 2.15 (725.1 examples/sec; 0.177 sec/batch) 2017-03-28 14:52:33.874835: step 1170, loss = 2.26 (734.2 examples/sec; 0.174 sec/batch) 2017-03-28 14:52:35.611365: step 1180, loss = 2.07 (737.1 examples/sec; 0.174 sec/batch) 2017-03-28 14:52:37.361122: step 1190, loss = 2.39 (731.5 examples/sec; 0.175 sec/batch) 2017-03-28 14:52:39.232190: step 1200, loss = 2.12 (684.1 examples/sec; 0.187 sec/batch) 2017-03-28 14:52:40.872259: step 1210, loss = 2.35 (780.5 examples/sec; 0.164 sec/batch) 2017-03-28 14:52:42.628474: step 1220, loss = 2.20 (728.8 examples/sec; 0.176 sec/batch) 2017-03-28 14:52:44.375761: step 1230, loss = 2.14 (732.6 examples/sec; 0.175 sec/batch) 2017-03-28 14:52:46.124806: step 1240, loss = 2.05 (731.8 examples/sec; 0.175 sec/batch) 2017-03-28 14:52:47.880110: step 1250, loss = 2.17 (729.2 examples/sec; 0.176 sec/batch) 2017-03-28 14:52:49.614945: step 1260, loss = 2.03 (737.8 examples/sec; 0.173 sec/batch) 2017-03-28 14:52:51.365949: step 1270, loss = 1.94 (731.0 examples/sec; 0.175 sec/batch) 2017-03-28 14:52:53.116613: step 1280, loss = 1.97 (731.2 examples/sec; 0.175 sec/batch) 2017-03-28 14:52:54.858979: step 1290, loss = 2.13 (734.6 examples/sec; 0.174 sec/batch) 2017-03-28 14:52:56.768390: step 1300, loss = 2.39 (670.4 examples/sec; 0.191 sec/batch) 2017-03-28 14:52:58.383334: step 1310, loss = 2.09 (792.6 examples/sec; 0.161 sec/batch) 2017-03-28 14:53:00.137701: step 1320, loss = 1.98 (729.6 examples/sec; 0.175 sec/batch) 2017-03-28 14:53:01.886775: step 1330, loss = 2.02 (731.8 examples/sec; 0.175 sec/batch) 2017-03-28 14:53:03.641501: step 1340, loss = 2.01 (729.5 examples/sec; 0.175 sec/batch) 2017-03-28 14:53:05.397230: step 1350, loss = 2.06 (729.0 examples/sec; 0.176 sec/batch) 2017-03-28 14:53:07.151470: step 1360, loss = 2.06 (729.7 examples/sec; 0.175 sec/batch) 2017-03-28 14:53:08.908159: step 1370, loss = 2.27 (728.6 examples/sec; 0.176 sec/batch) 2017-03-28 14:53:10.660452: step 1380, loss = 1.99 (730.5 examples/sec; 0.175 sec/batch) 2017-03-28 14:53:12.406879: step 1390, loss = 1.92 (732.9 examples/sec; 0.175 sec/batch) 2017-03-28 14:53:14.294470: step 1400, loss = 1.91 (678.1 examples/sec; 0.189 sec/batch) 2017-03-28 14:53:15.913988: step 1410, loss = 2.19 (790.4 examples/sec; 0.162 sec/batch) 2017-03-28 14:53:17.656697: step 1420, loss = 1.86 (734.5 examples/sec; 0.174 sec/batch) 2017-03-28 14:53:19.407470: step 1430, loss = 1.96 (731.1 examples/sec; 0.175 sec/batch) 2017-03-28 14:53:21.160029: step 1440, loss = 2.04 (730.4 examples/sec; 0.175 sec/batch) 2017-03-28 14:53:22.901131: step 1450, loss = 1.85 (735.2 examples/sec; 0.174 sec/batch) 2017-03-28 14:53:24.654051: step 1460, loss = 1.81 (730.2 examples/sec; 0.175 sec/batch) 2017-03-28 14:53:26.384883: step 1470, loss = 2.31 (739.5 examples/sec; 0.173 sec/batch) 2017-03-28 14:53:28.129679: step 1480, loss = 1.98 (733.6 examples/sec; 0.174 sec/batch) 2017-03-28 14:53:29.896127: step 1490, loss = 2.11 (724.6 examples/sec; 0.177 sec/batch)
@tfboyd, any suggestions?
I've got the same issue. The time per batch is approximately 3.5x slower when using 4 GPUs than when using one.
We are a few weeks away from releasing updated code for running inception3, resnet-50, resnet-152, vgg-16 and Alexnet training ImageNet.
I have looked at this CIFAR example in the past and I think the problem is the shared parameters are being placed on the GPU, moving them to the CPU will bring significant speedup. I apologize but I am pretty sure I erased the related code. If you make the fix I believe on a GTX-1080 I was training at 4000-5000 samples per second. I trained the model significantly high in about 40 minutes.
Here is what I think I did and this should get you a big gain for single-gpu. The multi-gpu you can accomplish the same thing but it might take more effort to hack it in. FYI a new CIFAR example is coming out that does this optimally. This one change should get you to 4000 on a GTX-1080 and my guess would be 2000+ on a K80 but that is just a guess. Only wrap that one function do not wrap all of the code in def train():
with tf.device('/cpu:0'):
# Get images and labels for CIFAR-10.
images, labels = cifar10.distorted_inputs()
What this does is force the image processing on the CPU. If you do not do this the image processing can take place half or all on the GPU, which means moving the images back and forth a couple times.
@tfboyd Thank you very much for your (very quick) response. In my case, I am using slim's train_image_classifier.py script. Will your upcoming changes fix the issue there too? Also, if you could point me in the right direction for fixing it on multi-GPU, that'd be much appreciated! Thanks.
For multi-gpu cifar I am 90% sure (likely higher) the same trick will help. I do not remember trying it but I see no reason why it will not work in this case as well as single_gpu but I might be forgetting something.
It looks like, at least at a glance that the variable in the multi_gpu version are placed on the CPU as shown here. I have this "weird feeling" if you fix the preprocessing, e.g. distored_inputs() per my example multi-gpu will just "go fast".
train_image_classifier.py follows current best practices (image processing is on CPU), with the exception of not forcing the shared variables onto the CPU. Doing that gains you 10-12%. I have done it with Resnet-50 and saw a 10-12% images/sec gain that was worth the effort. If you want to try it yourself I have an absolutely horrible hack that does work. I have the code in my personal repo here The important part is TobyReplicaDeviceChooser().device_function, is that a hacky enough name for you? :-) All this function does is if it sees the Variable Op it puts the variable on the CPU instead of the GPU, otherwise it does whatever was asked. I copied and hacked up the code from another source so it is not remotely clean and I am only sharing to be helpful as it is kind of embarrassing.
clones = []
args = args or []
kwargs = kwargs or {}
with slim.arg_scope([slim.model_variable, slim.variable],
device=config.variables_device()):
print ("create_clones")
# Create clones.
for i in range(0, config.num_clones):
with tf.name_scope(config.clone_scope(i)) as clone_scope:
clone_device = config.clone_device(i)
with tf.device(TobyReplicaDeviceChooser().device_function):
with tf.device(clone_device):
print ("variable scope {}".format(tf.get_variable_scope()))
with tf.variable_scope(tf.get_variable_scope(),
reuse=True if i > 0 else None):
outputs = model_fn(*args, **kwargs)
clones.append(Clone(outputs, clone_scope, clone_device))
return clones
I am not a TensorFlow or Google engineer, I am a TPM. Do not hold my bad code against the rest of the team that are a million times better than I am. Actually don't hold my nasty hack against me either. I could barely spell python when I hacked it in about a month ago.
I hope this helps. A cleaner "model zoo" is coming soon. The benchmark code we are releasing in a few weeks will not update these models it is standalone and is meant to showcase some techniques to get the best possible performance. The examples are all for Imagenet.
@tfboyd Thank you so much for your help. I believe your solution may have fixed the issue. I am now seeing a time per step on 4 GPU similar to the one on single-GPU.
I am trying to fully understand how your TobyReplicaDeviceChooser() works, could you please expand on what you said here?
All this function does is if it sees the Variable Op it puts the variable on the CPU instead of the GPU
Thank you!
PS: Is that "fix" part of the upcoming changes that you mentioned earlier?
@tfboyd Sorry, actually it didn't fix the issue, the speedup was only when finetuning one layer. Finetuning all layers with your change still yields the same time per step as I had before :/
train_image_classifier.py should scale but I have not used it for fine tuning. I have used it to partially train Resnet-50 with imagenet from scratch. I have not done fine tuning or CIFAR so I do not know about that. There is not a fix coming as much as some benchmark code that shows how to run TensorFlow as fast as possible. You would have to port the changes yourself.
To explain my nasty hack TobyReplicaDeviceChooser(): In some situations you can get faster performance by placing the shared parameters on the CPU. tf.slim places the shared parameters on GPU:0. Due to tf.layers and tf.slim in general there is not easy way without changing them to force the shared parameters on to the CPU and keep the calculations on the GPU. My hacked up method looks at the Ops before the are assigned to a device and if the Op type is Variable the method overwrites the requested placement and puts the Op on the CPU. This should not be needed to get basic scaling, I saw 10-12% gains on 8 GPUs on Resnet-50. I suggested it because it is kind of an amusing hack.
This may seem unfriendly but that is not the intention. It might be better if you opened a stackoverflow (then link it here so I can see if I have time to help and maybe get my first stackoverflow point :-)) and start over with the details, e.g. which model and checkpoint are you fine tuning and which imageset along with your server setup. There are a lot of variables.
Running Tensorboard reveals two wildly different models. I am still getting the built in support of the GPU without using the MultiGPU tower code when I run the simpler training script. I would guess there is something crazy happening in the towers objects (or the creation/passing of data) rather than a simple transfer of data.


@MikeTam1021 Try color by device, that will show you where the operations end up.
Did you add this to the CIFAR example and see a speed up for single GPU, it should have been substantial, e.g. 5x.
with tf.device('/cpu:0'): # Get images and labels for CIFAR-10. images, labels = cifar10.distorted_inputs()
I'll try it right now. But I was running watch nvidia-smi and running at 47% constantly on one gpu, so I would be surprised to see a 5x gain, unless it wasn't telling me the truth...
This is what I saw a month or so back after I made the changes.
From an old email I sent: I believe I have ended up with 86% accuracy after 82K steps (I think it only needs ~60K, so I could have likely stopped after 15 minutes) at 7,000+ img/sec on my GTX 1080 (previously ~800 img/sec). 8.75x speed up :-).
Update commentary: I think 5,000 is likely more accurate as I was swagging the average looking at the numbers and it was late at night, my GTX 1080 is also my display card which can throw off consistency. So if you are running something similar or faster than a 1080 you should be seeing 5K+ samples per second with CIFAR. On a K80 the speed up will not be the same but should still be substantial.
wow! you were right. Killed it...
2017-04-04 18:54:31.572002: step 1100, loss = 2.48 (2568.0 examples/sec; 0.050 sec/batch) 2017-04-04 18:54:31.903779: step 1110, loss = 2.12 (3858.0 examples/sec; 0.033 sec/batch) 2017-04-04 18:54:32.235221: step 1120, loss = 2.46 (3861.9 examples/sec; 0.033 sec/batch) 2017-04-04 18:54:32.563665: step 1130, loss = 2.38 (3897.2 examples/sec; 0.033 sec/batch) 2017-04-04 18:54:32.897013: step 1140, loss = 2.32 (3839.8 examples/sec; 0.033 sec/batch) 2017-04-04 18:54:33.228439: step 1150, loss = 2.25 (3862.1 examples/sec; 0.033 sec/batch) 2017-04-04 18:54:33.564127: step 1160, loss = 2.21 (3813.1 examples/sec; 0.034 sec/batch) 2017-04-04 18:54:33.900820: step 1170, loss = 2.32 (3801.6 examples/sec; 0.034 sec/batch) 2017-04-04 18:54:34.233336: step 1180, loss = 2.40 (3849.5 examples/sec; 0.033 sec/batch) 2017-04-04 18:54:34.568958: step 1190, loss = 2.13 (3813.8 examples/sec; 0.034 sec/batch) 2017-04-04 18:54:35.049540: step 1200, loss = 2.36 (2663.4 examples/sec; 0.048 sec/batch) 2017-04-04 18:54:35.382699: step 1210, loss = 2.19 (3842.1 examples/sec; 0.033 sec/batch) 2017-04-04 18:54:35.719689: step 1220, loss = 2.10 (3798.3 examples/sec; 0.034 sec/batch)
SWEET :-) I was going to guess 2,500 on a K80 but that was just a guess. crazy right?
Yeah, huge speedup. I will keep this in mind as I develop. Thank you.
@tfboyd Thank you with helping me with my issue. I've checked and it seems that indeed the CPU is already being used for loading the dataset in the case of train_image_classifier.py. I've posted on StackOverflow here.
@anasb Thank you very much. I will try to make some time to check it out or maybe someone much smarter (than me) will see it and help.
Hey guys,
i am running python cifar10_multi_gpu_train.py --num_gpus 3 on my machine and i end up with a utilization of only ~1% of each GPU:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.44 Driver Version: 440.44 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 108... Off | 00000000:0B:00.0 Off | N/A |
| 21% 55C P2 64W / 250W | 10899MiB / 11178MiB | 1% Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GTX 108... Off | 00000000:41:00.0 Off | N/A |
| 29% 61C P2 62W / 250W | 10899MiB / 11178MiB | 1% Default |
+-------------------------------+----------------------+----------------------+
| 2 GeForce GTX 108... Off | 00000000:42:00.0 Off | N/A |
| 29% 66C P2 66W / 250W | 10897MiB / 11176MiB | 2% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 18009 C python 10889MiB |
| 1 18009 C python 10889MiB |
| 2 18009 C python 10887MiB |
+-----------------------------------------------------------------------------+
When running on a single GPU it looks the same ~1%... How can i check for errors or setup issues? There are no error messages. The average throughput is only 400 images/s.
Tensorflow Version 1.14.0
Logs:
WARNING:tensorflow:From cifar10_multi_gpu_train.py:279: The name tf.app.run is deprecated. Please use tf.compat.v1.app.run instead.
WARNING:tensorflow:From cifar10_multi_gpu_train.py:272: The name tf.gfile.Exists is deprecated. Please use tf.io.gfile.exists instead.
W1213 18:33:28.943257 139635279591232 deprecation_wrapper.py:119] From cifar10_multi_gpu_train.py:272: The name tf.gfile.Exists is deprecated. Please use tf.io.gfile.exists instead.
WARNING:tensorflow:From cifar10_multi_gpu_train.py:273: The name tf.gfile.DeleteRecursively is deprecated. Please use tf.io.gfile.rmtree instead.
W1213 18:33:28.943410 139635279591232 deprecation_wrapper.py:119] From cifar10_multi_gpu_train.py:273: The name tf.gfile.DeleteRecursively is deprecated. Please use tf.io.gfile.rmtree instead.
WARNING:tensorflow:From cifar10_multi_gpu_train.py:274: The name tf.gfile.MakeDirs is deprecated. Please use tf.io.gfile.makedirs instead.
W1213 18:33:28.944047 139635279591232 deprecation_wrapper.py:119] From cifar10_multi_gpu_train.py:274: The name tf.gfile.MakeDirs is deprecated. Please use tf.io.gfile.makedirs instead.
WARNING:tensorflow:From cifar10_multi_gpu_train.py:145: The name tf.get_variable is deprecated. Please use tf.compat.v1.get_variable instead.
W1213 18:33:28.944597 139635279591232 deprecation_wrapper.py:119] From cifar10_multi_gpu_train.py:145: The name tf.get_variable is deprecated. Please use tf.compat.v1.get_variable instead.
WARNING:tensorflow:From cifar10_multi_gpu_train.py:155: The name tf.train.exponential_decay is deprecated. Please use tf.compat.v1.train.exponential_decay instead.
W1213 18:33:28.947760 139635279591232 deprecation_wrapper.py:119] From cifar10_multi_gpu_train.py:155: The name tf.train.exponential_decay is deprecated. Please use tf.compat.v1.train.exponential_decay instead.
WARNING:tensorflow:From cifar10_multi_gpu_train.py:162: The name tf.train.GradientDescentOptimizer is deprecated. Please use tf.compat.v1.train.GradientDescentOptimizer instead.
W1213 18:33:28.950851 139635279591232 deprecation_wrapper.py:119] From cifar10_multi_gpu_train.py:162: The name tf.train.GradientDescentOptimizer is deprecated. Please use tf.compat.v1.train.GradientDescentOptimizer instead.
I1213 18:33:28.951251 139635279591232 dataset_builder.py:193] Overwrite dataset info from restored data version. I1213 18:33:28.952953 139635279591232 dataset_builder.py:273] Reusing dataset cifar10 (/home/christoph/tensorflow_datasets/cifar10/1.0.2) I1213 18:33:28.953059 139635279591232 dataset_builder.py:434] Constructing tf.data.Dataset for split train, from /home/christoph/tensorflow_datasets/cifar10/1.0.2 2019-12-13 18:33:29.006787: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcuda.so.1 2019-12-13 18:33:29.825843: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 0 with properties: name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.582 pciBusID: 0000:0b:00.0 2019-12-13 18:33:29.825910: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2019-12-13 18:33:29.826529: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 1 with properties: name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.582 pciBusID: 0000:41:00.0 2019-12-13 18:33:29.826577: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2019-12-13 18:33:29.827192: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 2 with properties: name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.582 pciBusID: 0000:42:00.0 2019-12-13 18:33:29.827359: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudart.so.10.1 2019-12-13 18:33:29.828298: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcublas.so.10 2019-12-13 18:33:29.829565: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcufft.so.10 2019-12-13 18:33:29.829725: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcurand.so.10 2019-12-13 18:33:29.830778: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcusolver.so.10 2019-12-13 18:33:29.831403: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcusparse.so.10 2019-12-13 18:33:29.833855: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudnn.so.7 2019-12-13 18:33:29.834722: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2019-12-13 18:33:29.835463: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2019-12-13 18:33:29.849881: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2019-12-13 18:33:29.850783: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2019-12-13 18:33:29.851624: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1763] Adding visible gpu devices: 0, 1, 2 WARNING:tensorflow:From /home/christoph/test/models/tutorials/image/cifar10/cifar10_input.py:64: The name tf.random_crop is deprecated. Please use tf.image.random_crop instead.
W1213 18:33:29.868719 139635279591232 deprecation_wrapper.py:119] From /home/christoph/test/models/tutorials/image/cifar10/cifar10_input.py:64: The name tf.random_crop is deprecated. Please use tf.image.random_crop instead.
WARNING:tensorflow:From /home/christoph/envs/deep/lib/python3.7/site-packages/tensorflow/python/ops/image_ops_impl.py:1514: div (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Deprecated in favor of operator or tf.math.divide.
W1213 18:33:29.899419 139635279591232 deprecation.py:323] From /home/christoph/envs/deep/lib/python3.7/site-packages/tensorflow/python/ops/image_ops_impl.py:1514: div (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Deprecated in favor of operator or tf.math.divide.
WARNING:tensorflow:From /home/christoph/test/models/tutorials/image/cifar10/cifar10_input.py:45: DatasetV1.make_one_shot_iterator (from tensorflow.python.data.ops.dataset_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use for ... in dataset: to iterate over a dataset. If using tf.estimator, return the Dataset object directly from your input function. As a last resort, you can use tf.compat.v1.data.make_one_shot_iterator(dataset).
W1213 18:33:29.909346 139635279591232 deprecation.py:323] From /home/christoph/test/models/tutorials/image/cifar10/cifar10_input.py:45: DatasetV1.make_one_shot_iterator (from tensorflow.python.data.ops.dataset_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use for ... in dataset: to iterate over a dataset. If using tf.estimator, return the Dataset object directly from your input function. As a last resort, you can use tf.compat.v1.data.make_one_shot_iterator(dataset).
WARNING:tensorflow:From /home/christoph/test/models/tutorials/image/cifar10/cifar10_input.py:48: The name tf.summary.image is deprecated. Please use tf.compat.v1.summary.image instead.
W1213 18:33:29.920842 139635279591232 deprecation_wrapper.py:119] From /home/christoph/test/models/tutorials/image/cifar10/cifar10_input.py:48: The name tf.summary.image is deprecated. Please use tf.compat.v1.summary.image instead.
WARNING:tensorflow:From /home/christoph/envs/deep/lib/python3.7/site-packages/tensorflow/contrib/slim/python/slim/data/prefetch_queue.py:91: QueueRunner.init (from tensorflow.python.training.queue_runner_impl) is deprecated and will be removed in a future version.
Instructions for updating:
To construct input pipelines, use the tf.data module.
W1213 18:33:29.925159 139635279591232 deprecation.py:323] From /home/christoph/envs/deep/lib/python3.7/site-packages/tensorflow/contrib/slim/python/slim/data/prefetch_queue.py:91: QueueRunner.init (from tensorflow.python.training.queue_runner_impl) is deprecated and will be removed in a future version.
Instructions for updating:
To construct input pipelines, use the tf.data module.
WARNING:tensorflow:From /home/christoph/envs/deep/lib/python3.7/site-packages/tensorflow/contrib/slim/python/slim/data/prefetch_queue.py:91: add_queue_runner (from tensorflow.python.training.queue_runner_impl) is deprecated and will be removed in a future version.
Instructions for updating:
To construct input pipelines, use the tf.data module.
W1213 18:33:29.925842 139635279591232 deprecation.py:323] From /home/christoph/envs/deep/lib/python3.7/site-packages/tensorflow/contrib/slim/python/slim/data/prefetch_queue.py:91: add_queue_runner (from tensorflow.python.training.queue_runner_impl) is deprecated and will be removed in a future version.
Instructions for updating:
To construct input pipelines, use the tf.data module.
WARNING:tensorflow:From cifar10_multi_gpu_train.py:172: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.
W1213 18:33:29.927968 139635279591232 deprecation_wrapper.py:119] From cifar10_multi_gpu_train.py:172: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.
WARNING:tensorflow:From cifar10_multi_gpu_train.py:172: The name tf.get_variable_scope is deprecated. Please use tf.compat.v1.get_variable_scope instead.
W1213 18:33:29.928058 139635279591232 deprecation_wrapper.py:119] From cifar10_multi_gpu_train.py:172: The name tf.get_variable_scope is deprecated. Please use tf.compat.v1.get_variable_scope instead.
WARNING:tensorflow:From /home/christoph/test/models/tutorials/image/cifar10/cifar10.py:126: calling TruncatedNormal.init (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version. Instructions for updating: Call initializer instance with the dtype argument instead of passing it to the constructor W1213 18:33:29.928915 139635279591232 deprecation.py:506] From /home/christoph/test/models/tutorials/image/cifar10/cifar10.py:126: calling TruncatedNormal.init (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version. Instructions for updating: Call initializer instance with the dtype argument instead of passing it to the constructor WARNING:tensorflow:From /home/christoph/test/models/tutorials/image/cifar10/cifar10.py:85: The name tf.summary.histogram is deprecated. Please use tf.compat.v1.summary.histogram instead.
W1213 18:33:29.937341 139635279591232 deprecation_wrapper.py:119] From /home/christoph/test/models/tutorials/image/cifar10/cifar10.py:85: The name tf.summary.histogram is deprecated. Please use tf.compat.v1.summary.histogram instead.
WARNING:tensorflow:From /home/christoph/test/models/tutorials/image/cifar10/cifar10.py:86: The name tf.summary.scalar is deprecated. Please use tf.compat.v1.summary.scalar instead.
W1213 18:33:29.938268 139635279591232 deprecation_wrapper.py:119] From /home/christoph/test/models/tutorials/image/cifar10/cifar10.py:86: The name tf.summary.scalar is deprecated. Please use tf.compat.v1.summary.scalar instead.
WARNING:tensorflow:From /home/christoph/test/models/tutorials/image/cifar10/cifar10.py:190: The name tf.nn.max_pool is deprecated. Please use tf.nn.max_pool2d instead.
W1213 18:33:29.949432 139635279591232 deprecation_wrapper.py:119] From /home/christoph/test/models/tutorials/image/cifar10/cifar10.py:190: The name tf.nn.max_pool is deprecated. Please use tf.nn.max_pool2d instead.
WARNING:tensorflow:From /home/christoph/test/models/tutorials/image/cifar10/cifar10.py:129: The name tf.add_to_collection is deprecated. Please use tf.compat.v1.add_to_collection instead.
W1213 18:33:29.978532 139635279591232 deprecation_wrapper.py:119] From /home/christoph/test/models/tutorials/image/cifar10/cifar10.py:129: The name tf.add_to_collection is deprecated. Please use tf.compat.v1.add_to_collection instead.
WARNING:tensorflow:From /home/christoph/envs/deep/lib/python3.7/site-packages/tensorflow/python/training/moving_averages.py:433: Variable.initialized_value (from tensorflow.python.ops.variables) is deprecated and will be removed in a future version. Instructions for updating: Use Variable.read_value. Variables in 2.X are initialized automatically both in eager and graph (inside tf.defun) contexts. W1213 18:33:30.432759 139635279591232 deprecation.py:323] From /home/christoph/envs/deep/lib/python3.7/site-packages/tensorflow/python/training/moving_averages.py:433: Variable.initialized_value (from tensorflow.python.ops.variables) is deprecated and will be removed in a future version. Instructions for updating: Use Variable.read_value. Variables in 2.X are initialized automatically both in eager and graph (inside tf.defun) contexts. WARNING:tensorflow:From cifar10_multi_gpu_train.py:223: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
W1213 18:33:30.652398 139635279591232 deprecation_wrapper.py:119] From cifar10_multi_gpu_train.py:223: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
WARNING:tensorflow:From cifar10_multi_gpu_train.py:226: The name tf.summary.merge is deprecated. Please use tf.compat.v1.summary.merge instead.
W1213 18:33:30.667478 139635279591232 deprecation_wrapper.py:119] From cifar10_multi_gpu_train.py:226: The name tf.summary.merge is deprecated. Please use tf.compat.v1.summary.merge instead.
2019-12-13 18:33:30.669224: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2019-12-13 18:33:30.693051: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3799550000 Hz
2019-12-13 18:33:30.693935: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x556e4cf4e3b0 executing computations on platform Host. Devices:
2019-12-13 18:33:30.693959: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): tf.data module.
W1213 18:33:31.013886 139635279591232 deprecation.py:323] From cifar10_multi_gpu_train.py:240: start_queue_runners (from tensorflow.python.training.queue_runner_impl) is deprecated and will be removed in a future version.
Instructions for updating:
To construct input pipelines, use the tf.data module.
WARNING:tensorflow:From cifar10_multi_gpu_train.py:242: The name tf.summary.FileWriter is deprecated. Please use tf.compat.v1.summary.FileWriter instead.
W1213 18:33:31.014718 139635279591232 deprecation_wrapper.py:119] From cifar10_multi_gpu_train.py:242: The name tf.summary.FileWriter is deprecated. Please use tf.compat.v1.summary.FileWriter instead.
2019-12-13 18:33:31.500953: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcublas.so.10 2019-12-13 18:33:32.317764: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcudnn.so.7 2019-12-13 18:33:34.910429: step 0, loss = 4.68 (101.8 examples/sec; 1.257 sec/batch) 2019-12-13 18:33:45.078217: step 10, loss = 4.62 (428.6 examples/sec; 0.299 sec/batch) 2019-12-13 18:33:54.103694: step 20, loss = 4.48 (423.2 examples/sec; 0.302 sec/batch) 2019-12-13 18:34:03.192962: step 30, loss = 4.36 (421.8 examples/sec; 0.303 sec/batch) 2019-12-13 18:34:12.366009: step 40, loss = 4.31 (416.8 examples/sec; 0.307 sec/batch) 2019-12-13 18:34:21.616723: step 50, loss = 4.21 (414.5 examples/sec; 0.309 sec/batch) 2019-12-13 18:34:30.927902: step 60, loss = 4.29 (411.9 examples/sec; 0.311 sec/batch) 2019-12-13 18:34:40.306189: step 70, loss = 4.12 (410.2 examples/sec; 0.312 sec/batch) 2019-12-13 18:34:49.754794: step 80, loss = 4.16 (402.2 examples/sec; 0.318 sec/batch) 2019-12-13 18:34:59.249794: step 90, loss = 4.17 (403.0 examples/sec; 0.318 sec/batch) 2019-12-13 18:35:08.819314: step 100, loss = 4.12 (400.2 examples/sec; 0.320 sec/batch) 2019-12-13 18:35:19.407196: step 110, loss = 4.05 (398.8 examples/sec; 0.321 sec/batch) 2019-12-13 18:35:29.058268: step 120, loss = 4.50 (397.6 examples/sec; 0.322 sec/batch) 2019-12-13 18:35:38.769272: step 130, loss = 3.94 (395.3 examples/sec; 0.324 sec/batch) 2019-12-13 18:35:48.515237: step 140, loss = 3.88 (393.5 examples/sec; 0.325 sec/batch)
You have an idea how i can debug this?