bes-dev / stable_diffusion.openvino

Apache License 2.0
1.54k stars 205 forks source link

update help message to show GPU.1 as an argument #123

Closed isanghao closed 1 year ago

brmarkus commented 1 year ago

Some of the (C++) OpenVINO samples do print the "real" available devices (with the help-page), like via:

inline void showAvailableDevices() {
    ov::Core core;
    std::vector<std::string> devices = core.get_available_devices();

    std::cout << std::endl;
    std::cout << "Available target devices:";
    for (const auto& device : devices) {
        std::cout << "  " << device;
    }
    std::cout << std::endl;
}
isanghao commented 1 year ago

Some of the (C++) OpenVINO samples do print the "real" available devices (with the help-page), like via:

inline void showAvailableDevices() {
    ov::Core core;
    std::vector<std::string> devices = core.get_available_devices();

    std::cout << std::endl;
    std::cout << "Available target devices:";
    for (const auto& device : devices) {
        std::cout << "  " << device;
    }
    std::cout << std::endl;
}
isanghao commented 1 year ago

Some of the (C++) OpenVINO samples do print the "real" available devices (with the help-page), like via:

inline void showAvailableDevices() {
    ov::Core core;
    std::vector<std::string> devices = core.get_available_devices();

    std::cout << std::endl;
    std::cout << "Available target devices:";
    for (const auto& device : devices) {
        std::cout << "  " << device;
    }
    std::cout << std::endl;
}

@brmarkus Thanks for the comment, updated.

isanghao commented 1 year ago

@brmarkus PR is updated to a new one: https://github.com/bes-dev/stable_diffusion.openvino/pull/124