Split gpu_id.h and GpuIdManager out from build target //tensorflow/core:gpu_runtime...
authorGuangda Lai <laigd@google.com>
Fri, 9 Feb 2018 20:20:38 +0000 (12:20 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 9 Feb 2018 20:27:57 +0000 (12:27 -0800)
commitdf982b8dea49eba273e33e4283c3b14eab171b04
tree2ab961d8b3e52672e6492040bc887c3564731bc9
parentc967fed58227e919be4c844bae241874f8717933
Split gpu_id.h and GpuIdManager out from build target //tensorflow/core:gpu_runtime, to reduce the size of dependencies, so when other lightweight libraries like grappler utils needs the TfToCudaGpuId translation function it doesn't need to depend on things like stream executor and cuda libraries.

PiperOrigin-RevId: 185175757
tensorflow/core/BUILD
tensorflow/core/common_runtime/gpu/gpu_device.cc
tensorflow/core/common_runtime/gpu/gpu_device.h
tensorflow/core/common_runtime/gpu/gpu_id_manager.cc [moved from tensorflow/core/common_runtime/gpu/gpu_id_utils.cc with 79% similarity]
tensorflow/core/common_runtime/gpu/gpu_id_manager.h [new file with mode: 0644]
tensorflow/core/common_runtime/gpu/gpu_id_manager_test.cc [moved from tensorflow/core/common_runtime/gpu/gpu_id_utils_test.cc with 67% similarity]
tensorflow/core/common_runtime/gpu/gpu_id_utils.h
tensorflow/core/common_runtime/gpu/process_state.cc