~ubuntu-branches/ubuntu/saucy/starpu-contrib/saucy

« back to all changes in this revision

Viewing changes to src/core/perfmodel/perfmodel_bus.c

  • Committer: Package Import Robot
  • Author(s): Logan Rosen
  • Date: 2013-07-12 23:10:36 UTC
  • mfrom: (7.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130712231036-idxuyf8ed54d4zft
Tags: 1.0.1-4ubuntu1
* Merge from Debian unstable. Remaining changes:
  - debian/control: Build-depend on nvidia-current | nvidia-current-updates
    rather than libcuda1 to fix FTBFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
334
334
        double right_dtoh = right->timing_dtoh;
335
335
        double right_htod = right->timing_htod;
336
336
 
337
 
        double bandwidth_sum2_left = left_dtoh*left_dtoh + left_htod*left_htod;
338
 
        double bandwidth_sum2_right = right_dtoh*right_dtoh + right_htod*right_htod;
 
337
        double timing_sum2_left = left_dtoh*left_dtoh + left_htod*left_htod;
 
338
        double timing_sum2_right = right_dtoh*right_dtoh + right_htod*right_htod;
339
339
 
340
340
        /* it's for a decreasing sorting */
341
 
        return (bandwidth_sum2_left < bandwidth_sum2_right);
 
341
        return (timing_sum2_left > timing_sum2_right);
342
342
}
343
343
 
344
344
#ifdef STARPU_HAVE_HWLOC