Add ListPhysicalDevices to SYCLDeviceFactory
PiperOrigin-RevId: 243620212
This commit is contained in:
parent
221a5146df
commit
e656cf4837
@ -24,8 +24,12 @@ namespace tensorflow {
|
|||||||
|
|
||||||
class SYCLDeviceFactory : public DeviceFactory {
|
class SYCLDeviceFactory : public DeviceFactory {
|
||||||
public:
|
public:
|
||||||
|
Status ListPhysicalDevices(std::vector<string>* devices) override {
|
||||||
|
return tensorflow::Status::OK();
|
||||||
|
}
|
||||||
|
|
||||||
Status CreateDevices(const SessionOptions& options, const string& name_prefix,
|
Status CreateDevices(const SessionOptions& options, const string& name_prefix,
|
||||||
std::vector<Device *> *devices) override {
|
std::vector<std::unique_ptr<Device>>* devices) override {
|
||||||
auto syclInterface = GSYCLInterface::instance();
|
auto syclInterface = GSYCLInterface::instance();
|
||||||
|
|
||||||
size_t n = 1;
|
size_t n = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user