                     if (major == best_SM_arch)                     {                         max_compute_perf  = compute_perf;                         max_perf_device   = current_device;                     }                 }                 else                 {                     max_compute_perf  = compute_perf;                     max_perf_device   = current_device;                 }             }         }          ++current_device;     }      return max_perf_device; }  // 