aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/service_executable_run_options.h
diff options
context:
space:
mode:
authorGravatar Justin Lebar <jlebar@google.com>2018-04-17 21:04:35 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-04-17 21:07:05 -0700
commitd77a621a571d8ab0d69f2682586674e6dff4ec4e (patch)
tree08b29db3c5889725a596b25928aa2ea098be042a /tensorflow/compiler/xla/service/service_executable_run_options.h
parent41e2cd187b31e9e6d88bc042e21e73f7be0ed729 (diff)
[XLA] Convert XLA to use xla::se as a namespace alias for ::stream_executor.
PiperOrigin-RevId: 193301997
Diffstat (limited to 'tensorflow/compiler/xla/service/service_executable_run_options.h')
-rw-r--r--tensorflow/compiler/xla/service/service_executable_run_options.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/tensorflow/compiler/xla/service/service_executable_run_options.h b/tensorflow/compiler/xla/service/service_executable_run_options.h
index 6c1f8feac7..7f3910cdb0 100644
--- a/tensorflow/compiler/xla/service/service_executable_run_options.h
+++ b/tensorflow/compiler/xla/service/service_executable_run_options.h
@@ -28,7 +28,7 @@ namespace xla {
class ServiceExecutableRunOptions {
public:
using StreamBorrower =
- std::function<StatusOr<Pool<perftools::gputools::Stream>::SmartPtr>(int)>;
+ std::function<StatusOr<Pool<se::Stream>::SmartPtr>(int)>;
ServiceExecutableRunOptions()
: ServiceExecutableRunOptions(ExecutableRunOptions()) {}
@@ -45,14 +45,13 @@ class ServiceExecutableRunOptions {
ExecutableRunOptions* mutable_run_options() { return &run_options_; }
// Delegate to `ExecutableRunOptions` member.
- perftools::gputools::Stream* stream() const { return run_options_.stream(); }
+ se::Stream* stream() const { return run_options_.stream(); }
DeviceMemoryAllocator* allocator() const { return run_options_.allocator(); }
int device_ordinal() const { return run_options_.device_ordinal(); }
// Borrows a stream and returns a smart pointer which returns the stream on
// destruction.
- StatusOr<Pool<perftools::gputools::Stream>::SmartPtr> BorrowStream(
- int device_ordinal) const {
+ StatusOr<Pool<se::Stream>::SmartPtr> BorrowStream(int device_ordinal) const {
return borrow_stream_
? borrow_stream_(device_ordinal)
: Status(tensorflow::error::UNIMPLEMENTED, "No stream cache");