Browse Source

minor fixes for warnings detected by Intel Compiler

Nathalie Furmento 14 years ago
parent
commit
e3745b51da

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

@@ -386,12 +386,12 @@ static void measure_bandwidth_between_host_and_dev(int dev, double *dev_timing_h
 
 		double bandwidth_sum2 = bandwidth_dtoh*bandwidth_dtoh + bandwidth_htod*bandwidth_htod;
 
-		_STARPU_DISP("BANDWIDTH GPU %d CPU %d - htod %lf - dtoh %lf - %lf\n", dev, current_cpu, bandwidth_htod, bandwidth_dtoh, sqrt(bandwidth_sum2));
+		_STARPU_DISP("BANDWIDTH GPU %d CPU %u - htod %lf - dtoh %lf - %lf\n", dev, current_cpu, bandwidth_htod, bandwidth_dtoh, sqrt(bandwidth_sum2));
 	}
 
 	unsigned best_cpu = dev_timing_per_cpu[(dev+1)*MAXCPUS+0].cpu_id;
 
-	_STARPU_DISP("BANDWIDTH GPU %d BEST CPU %d\n", dev, best_cpu);
+	_STARPU_DISP("BANDWIDTH GPU %d BEST CPU %u\n", dev, best_cpu);
 #endif
 
 	/* The results are sorted in a decreasing order, so that the best

+ 1 - 1
src/core/workers.c

@@ -162,7 +162,7 @@ static void _starpu_launch_drivers(struct starpu_machine_config_s *config)
 	
 		workerarg->status = STATUS_INITIALIZING;
 
-		_STARPU_DEBUG("initialising worker %d\n", worker);
+		_STARPU_DEBUG("initialising worker %u\n", worker);
 
 		_starpu_init_worker_queue(workerarg);
 

+ 0 - 1
src/datawizard/filters.c

@@ -194,7 +194,6 @@ void starpu_data_partition(starpu_data_handle initial_handle, struct starpu_data
 		unsigned worker;
 		for (worker = 0; worker < nworkers; worker++)
 		{
-			unsigned node;
 			struct starpu_data_replicate_s *child_replicate;
 			child_replicate = &child->per_worker[worker];
 			

+ 3 - 2
src/datawizard/interfaces/csr_interface.c

@@ -472,7 +472,7 @@ static int copy_cuda_common_async(void *src_interface, unsigned src_node __attri
 	}
 }
 
-static int copy_cuda_peer(void *src_interface, unsigned src_node __attribute__((unused)), void *dst_interface, unsigned dst_node __attribute__((unused)))
+static int copy_cuda_peer(void *src_interface __attribute__((unused)), unsigned src_node __attribute__((unused)), void *dst_interface __attribute__((unused)), unsigned dst_node __attribute__((unused)))
 {
 #ifdef HAVE_CUDA_MEMCPY_PEER
 	starpu_csr_interface_t *src_csr = src_interface;
@@ -508,7 +508,8 @@ static int copy_cuda_peer(void *src_interface, unsigned src_node __attribute__((
 #endif
 }
 
-static int copy_cuda_peer_async(void *src_interface, unsigned src_node __attribute__((unused)), void *dst_interface, unsigned dst_node __attribute__((unused)), cudaStream_t stream)
+static int copy_cuda_peer_async(void *src_interface __attribute__((unused)), unsigned src_node __attribute__((unused)),
+				void *dst_interface __attribute__((unused)), unsigned dst_node __attribute__((unused)), cudaStream_t stream __attribute__((unused)))
 {
 #ifdef HAVE_CUDA_MEMCPY_PEER
 	starpu_csr_interface_t *src_csr = src_interface;

+ 0 - 1
src/datawizard/interfaces/data_interface.c

@@ -162,7 +162,6 @@ static void _starpu_register_new_data(starpu_data_handle handle,
 	unsigned nworkers = starpu_worker_get_count();
 	for (worker = 0; worker < nworkers; worker++)
 	{
-		unsigned node;
 		struct starpu_data_replicate_s *replicate;
 		replicate = &handle->per_worker[worker];
 		replicate->allocated = 0;