Browse Source

fix debug code

Cédric Augonnet 15 years ago
parent
commit
d4c76f3f46

+ 2 - 8
src/core/perfmodel/perfmodel_bus.c

@@ -149,8 +149,6 @@ static void measure_bandwith_between_host_and_dev(int dev, unsigned ncores)
 			compar_cudadev_timing);
 	
 #ifdef VERBOSE
-	/* find the best candidate(s) */
-	unsigned best_core = 0;
 	for (core = 0; core < ncores; core++)
 	{
 		unsigned current_core = cudadev_timing_per_cpu[dev+1][core].cpu_id;
@@ -160,14 +158,10 @@ static void measure_bandwith_between_host_and_dev(int dev, unsigned ncores)
 		double bandwith_sum2 = bandwith_dtoh*bandwith_dtoh + bandwith_htod*bandwith_htod;
 
 		fprintf(stderr, "BANDWITH GPU %d CPU %d - htod %lf - dtoh %lf - %lf\n", dev, current_core, bandwith_htod, bandwith_dtoh, sqrt(bandwith_sum2));
-
-		if (bandwith_sum2 > best_bandwith_sum2)
-		{
-			best_bandwith_sum2 = bandwith_sum2;
-			best_core = current_core;
-		}
 	}
 
+	unsigned best_core = cudadev_timing_per_cpu[dev+1][0].cpu_id;
+
 	fprintf(stderr, "BANDWITH GPU %d BEST CPU %d\n", dev, best_core);
 #endif
 

+ 1 - 1
src/core/policies/deque-modeling-policy-data-aware.c

@@ -108,7 +108,7 @@ static int _dmda_push_task(struct jobq_s *q __attribute__ ((unused)) , job_t j,
 	}
 
 	double alpha = 1.0;
-	double beta = 1.0;
+	double beta = 40.0;
 
 	double best_fitness = -1;