Skip to content

Commit

Permalink
[src] stop at first successful gpu select (fix bug from #3750) (#3776)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovbraun authored and danpovey committed Dec 18, 2019
1 parent b5bcf2f commit ba92f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cudamatrix/cu-device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ bool CuDevice::SelectGpuIdAuto() {
success = SelectGpuId(dev_id);

max_id++;
} while (success && (max_id < free_mem_ratio.size()));
} while (!success && (max_id < free_mem_ratio.size()));

if (e != cudaSuccess) {
KALDI_WARN << "Failed to (automatically) select any device";
Expand Down

0 comments on commit ba92f60

Please sign in to comment.