Skip to content

Commit a35b1be

Browse files
committed
remove plugin-level getDeviceUid()
1 parent c2464ee commit a35b1be

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

offload/plugins-nextgen/common/include/PluginInterface.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,12 +1294,6 @@ struct GenericPluginTy {
12941294

12951295
return *Devices[DeviceId];
12961296
}
1297-
const GenericDeviceTy &getDevice(int32_t DeviceId) const {
1298-
assert(isValidDeviceId(DeviceId) && "Invalid device id");
1299-
assert(Devices[DeviceId] && "Device is uninitialized");
1300-
1301-
return *Devices[DeviceId];
1302-
}
13031297

13041298
/// Get the number of active devices.
13051299
int32_t getNumDevices() const { return NumDevices; }
@@ -1310,11 +1304,6 @@ struct GenericPluginTy {
13101304
return UserDeviceIds.at(DeviceId);
13111305
}
13121306

1313-
/// Get the UID for the given device.
1314-
const char *getDeviceUid(int32_t DeviceId) const {
1315-
return getDevice(DeviceId).getDeviceUid();
1316-
}
1317-
13181307
/// Get the UID for the host device.
13191308
static constexpr const char *getHostDeviceUid() { return "HOST"; }
13201309

0 commit comments

Comments
 (0)