浏览代码

glpk doesn't seem to like infinity, rather use a million seconds

Samuel Thibault 14 年之前
父节点
当前提交
9ec8eff128
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/profiling/bound.c

+ 1 - 1
src/profiling/bound.c

@@ -714,7 +714,7 @@ static glp_prob *_starpu_bound_glp_resolve(void)
 				ia[n] = w+1;
 				ia[n] = w+1;
 				ja[n] = colnum(w, t);
 				ja[n] = colnum(w, t);
 				if (times[w][t] == -1.)
 				if (times[w][t] == -1.)
-					ar[n] = INFINITY;
+					ar[n] = 1000000000.;
 				else
 				else
 					ar[n] = times[w][t];
 					ar[n] = times[w][t];
 				n++;
 				n++;