未验证 提交 8b6089ae 编写于 作者: C chen qingxiang 提交者: GitHub

fix gpu check bug (#3866)

* fix gpu check bug
Signed-off-by: Ngodchen0212 <qingxiang.chen@zilliz.com>

* format code
Signed-off-by: Ngodchen0212 <qingxiang.chen@zilliz.com>
上级 b2386626
......@@ -188,11 +188,7 @@ GpuChecker::CheckGpuEnvironment() {
char device_name[NVML_DEVICE_NAME_BUFFER_SIZE];
int major, minor;
for (uint32_t i = 0; i < device_count; i++) {
if (gpu_sets.find(i) == gpu_sets.end()) {
continue;
}
for (uint32_t i = 0; i < gpu_sets.size(); i++) {
nvmlDevice_t device;
nvmlresult = nvmlDeviceGetHandleByIndex(i, &device);
fiu_do_on("GpuChecker.CheckGpuEnvironment.nvml_get_device_handle_fail", nvmlresult = NVML_ERROR_UNKNOWN);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册