Explorar o código

src/sched_policies/work_stealing_policy.c: only define struct locality_entry when needed

Nathalie Furmento %!s(int64=8) %!d(string=hai) anos
pai
achega
afa7a0fc8e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/sched_policies/work_stealing_policy.c

+ 2 - 0
src/sched_policies/work_stealing_policy.c

@@ -60,12 +60,14 @@
 #define MAX_LOCALITY 8
 
 /* Entry for queued_tasks_per_data: records that a queued task is accessing the data with locality flag */
+#ifdef USE_LOCALITY_TASKS
 struct locality_entry
 {
 	UT_hash_handle hh;
 	starpu_data_handle_t data;
 	struct starpu_task *task;
 };
+#endif
 
 struct _starpu_work_stealing_data_per_worker
 {