Explorar el Código

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

Samuel Thibault hace 15 años
padre
commit
08b2262cc2
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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);
 	}