From 8f97e2448dc1df374f5ec28457da047d6db3121b Mon Sep 17 00:00:00 2001 From: Benoit Steiner <benoit.steiner.goog@gmail.com> Date: Wed, 2 Nov 2016 19:37:49 -0700 Subject: [PATCH] Register the sycl device under the '/device:SYCL:id' name so that its name follow the standard naming convention for devices --- tensorflow/core/common_runtime/sycl/sycl_device_factory.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/core/common_runtime/sycl/sycl_device_factory.cc b/tensorflow/core/common_runtime/sycl/sycl_device_factory.cc index 6de97715283..97c4c2c236e 100644 --- a/tensorflow/core/common_runtime/sycl/sycl_device_factory.cc +++ b/tensorflow/core/common_runtime/sycl/sycl_device_factory.cc @@ -29,7 +29,7 @@ class SYCLDeviceFactory : public DeviceFactory { n = iter->second; } for (int i = 0; i < n; i++) { - string name = strings::StrCat(name_prefix, "/sycl:", i); + string name = strings::StrCat(name_prefix, "/device:SYCL:", i); devices->push_back(new SYCLDevice( options, name, Bytes(256 << 20), DeviceLocality(), SYCLDevice::GetShortDeviceDescription(), cpu_allocator()));