Browse Source

Disable checking races for queue statistics

Samuel Thibault 4 years ago
parent
commit
460042886f
2 changed files with 6 additions and 0 deletions
  1. 3 0
      src/sched_policies/fifo_queues.c
  2. 3 0
      src/sched_policies/prio_deque.h

+ 3 - 0
src/sched_policies/fifo_queues.c

@@ -60,6 +60,9 @@ void _starpu_init_fifo(struct _starpu_fifo_taskq *fifo)
 	fifo->exp_end = fifo->exp_start;
 	fifo->exp_end = fifo->exp_start;
 	fifo->exp_len_per_priority = NULL;
 	fifo->exp_len_per_priority = NULL;
 	fifo->pipeline_len = 0.0;
 	fifo->pipeline_len = 0.0;
+	STARPU_HG_DISABLE_CHECKING(fifo->exp_start);
+	STARPU_HG_DISABLE_CHECKING(fifo->exp_len);
+	STARPU_HG_DISABLE_CHECKING(fifo->exp_end);
 }
 }
 
 
 struct _starpu_fifo_taskq *_starpu_create_fifo(void)
 struct _starpu_fifo_taskq *_starpu_create_fifo(void)

+ 3 - 0
src/sched_policies/prio_deque.h

@@ -39,6 +39,9 @@ static inline void _starpu_prio_deque_init(struct _starpu_prio_deque *pdeque)
 {
 {
 	memset(pdeque,0,sizeof(*pdeque));
 	memset(pdeque,0,sizeof(*pdeque));
 	starpu_task_prio_list_init(&pdeque->list);
 	starpu_task_prio_list_init(&pdeque->list);
+	STARPU_HG_DISABLE_CHECKING(pdeque->exp_start);
+	STARPU_HG_DISABLE_CHECKING(pdeque->exp_end);
+	STARPU_HG_DISABLE_CHECKING(pdeque->exp_len);
 }
 }
 
 
 static inline void _starpu_prio_deque_destroy(struct _starpu_prio_deque *pdeque)
 static inline void _starpu_prio_deque_destroy(struct _starpu_prio_deque *pdeque)