gpu_runner.cc
imports tensorflow/core/platform/status.himports tsl/platform/fingerprint.h
SHA-256a13af3f902e0a2bfb23e1fb33f6def3724ba0251d5b7c8848ad21604cdb5aea0
MaleculeMd(In₅)
Evidence
1/* Copyright 2023 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is …
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15#include "tensorflow/core/tfrt/gpu/kernel/gpu_runner.h"
16
17#include <cstddef>
18#include <cstdint>
19#include <memory>
20#include <optional>
21#include <string>
22#include <utility>
23#include <vector>
24
25#include "absl/container/flat_hash_map.h"
26#include "absl/container/flat_hash_set.h"
27#include "absl/log/check.h"
28#include "absl/log/log.h"
29#include "absl/status/status.h"
30#include "absl/strings/str_cat.h"
31#include "absl/synchronization/notification.h"
32#include "absl/types/span.h"
33#include "llvm/ADT/SmallVector.h"
34#include "tensorflow/compiler/jit/pjrt_compile_util.h"
35#include "tensorflow/compiler/jit/pjrt_tensor_buffer_util.h"
36#include "tensorflow/compiler/jit/xla_compile_util.h"
37#include "tensorflow/compiler/jit/xla_launch_util.h"
38#include "tensorflow/compiler/jit/xla_platform_info.h"
39#include "tensorflow/compiler/tf2xla/xla_compiler.h"
40#include "xla/pjrt/pjrt_client.h"
41#include "xla/pjrt/pjrt_common.h"
42#include "xla/tsl/framework/device_id.h"
43#include "xla/tsl/framework/device_id_manager.h"
44#include "xla/tsl/framework/serving_device_selector.h"
45#include "xla/tsl/platform/errors.h"
46#include "xla/tsl/platform/statusor.h"
47#include "tensorflow/core/framework/allocator.h"
48#include "tensorflow/core/framework/attr_value.pb.h"
49#include "tensorflow/core/framework/device.h"
50#include "tensorflow/core/framework/device_base.h"
51#include "tensorflow/core/framework/function.h"
52#include "tensorflow/core/framework/function.pb.h"
53#include "tensorflow/core/framework/resource_mgr.h"
54#include "tensorflow/core/framework/tensor.h"
55#include "tensorflow/core/framework/tensor_shape.h"
56#include "tensorflow/core/framework/types.h"
57#include "tensorflow/core/framework/types.pb.h"
58#include "tensorflow/core/platform/status.h"
239:53… allbackTensor>> results;
240
241 // Find all devices that are on the same platform (physical GPU). Variables
242 // will be distributed to the memory of vi …