Add ListPhysicalDevices to SYCLDeviceFactory

PiperOrigin-RevId: 243620212
This commit is contained in:
Gaurav Jain 2019-04-15 08:29:44 -07:00 committed by TensorFlower Gardener
parent 221a5146df
commit e656cf4837

View File

@ -24,8 +24,12 @@ namespace tensorflow {
class SYCLDeviceFactory : public DeviceFactory {
public:
Status CreateDevices(const SessionOptions &options, const string &name_prefix,
std::vector<Device *> *devices) override {
Status ListPhysicalDevices(std::vector<string>* devices) override {
return tensorflow::Status::OK();
}
Status CreateDevices(const SessionOptions& options, const string& name_prefix,
std::vector<std::unique_ptr<Device>>* devices) override {
auto syclInterface = GSYCLInterface::instance();
size_t n = 1;