Browse Source

Disabling helgrind warnings about warning flags

Samuel Thibault 4 years ago
parent
commit
378f8f2309

+ 1 - 0
src/datawizard/copy_driver.c

@@ -274,6 +274,7 @@ void starpu_interface_end_driver_copy_async(unsigned src_node, unsigned dst_node
 	if (elapsed > 300)
 	{
 		static int warned = 0;
+		STARPU_HG_DISABLE_CHECKING(warned);
 		if (!warned)
 		{
 			char src_name[16], dst_name[16];

+ 2 - 0
src/datawizard/memalloc.c

@@ -1068,6 +1068,7 @@ size_t _starpu_memory_reclaim_generic(unsigned node, unsigned force, size_t recl
 	if (reclaim && !force)
 	{
 		static unsigned warned;
+		STARPU_HG_DISABLE_CHECKING(warned);
 		if (!warned)
 		{
 			if (STARPU_ATOMIC_ADD(&warned, 1) == 1)
@@ -1290,6 +1291,7 @@ void starpu_memchunk_tidy(unsigned node)
 		goto out;
 
 	static unsigned warned;
+	STARPU_HG_DISABLE_CHECKING(warned);
 	if (!warned)
 	{
 		if (STARPU_ATOMIC_ADD(&warned, 1) == 1)

+ 1 - 0
src/datawizard/reduction.c

@@ -289,6 +289,7 @@ void _starpu_data_end_reduction_mode(starpu_data_handle_t handle)
 					if (!(STARPU_CODELET_GET_MODE(redux_task->cl, 0) & STARPU_COMMUTE))
 					{
 						static int warned;
+						STARPU_HG_DISABLE_CHECKING(warned);
 						if (!warned)
 						{
 							warned = 1;

+ 1 - 0
src/sched_policies/component_fifo.c

@@ -108,6 +108,7 @@ static int fifo_push_local_task(struct starpu_sched_component * component, struc
 		if (!is_pushback && data->exp_len_threshold != 0.0 && exp_len >= data->exp_len_threshold)
 		{
 			static int warned;
+			STARPU_HG_DISABLE_CHECKING(warned);
 			if(data->exp_len_threshold != 0.0 && task->predicted > data->exp_len_threshold && !warned)
 			{
 				_STARPU_DISP("Warning : a predicted task length (%lf) exceeds the expected length threshold (%lf) of a prio component queue, you should reconsider the value of this threshold. This message will not be printed again for further thresholds exceeding.\n",task->predicted,data->exp_len_threshold);

+ 1 - 0
src/sched_policies/component_perfmodel_select.c

@@ -46,6 +46,7 @@ static int perfmodel_select_push_task(struct starpu_sched_component * component,
 		if(isnan(length))
 		{
 			static int warned;
+			STARPU_HG_DISABLE_CHECKING(warned);
 			if (!warned)
 			{
 				warned = 1;

+ 1 - 0
src/sched_policies/component_prio.c

@@ -129,6 +129,7 @@ static int prio_push_local_task(struct starpu_sched_component * component, struc
 		if (!is_pushback && data->exp_len_threshold != 0.0 && exp_len >= data->exp_len_threshold)
 		{
 			static int warned;
+			STARPU_HG_DISABLE_CHECKING(warned);
 			if(data->exp_len_threshold != 0.0 && task->predicted > data->exp_len_threshold && !warned)
 			{
 				_STARPU_DISP("Warning : a predicted task length (%lf) exceeds the expected length threshold (%lf) of a prio component queue, you should reconsider the value of this threshold. This message will not be printed again for further thresholds exceeding.\n",task->predicted,data->exp_len_threshold);

+ 1 - 0
src/sched_policies/graph_test_policy.c

@@ -118,6 +118,7 @@ static struct _starpu_prio_deque *select_prio(unsigned sched_ctx_id, struct _sta
 			if (!task->cl || task->cl->model == NULL)
 			{
 				static unsigned _warned;
+				STARPU_HG_DISABLE_CHECKING(_warned);
 				if (STARPU_ATOMIC_ADD(&_warned, 1) == 1)
 				{
 					_STARPU_DISP("Warning: graph_test needs performance models for all tasks, including %s\n",

+ 1 - 0
src/sched_policies/parallel_heft.c

@@ -365,6 +365,7 @@ static int _parallel_heft_push_task(struct starpu_task *task, unsigned prio, uns
 			if (isnan(local_task_length[worker_ctx][nimpl]))
 			{
 				static int warned;
+				STARPU_HG_DISABLE_CHECKING(warned);
 				if (!warned)
 				{
 					warned = 1;

+ 1 - 0
src/util/starpu_clusters_create.c

@@ -736,6 +736,7 @@ void _starpu_cluster(struct _starpu_cluster_group *group)
 
 		if (size > 1)
 		{
+			STARPU_HG_DISABLE_CHECKING(starpu_cluster_warned);
 			if (!starpu_cluster_warned)
 			{
 				_STARPU_DISP("STARPU CLUSTERS: Caution! It seems that you have"