* remove ov::device::thermal ov::device::thermal was only supported on myriad * additional cleanup * remove myriad from AUTO and MULTI auto n multi n hetero + remove mentions of listing myriad devices * two final fixes * Update ov_auto.py --------- Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
18 lines
543 B
C++
18 lines
543 B
C++
#include <openvino/openvino.hpp>
|
|
|
|
int main() {
|
|
//! [part3]
|
|
ov::Core core;
|
|
std::vector<std::string> GPUDevices = core.get_property("GPU", ov::available_devices);
|
|
std::string all_devices;
|
|
for (size_t i = 0; i < GPUDevices.size(); ++i) {
|
|
all_devices += std::string("GPU.")
|
|
+ GPUDevices[i]
|
|
+ std::string(i < (GPUDevices.size() -1) ? "," : "");
|
|
}
|
|
ov::CompiledModel compileModel = core.compile_model("sample.xml", "MULTI",
|
|
ov::device::priorities(all_devices));
|
|
//! [part3]
|
|
return 0;
|
|
}
|