Home
last modified time | relevance | path

Searched refs:ChannelHandle (Results 1 – 25 of 39) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/xla/service/
Dchannel_tracker.cc34 StatusOr<ChannelHandle> ChannelTracker::NewChannel( in NewChannel()
35 ChannelHandle::ChannelType type) { in NewChannel()
36 if (type != ChannelHandle::DEVICE_TO_DEVICE && in NewChannel()
37 type != ChannelHandle::HOST_TO_DEVICE && in NewChannel()
38 type != ChannelHandle::DEVICE_TO_HOST) { in NewChannel()
44 ChannelHandle new_handle = AllocateHandle(type); in NewChannel()
56 Status ChannelTracker::RegisterSend(const ChannelHandle& handle) { in RegisterSend()
61 Status ChannelTracker::RegisterRecv(const ChannelHandle& handle) { in RegisterRecv()
66 ChannelHandle ChannelTracker::AllocateHandle(ChannelHandle::ChannelType type) { in AllocateHandle()
68 ChannelHandle result; in AllocateHandle()
[all …]
Dchannel_tracker.h52 ChannelHandle::ChannelType type;
57 StatusOr<ChannelHandle> NewChannel(ChannelHandle::ChannelType type);
61 Status RegisterSend(const ChannelHandle& handle);
65 Status RegisterRecv(const ChannelHandle& handle);
70 ChannelHandle AllocateHandle(ChannelHandle::ChannelType type)
73 Status RegisterSendInternal(const ChannelHandle& handle)
76 Status RegisterRecvInternal(const ChannelHandle& handle)
/external/libchrome/ipc/
Dipc_channel_handle.h22 struct ChannelHandle { struct
23 ChannelHandle() {} in ChannelHandle() argument
24 explicit ChannelHandle(const base::FileDescriptor& s) : socket(s) {} in ChannelHandle() function
29 struct ChannelHandle { argument
30 ChannelHandle() {}
31 ChannelHandle(mojo::MessagePipeHandle h) : mojo_handle(h) {}
Dipc_channel_factory.cc17 ChannelHandle handle, in PlatformChannelFactory()
38 ChannelHandle handle_;
49 const ChannelHandle& handle, in Create()
Dipc_channel.h175 const IPC::ChannelHandle& channel_handle, in COMPONENT_EXPORT()
180 const IPC::ChannelHandle& channel_handle, in COMPONENT_EXPORT()
185 const IPC::ChannelHandle& channel_handle, in COMPONENT_EXPORT()
Dipc_channel_common.cc32 const IPC::ChannelHandle& channel_handle, in CreateClient()
48 const IPC::ChannelHandle& channel_handle, in CreateServer()
Dipc_channel_factory.h27 const ChannelHandle& handle, in COMPONENT_EXPORT()
Dipc_channel_proxy.h96 const IPC::ChannelHandle& channel_handle, in COMPONENT_EXPORT()
120 void Init(const IPC::ChannelHandle& channel_handle, in COMPONENT_EXPORT()
Dipc_message_utils_unittest.cc102 IPC::ChannelHandle channel_handle(message_pipe.handle0.release()); in TEST()
108 IPC::ChannelHandle result_handle; in TEST()
Dipc_sync_channel.h83 const IPC::ChannelHandle& channel_handle, in COMPONENT_EXPORT()
Dipc_channel_proxy.cc395 const IPC::ChannelHandle& channel_handle, in Create()
442 void ChannelProxy::Init(const IPC::ChannelHandle& channel_handle, in Init()
/external/tensorflow/tensorflow/compiler/xla/client/
Dclient.h218 StatusOr<ChannelHandle> CreateChannelHandle();
222 StatusOr<ChannelHandle> CreateHostToDeviceChannelHandle();
223 StatusOr<ChannelHandle> CreateDeviceToHostChannelHandle();
235 StatusOr<ChannelHandle> CreateChannelHandleByType(
236 ChannelHandle::ChannelType type);
Dclient.cc487 StatusOr<ChannelHandle> Client::CreateChannelHandleByType( in CreateChannelHandleByType()
488 ChannelHandle::ChannelType type) { in CreateChannelHandleByType()
504 StatusOr<ChannelHandle> Client::CreateChannelHandle() { in CreateChannelHandle()
505 return CreateChannelHandleByType(ChannelHandle::DEVICE_TO_DEVICE); in CreateChannelHandle()
508 StatusOr<ChannelHandle> Client::CreateHostToDeviceChannelHandle() { in CreateHostToDeviceChannelHandle()
509 return CreateChannelHandleByType(ChannelHandle::HOST_TO_DEVICE); in CreateHostToDeviceChannelHandle()
512 StatusOr<ChannelHandle> Client::CreateDeviceToHostChannelHandle() { in CreateDeviceToHostChannelHandle()
513 return CreateChannelHandleByType(ChannelHandle::DEVICE_TO_HOST); in CreateDeviceToHostChannelHandle()
Dxla_builder.h736 const absl::optional<ChannelHandle>& channel_id = absl::nullopt,
743 const absl::optional<ChannelHandle>& channel_id = absl::nullopt,
867 void Send(XlaOp operand, const ChannelHandle& handle);
868 XlaOp SendWithToken(XlaOp operand, XlaOp token, const ChannelHandle& handle);
871 const ChannelHandle& handle);
874 const ChannelHandle& handle);
880 XlaOp Recv(const Shape& shape, const ChannelHandle& handle);
882 const ChannelHandle& handle);
1300 const absl::optional<ChannelHandle>& channel_id,
1305 const absl::optional<ChannelHandle>& channel_id,
[all …]
Dxla_builder.cc2717 const absl::optional<ChannelHandle>& channel_id, in AllGather()
2783 const absl::optional<ChannelHandle>& channel_id, in AllReduce()
3142 void XlaBuilder::Send(XlaOp operand, const ChannelHandle& handle) { in Send()
3158 const ChannelHandle& handle) { in SendWithToken()
3160 if (handle.type() != ChannelHandle::DEVICE_TO_DEVICE) { in SendWithToken()
3185 XlaOp XlaBuilder::Recv(const Shape& shape, const ChannelHandle& handle) { in Recv()
3211 const ChannelHandle& handle) { in RecvWithToken()
3213 if (handle.type() != ChannelHandle::DEVICE_TO_DEVICE) { in RecvWithToken()
3240 const ChannelHandle& handle) { in SendToHost()
3258 if (handle.type() != ChannelHandle::DEVICE_TO_HOST) { in SendToHost()
[all …]
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_compiler.cc569 py::enum_<ChannelHandle::ChannelType>(m, "ChannelHandle_ChannelType") in BuildXlaCompilerSubmodule()
570 .value("CHANNEL_TYPE_INVALID", ChannelHandle::CHANNEL_TYPE_INVALID) in BuildXlaCompilerSubmodule()
571 .value("DEVICE_TO_DEVICE", ChannelHandle::DEVICE_TO_DEVICE) in BuildXlaCompilerSubmodule()
572 .value("DEVICE_TO_HOST", ChannelHandle::DEVICE_TO_HOST) in BuildXlaCompilerSubmodule()
573 .value("HOST_TO_DEVICE", ChannelHandle::HOST_TO_DEVICE); in BuildXlaCompilerSubmodule()
575 py::class_<ChannelHandle>(m, "ChannelHandle") in BuildXlaCompilerSubmodule()
576 .def_property_readonly("type", &ChannelHandle::type) in BuildXlaCompilerSubmodule()
577 .def_property_readonly("handle", &ChannelHandle::handle) in BuildXlaCompilerSubmodule()
578 .def("__repr__", [](ChannelHandle* h) { return h->DebugString(); }); in BuildXlaCompilerSubmodule()
Dpy_client.h118 StatusOr<ChannelHandle> CreateChannelHandle() { in CreateChannelHandle()
121 StatusOr<ChannelHandle> CreateDeviceToHostChannelHandle() { in CreateDeviceToHostChannelHandle()
124 StatusOr<ChannelHandle> CreateHostToDeviceChannelHandle() { in CreateHostToDeviceChannelHandle()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_compiler.h239 Status GetChannelHandle(const string& key, xla::ChannelHandle* channel);
244 xla::ChannelHandle* channel);
249 xla::ChannelHandle* channel);
351 std::unordered_map<string, xla::ChannelHandle> channels_;
Dxla_compiler.cc1405 xla::ChannelHandle* channel) { in GetChannelHandle()
1406 auto result = channels_.emplace(key, xla::ChannelHandle()); in GetChannelHandle()
1416 xla::ChannelHandle* channel) { in GetHostToDeviceChannelHandle()
1417 auto result = channels_.emplace(key, xla::ChannelHandle()); in GetHostToDeviceChannelHandle()
1428 xla::ChannelHandle* channel) { in GetDeviceToHostChannelHandle()
1429 auto result = channels_.emplace(key, xla::ChannelHandle()); in GetDeviceToHostChannelHandle()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dsendrecv_ops.cc46 xla::ChannelHandle channel; in Compile()
77 xla::ChannelHandle channel; in Compile()
/external/tensorflow/tensorflow/compiler/xla/pjrt/
Dpjrt_client.h262 virtual StatusOr<ChannelHandle> CreateChannelHandle() = 0;
263 virtual StatusOr<ChannelHandle> CreateDeviceToHostChannelHandle() = 0;
264 virtual StatusOr<ChannelHandle> CreateHostToDeviceChannelHandle() = 0;
Dpjrt_stream_executor_client.h204 StatusOr<ChannelHandle> CreateChannelHandle() override { in CreateChannelHandle()
207 StatusOr<ChannelHandle> CreateDeviceToHostChannelHandle() override { in CreateDeviceToHostChannelHandle()
210 StatusOr<ChannelHandle> CreateHostToDeviceChannelHandle() override { in CreateHostToDeviceChannelHandle()
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/IR/
Dhlo_ops_base_structs.td67 def ChannelHandle : StructAttr<"ChannelHandle", HLO_Dialect, [
/external/tensorflow/tensorflow/core/tpu/kernels/xla/
Dhost_compute_ops.cc162 xla::ChannelHandle channel; in Compile()
222 xla::ChannelHandle channel; in Compile()
427 xla::ChannelHandle channel; in Compile()
479 xla::ChannelHandle channel; in Compile()
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dhlo_function_importer.h156 mlir::NamedAttribute ConvertChannelHandle(const xla::ChannelHandle& channel);

12