diff --git a/lib/coproc.h b/lib/coproc.h index caf476381d..b758d6958c 100644 --- a/lib/coproc.h +++ b/lib/coproc.h @@ -129,6 +129,7 @@ struct PCI_INFO { int device_id; int domain_id; + PCI_INFO(): present(false), bus_id(0), device_id(0),domain_id(0) {} void write(MIOFILE&); int parse(XML_PARSER&); }; @@ -214,11 +215,13 @@ struct COPROC { device_nums[i] = 0; instance_has_opencl[i] = false; opencl_device_ids[i] = 0; - opencl_device_indexes[i] = 0; + opencl_device_indexes[i] = 0; running_graphics_app[i] = true; } + device_num = 0; memset(&opencl_prop, 0, sizeof(opencl_prop)); memset(&pci_info, 0, sizeof(pci_info)); + last_print_time = 0; } inline void clear_usage() { for (int i=0; i