stream_executor.cc
imports tensorflow/core/platform/env.himports tensorflow/core/platform/stringpiece.h
SHA-256ff3c8ed06c2f0fbb7c6f05be840fff5541f97a4e37233d22c8ab5f8d9827359c
MaleculeMd(In₆)
Evidence
1/* Copyright 2020 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================================================================ …
16:45… class "CSomething" represents a
17// "Something" that can be manipulated via calls in the C interface and a C
18// struct called "SP_Something".
19//
20// …
20:44… :Platform registration for pluggable
21// device.
22#include "tensorflow/c/experimental/stream_executor/stream_executor.h"
23
24#include <cstdint>
25#include <memory>
26#include <optional>
27#include <string>
28#include <utility>
29#include <variant>
30
31#include "absl/functional/any_invocable.h"
32#include "absl/log/check.h"
33#include "absl/log/log.h"
34#include "absl/status/status.h"
35#include "absl/status/statusor.h"
36#include "absl/strings/str_format.h"
37#include "absl/strings/string_view.h"
38#include "absl/types/optional.h"
39#include "tensorflow/c/c_api_macros.h"
40#include "tensorflow/c/c_api_macros_internal.h"
41#include "tensorflow/c/experimental/stream_executor/stream_executor_internal.h"
42#include "tensorflow/c/tf_status.h"
43#include "tensorflow/c/tf_status_helper.h"
44#include "xla/stream_executor/allocator_stats.h"
45#include "xla/stream_executor/device_description.h"
46#include "xla/stream_executor/device_memory.h"
47#include "xla/stream_executor/event.h"
48#include "xla/stream_executor/executor_cache.h"
49#include "xla/stream_executor/generic_memory_allocation.h"
50#include "xla/stream_executor/generic_memory_allocator.h"
51#include "xla/stream_executor/memory_allocation.h"
52#include "xla/stream_executor/memory_allocator.h"
53#include "xla/stream_executor/memory_space.h"
54#include "xla/stream_executor/platform.h"
55#include "xla/stream_executor/platform_manager.h"
56#include "xla/stream_executor/stream.h"
57#include "xla/stream_executor/stream_executor.h"
58#include "xla/stream_executor/stream_executor_common.h"
59#include "xla/tsl/platform/errors.h"
60#include "xla/tsl/platform/status.h"
61#include "xla/tsl/platform/statusor.h"
62#include "tensorflow/core/common_runtime/device/device_utils.h"
63#include "tensorflow/core/platform/env.h"
64#include "tensorflow/core/platform/stringpiece.h"
65
66using tensorflow::StatusFromTF_Status;
67