Home
last modified time | relevance | path

Searched refs:tf_gpu_id (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_id_manager.cc37 Status Insert(TfGpuId tf_gpu_id, PlatformGpuId platform_gpu_id) in Insert() argument
42 result = id_map_.insert({tf_gpu_id.value(), platform_gpu_id.value()}); in Insert()
46 "TensorFlow device (GPU:", tf_gpu_id.value(), in Insert()
60 bool Find(TfGpuId tf_gpu_id, PlatformGpuId* platform_gpu_id) const in Find() argument
63 auto result = id_map_.find(tf_gpu_id.value()); in Find()
86 Status GpuIdManager::InsertTfPlatformGpuIdPair(TfGpuId tf_gpu_id, in InsertTfPlatformGpuIdPair() argument
88 return TfToPlatformGpuIdMap::singleton()->Insert(tf_gpu_id, platform_gpu_id); in InsertTfPlatformGpuIdPair()
91 Status GpuIdManager::TfToPlatformGpuId(TfGpuId tf_gpu_id, in TfToPlatformGpuId() argument
93 if (TfToPlatformGpuIdMap::singleton()->Find(tf_gpu_id, platform_gpu_id)) { in TfToPlatformGpuId()
96 return errors::NotFound("TensorFlow device GPU:", tf_gpu_id.value(), in TfToPlatformGpuId()
Dgpu_process_state.cc70 int GPUProcessState::BusIdForGPU(TfGpuId tf_gpu_id) { in BusIdForGPU() argument
73 GpuIdUtil::ExecutorForTfGpuId(tf_gpu_id).ValueOrDie(); in BusIdForGPU()
81 TfGpuId tf_gpu_id, in GetGPUAllocator() argument
87 GpuIdUtil::CheckValidTfGpuId(tf_gpu_id); in GetGPUAllocator()
89 if (tf_gpu_id.value() >= static_cast<int64>(gpu_allocators_.size())) { in GetGPUAllocator()
90 gpu_allocators_.resize(tf_gpu_id.value() + 1); in GetGPUAllocator()
93 AllocatorParts& allocator_parts = gpu_allocators_[tf_gpu_id.value()]; in GetGPUAllocator()
102 TF_CHECK_OK(GpuIdManager::TfToPlatformGpuId(tf_gpu_id, &platform_gpu_id)); in GetGPUAllocator()
103 int bus_id = BusIdForGPU(tf_gpu_id); in GetGPUAllocator()
116 strings::StrCat("GPU_", tf_gpu_id.value(), "_bfc")); in GetGPUAllocator()
[all …]
Dgpu_id_utils.h42 TfGpuId tf_gpu_id) { in ExecutorForTfGpuId() argument
45 GpuIdManager::TfToPlatformGpuId(tf_gpu_id, &platform_gpu_id)); in ExecutorForTfGpuId()
50 static void CheckValidTfGpuId(TfGpuId tf_gpu_id) { in CheckValidTfGpuId() argument
52 TF_CHECK_OK(GpuIdManager::TfToPlatformGpuId(tf_gpu_id, &platform_gpu_id)); in CheckValidTfGpuId()
56 << " TF GPU id: " << tf_gpu_id in CheckValidTfGpuId()
Dgpu_device.cc121 TfGpuId tf_gpu_id, ::tensorflow::Allocator* alloc, in Reinitialize() argument
134 TF_CHECK_OK(GpuIdManager::TfToPlatformGpuId(tf_gpu_id, &platform_gpu_id)); in Reinitialize()
237 BaseGPUDevice::StreamGroup* GetOrCreate(TfGpuId tf_gpu_id, in GetOrCreate() argument
243 &streams_[key_type(tf_gpu_id.value(), stream_group_within_gpu)]; in GetOrCreate()
300 TfGpuId tf_gpu_id, in BaseGPUDevice() argument
310 tf_gpu_id_(tf_gpu_id), in BaseGPUDevice()
325 GPUProcessState::singleton()->GPUAllocatorCounter(tf_gpu_id); in BaseGPUDevice()
754 TfGpuId tf_gpu_id, Allocator* base_allocator, in Reinitialize() argument
756 stream_device_.Reinitialize(context, gpu_stream, tf_gpu_id, base_allocator, in Reinitialize()
1133 TfGpuId tf_gpu_id(next_tf_gpu_id); in CreateDevices() local
[all …]
Dgpu_device_factory.cc32 TfGpuId tf_gpu_id, const string& physical_device_desc, in GPUDevice() argument
34 : BaseGPUDevice(options, name, memory_limit, locality, tf_gpu_id, in GPUDevice()
65 const DeviceLocality& locality, TfGpuId tf_gpu_id, in CreateGPUDevice() argument
69 tf_gpu_id, physical_device_desc, in CreateGPUDevice()
Dgpu_process_state.h84 TfGpuId tf_gpu_id, size_t total_bytes);
111 virtual int BusIdForGPU(TfGpuId tf_gpu_id);
113 SharedCounter* GPUAllocatorCounter(TfGpuId tf_gpu_id);
Dgpu_id_manager.h29 static Status InsertTfPlatformGpuIdPair(TfGpuId tf_gpu_id,
33 static Status TfToPlatformGpuId(TfGpuId tf_gpu_id,
Dgpu_device.h56 TfGpuId tf_gpu_id, const string& physical_device_desc,
301 const string& name_prefix, TfGpuId tf_gpu_id,
307 const DeviceLocality& dev_locality, TfGpuId tf_gpu_id,
/external/tensorflow/tensorflow/core/grappler/clusters/
Dutils.cc159 TfGpuId tf_gpu_id(device.id); in GetDeviceInfo() local
161 Status s = GpuIdManager::TfToPlatformGpuId(tf_gpu_id, &platform_gpu_id); in GetDeviceInfo()
Dsingle_machine.cc95 TfGpuId tf_gpu_id(parsed.id); in Provision() local
97 Status s = GpuIdManager::TfToPlatformGpuId(tf_gpu_id, &platform_gpu_id); in Provision()
100 tf_gpu_id.value(), ": ", s.ToString()); in Provision()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/
Dconvert_graph.cc738 TfGpuId tf_gpu_id(tf_gpu_id_value); in GetDeviceAndAllocator() local
740 Status s = GpuIdManager::TfToPlatformGpuId(tf_gpu_id, &platform_gpu_id); in GetDeviceAndAllocator()
742 VLOG(1) << "Found TF GPU " << tf_gpu_id.value() << " at cuda device " in GetDeviceAndAllocator()
750 gpu_options, tf_gpu_id, 1); in GetDeviceAndAllocator()
/external/tensorflow/tensorflow/core/grappler/costs/
Dutils.cc243 TfGpuId tf_gpu_id(parsed.id); in GetDeviceInfo() local
245 Status s = GpuIdManager::TfToPlatformGpuId(tf_gpu_id, &platform_gpu_id); in GetDeviceInfo()