From e656cf4837be75165ad749c14f7a4005bf0a0932 Mon Sep 17 00:00:00 2001 From: Gaurav Jain Date: Mon, 15 Apr 2019 08:29:44 -0700 Subject: [PATCH] Add ListPhysicalDevices to SYCLDeviceFactory PiperOrigin-RevId: 243620212 --- .../core/common_runtime/sycl/sycl_device_factory.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tensorflow/core/common_runtime/sycl/sycl_device_factory.cc b/tensorflow/core/common_runtime/sycl/sycl_device_factory.cc index 14f7727659d..ca575450279 100644 --- a/tensorflow/core/common_runtime/sycl/sycl_device_factory.cc +++ b/tensorflow/core/common_runtime/sycl/sycl_device_factory.cc @@ -24,8 +24,12 @@ namespace tensorflow { class SYCLDeviceFactory : public DeviceFactory { public: - Status CreateDevices(const SessionOptions &options, const string &name_prefix, - std::vector *devices) override { + Status ListPhysicalDevices(std::vector* devices) override { + return tensorflow::Status::OK(); + } + + Status CreateDevices(const SessionOptions& options, const string& name_prefix, + std::vector>* devices) override { auto syclInterface = GSYCLInterface::instance(); size_t n = 1;