浏览代码

Force model calibration when it isn't but is being used. Also tell the user about STARPU_CALIBRATE

Samuel Thibault 15 年之前
父节点
当前提交
08b2262cc2
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/core/perfmodel/perfmodel_history.c

+ 4 - 0
src/core/perfmodel/perfmodel_history.c

@@ -397,6 +397,10 @@ static void load_history_based_model(struct starpu_perfmodel_t *model, unsigned
 #ifdef STARPU_VERBOSE
 		fprintf(stderr, "File does not exists\n");
 #endif
+		if (!calibrate_flag) {
+			fprintf(stderr, "Warning: model %s is not calibrated, forcing calibration for this run. Use the STARPU_CALIBRATE environment variable to control this.\n", model->symbol);
+			model->benchmarking = 1;
+		}
 		initialize_model(model);
 	}