tf_gpu_runtime_wrappers.cc
imports tensorflow/core/platform/logging.himports tensorflow/core/platform/mutex.h
SHA-25676912c3fe0cf1bccb45ce9c9fc699ebd59ff044b8b10e9c987f4c9ef999320cf
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==============================================================================*/
15
16#include "tensorflow/compiler/mlir/tools/kernel_gen/tf_gpu_runtime_wrappers.h"
17
18#include <cassert>
19#include <cstdint>
20#include <string>
21
22#include "absl/container/flat_hash_map.h"
23#include "absl/status/status.h"
24#include "absl/strings/str_cat.h"
25#include "xla/stream_executor/stream.h"
26#include "tensorflow/core/framework/op_kernel.h"
27#include "tensorflow/core/framework/op_requires.h"
28#include "tensorflow/core/platform/logging.h"
29#include "tensorflow/core/platform/mutex.h"
30#include "tensorflow/core/platform/refcount.h"
31#include "tensorflow/core/platform/status.h"
32
33#if GOOGLE_CUDA
34#include "third_party/gpus/cuda/include/cuda.h"
35#endif
36
37static void ReportInternalError(tensorflow::OpKernelContext *ctx,
38 …
131:39… ensorFlow runtime and CUDA (or ROCm)
132// library that allows launching a kernel on the current device and stream from
133// a binary blob for the module …