Class PlatformValidator

Class Documentation

class PlatformValidator

Public Functions

PlatformValidator()
void setRuntime(DlSystem::Runtime_t runtime, bool unsignedPD = true)

Sets the runtime processor for compatibility check.

Parameters
  • runtime[in] : Runtime to be set

  • unsignedPD[in] : Bool value to set unsignedPD as true or false. By default, true

Returns

Void

bool isRuntimeAvailable(bool unsignedPD = true)

Checks if the Runtime prerequisites for SNPE are available.

Parameters

unsignedPD[in] : Bool value to indicate if unsignedPD is true or false. By default true

Returns

1 if the Runtime prerequisites are available, else 0.

std::string getCoreVersion()

Returns the core version for the Runtime selected.

Returns

char* which contains the actual core version value

std::string getLibVersion()

Returns the library version for the Runtime selected.

Returns

char* which contains the actual lib version value

bool runtimeCheck(bool unsignedPD = true)

Runs a small program on the runtime and Checks if SNPE is supported for Runtime.

Parameters

unsignedPD[in] : Bool value to indicate if unsignedPD is true or false. By default true

Returns

If 1, the device is ready for SNPE execution, else return 0.