Register the sycl device under the '/device:SYCL:id' name so that its name follow the standard naming convention for devices

This commit is contained in:
Benoit Steiner 2016-11-02 19:37:49 -07:00
parent 90113e739c
commit 8f97e2448d

View File

@ -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()));