| 728 | }; |
| 729 | |
| 730 | struct backend_init_info { |
| 731 | size_t device_index; |
| 732 | size_t total_devices; |
| 733 | std::string device_name; |
| 734 | bool skipped = false; |
| 735 | std::string skip_reason; |
| 736 | std::string description; |
| 737 | size_t memory_total_mb = 0; |
| 738 | size_t memory_free_mb = 0; |
| 739 | bool has_memory_info = false; |
| 740 | |
| 741 | backend_init_info() = default; |
| 742 | |
| 743 | backend_init_info(size_t device_index, size_t total_devices, const std::string & device_name, bool skipped = false, |
| 744 | const std::string & skip_reason = "", const std::string & description = "", |
| 745 | size_t memory_total_mb = 0, size_t memory_free_mb = 0, bool has_memory_info = false) : |
| 746 | device_index(device_index), |
| 747 | total_devices(total_devices), |
| 748 | device_name(device_name), |
| 749 | skipped(skipped), |
| 750 | skip_reason(skip_reason), |
| 751 | description(description), |
| 752 | memory_total_mb(memory_total_mb), |
| 753 | memory_free_mb(memory_free_mb), |
| 754 | has_memory_info(has_memory_info) {} |
| 755 | }; |
| 756 | |
| 757 | struct backend_status_info { |
| 758 | std::string backend_name; |