switch (type & DEVICETYPE_MASK) {
case DEVICETYPE_TRIV2:
#ifdef ENABLE_EMUL
- return TrinityEmulAPI::getNumDevices ();
+ return TrinityEmulAPI::getNumDevices (type);
#else
return TrinityVision2API::getNumDevices ();
#endif
/** @brief Driver APIs for emulation */
class TrinityEmulAPI : public DriverAPI {
public:
- static int getNumDevices ();
+ static int getNumDevices (dev_type type);
TrinityEmulAPI (int dev_id, dev_type type);
~TrinityEmulAPI ();
}
switch (dev_type_) {
+ case dev_type::NPUCOND_TRIV2_CONN_UNKNOWN:
+ case dev_type::NPUCOND_TRIV2_CONN_SOCIP:
+ case dev_type::NPUCOND_TRIV23_CONN_UNKNOWN:
case dev_type::NPUCOND_TRIV23_CONN_SOCIP:
*dspm = TRIV23_DEFAULT_DSPM_SIZE;
break;
+ case dev_type::NPUCOND_TRIV24_CONN_UNKNOWN:
case dev_type::NPUCOND_TRIV24_CONN_SOCIP:
*dspm = TRIV24_DEFAULT_DSPM_SIZE;
break;
* @return number of available devices.
*/
int
-TrinityEmulAPI::getNumDevices () {
+TrinityEmulAPI::getNumDevices (dev_type type) {
return MAX_EMUL_DEVICES;
}