diff --git a/projects/amdsmi/rocm_smi/src/rocm_smi_kfd.cc b/projects/amdsmi/rocm_smi/src/rocm_smi_kfd.cc index 86ffc315b6..c0960f5a5f 100644 --- a/projects/amdsmi/rocm_smi/src/rocm_smi_kfd.cc +++ b/projects/amdsmi/rocm_smi/src/rocm_smi_kfd.cc @@ -709,7 +709,7 @@ KFDNode::Initialize(void) { node_to = it->first; link = it->second; ret = ReadKFDGpuId(node_to, &node_to_gpu_id); - if (ret) {return ret;} + if (ret) {continue;} if (node_to_gpu_id == 0) { // CPU node if (numa_node_found) { if (numa_node_weight_ > link->weight()) {