diff --git a/checkin_notes b/checkin_notes index 3ef9fae45f..574b5f7ee5 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4175,3 +4175,9 @@ David 24 Apr 2009 lib/ coproc.cpp + +David 24 Apr 2009 + - fix typo in compare_cuda() + + lib/ + coproc.cpp diff --git a/lib/coproc.cpp b/lib/coproc.cpp index afe10d6634..3c9cf522aa 100644 --- a/lib/coproc.cpp +++ b/lib/coproc.cpp @@ -155,7 +155,7 @@ int cuda_compare(COPROC_CUDA& c1, COPROC_CUDA& c2, bool ignore_flops) { if (c1.prop.totalGlobalMem < c2.prop.totalGlobalMem) return -1; if (ignore_flops) return 0; double s1 = c1.flops_estimate(); - double s2 = c1.flops_estimate(); + double s2 = c2.flops_estimate(); if (s1 > s2) return 1; if (s1 < s2) return -1; return 0;