소스 검색

explicit when the performance model for the bus is being calibrated

Samuel Thibault 15 년 전
부모
커밋
539c875220
1개의 변경된 파일9개의 추가작업 그리고 4개의 파일을 삭제
  1. 9 4
      src/core/perfmodel/perfmodel_bus.c

+ 9 - 4
src/core/perfmodel/perfmodel_bus.c

@@ -810,7 +810,9 @@ static void check_bus_config_file()
         get_config_path(path, 256);
         res = access(path, F_OK);
         if (res) {
-                starpu_force_bus_sampling();
+		fprintf(stderr, "No performance model for the bus, calibrating...");
+		starpu_force_bus_sampling();
+		fprintf(stderr, "done\n");
         }
         else {
                 FILE *f;
@@ -844,16 +846,19 @@ static void check_bus_config_file()
 
                 // Checking if both configurations match
                 if (read_cpus != ncpus) {
-                        fprintf(stderr, "Current configuration does not match the performance model (CPUS: %d != %d)\n", read_cpus, ncpus);
+			fprintf(stderr, "Current configuration does not match the performance model (CPUS: %d != %d), recalibrating...", read_cpus, ncpus);
                         starpu_force_bus_sampling();
+			fprintf(stderr, "done\n");
                 }
                 else if (read_cuda != ncuda) {
-                        fprintf(stderr, "Current configuration does not match the performance model (CUDA: %d != %d)\n", read_cuda, ncuda);
+                        fprintf(stderr, "Current configuration does not match the performance model (CUDA: %d != %d), recalibrating...", read_cuda, ncuda);
                         starpu_force_bus_sampling();
+			fprintf(stderr, "done\n");
                 }
                 else if (read_opencl != nopencl) {
-                        fprintf(stderr, "Current configuration does not match the performance model (OpenCL: %d != %d)\n", read_opencl, nopencl);
+                        fprintf(stderr, "Current configuration does not match the performance model (OpenCL: %d != %d), recalibrating...", read_opencl, nopencl);
                         starpu_force_bus_sampling();
+			fprintf(stderr, "done\n");
                 }
         }
 }