diff options
Diffstat (limited to 'tensorflow/core/common_runtime/sycl/sycl_device.h')
-rw-r--r-- | tensorflow/core/common_runtime/sycl/sycl_device.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tensorflow/core/common_runtime/sycl/sycl_device.h b/tensorflow/core/common_runtime/sycl/sycl_device.h index d3b3db2a71..2759053df5 100644 --- a/tensorflow/core/common_runtime/sycl/sycl_device.h +++ b/tensorflow/core/common_runtime/sycl/sycl_device.h @@ -22,7 +22,6 @@ limitations under the License. #define EIGEN_USE_SYCL -#include "tensorflow/core/common_runtime/device_factory.h" #include "tensorflow/core/common_runtime/local_device.h" #include "tensorflow/core/common_runtime/sycl/sycl_allocator.h" #include "tensorflow/core/common_runtime/sycl/sycl_device_context.h" @@ -30,7 +29,6 @@ limitations under the License. namespace tensorflow { - class SYCLDevice : public LocalDevice { public: template <typename SYCLSelector> @@ -42,8 +40,9 @@ public: name, DEVICE_SYCL, memory_limit, locality, physical_device_desc), nullptr), cpu_allocator_(cpu_allocator), - sycl_device_(new Eigen::SyclDevice(sycl_selector)), - sycl_allocator_(new SYCLAllocator(sycl_device_)), + sycl_queue_(new Eigen::QueueInterface(sycl_selector)), + sycl_device_(new Eigen::SyclDevice(sycl_queue_)), + sycl_allocator_(new SYCLAllocator(sycl_queue_)), device_context_(new SYCLDeviceContext()) { set_eigen_sycl_device(sycl_device_); } @@ -59,16 +58,17 @@ public: Status FillContextMap(const Graph *graph, DeviceContextMap *device_context_map) override; - Status Sync() override { return Status::OK(); } + Status Sync() override; static string GetShortDeviceDescription(/*int device_id, const DeviceDescription& desc*/) { return strings::StrCat("device: 0, name SYCL, pci bus id: 0"); } private: - Allocator *cpu_allocator_; // owned - Eigen::SyclDevice* sycl_device_; // owned - SYCLAllocator *sycl_allocator_; // owned + Allocator *cpu_allocator_; // owned + Eigen::QueueInterface* sycl_queue_; // owned + Eigen::SyclDevice* sycl_device_; // owned + SYCLAllocator *sycl_allocator_; // owned SYCLDeviceContext *device_context_; }; |