30 #include <common/config.h> 31 #include <common/timing.h> 32 #include <common/fxt.h> 33 #include <common/thread.h> 34 #include <core/jobs.h> 35 #include <core/perfmodel/perfmodel.h> 36 #include <core/sched_policy.h> 37 #include <core/topology.h> 38 #include <core/errorcheck.h> 39 #include <core/sched_ctx.h> 40 #include <core/sched_ctx_list.h> 41 #include <core/simgrid.h> 42 #ifdef STARPU_HAVE_HWLOC 46 #include <core/drivers.h> 47 #include <drivers/cuda/driver_cuda.h> 48 #include <drivers/opencl/driver_opencl.h> 51 #include <drivers/mic/driver_mic_source.h> 54 #ifdef STARPU_USE_MPI_MASTER_SLAVE 55 #include <drivers/mpi/driver_mpi_source.h> 58 #include <drivers/cpu/driver_cpu.h> 60 #include <datawizard/datawizard.h> 62 #include <starpu_parameters.h> 64 #define STARPU_MAX_PIPELINE 4 66 enum initialization { UNINITIALIZED = 0, CHANGING, INITIALIZED };
68 struct _starpu_ctx_change_list;
73 starpu_pthread_mutex_t mutex;
74 enum starpu_worker_archtype arch;
76 struct starpu_perfmodel_arch perf_arch;
96 #ifdef STARPU_SPINLOCK_CHECK 97 const char *relax_on_file;
99 const char *relax_on_func;
100 const char *relax_off_file;
102 const char *relax_off_func;
129 struct _starpu_ctx_change_list ctx_change_list;
130 struct starpu_task_list local_tasks;
136 struct starpu_task *current_tasks[STARPU_MAX_PIPELINE];
137 #ifdef STARPU_SIMGRID 138 starpu_pthread_wait_t wait;
141 struct timespec cl_start;
142 struct timespec cl_end;
148 unsigned worker_is_running;
149 unsigned worker_is_initialized;
150 enum _starpu_worker_status status;
155 struct _starpu_driver_ops *driver_ops;
157 struct _starpu_sched_ctx_list *sched_ctx_list;
160 struct _starpu_barrier_counter tasks_barrier;
164 unsigned removed_from_ctx[STARPU_NMAX_SCHED_CTXS+1];
176 unsigned shares_tasks_lists[STARPU_NMAX_SCHED_CTXS+1];
178 unsigned poped_in_ctx[STARPU_NMAX_SCHED_CTXS+1];
184 unsigned reverse_phase[2];
189 struct _starpu_sched_ctx *stream_ctx;
194 #ifdef STARPU_HAVE_HWLOC 195 hwloc_bitmap_t hwloc_cpu_set;
196 hwloc_obj_t hwloc_obj;
206 int combined_workerid[STARPU_NMAXWORKERS];
209 starpu_pthread_mutex_t count_mutex;
215 #ifdef STARPU_HAVE_HWLOC 216 hwloc_bitmap_t hwloc_cpu_set;
226 starpu_pthread_mutex_t mutex;
233 unsigned set_is_initialized;
236 #ifdef STARPU_USE_MPI_MASTER_SLAVE 248 unsigned nsched_ctxs;
250 #ifdef STARPU_HAVE_HWLOC 287 unsigned nworkerpercuda;
288 int cuda_th_per_stream;
296 unsigned nhwmpidevices;
298 unsigned nhwmpicores[STARPU_MAXMPIDEVS];
299 unsigned nmpicores[STARPU_MAXMPIDEVS];
304 unsigned nmicdevices;
306 unsigned nhwmiccores[STARPU_MAXMICDEVS];
307 unsigned nmiccores[STARPU_MAXMICDEVS];
316 unsigned workers_bindid[STARPU_NMAXWORKERS];
324 unsigned workers_cuda_gpuid[STARPU_NMAXWORKERS];
332 unsigned workers_opencl_gpuid[STARPU_NMAXWORKERS];
342 unsigned workers_mpi_ms_deviceid[STARPU_NMAXWORKERS];
349 #ifdef STARPU_HAVE_HWLOC 356 char currently_bound[STARPU_NMAXWORKERS];
357 char currently_shared[STARPU_NMAXWORKERS];
404 struct starpu_conf conf;
416 struct _starpu_sched_ctx sched_ctxs[STARPU_NMAX_SCHED_CTXS+1];
423 starpu_pthread_mutex_t submitted_mutex;
426 extern int _starpu_worker_parallel_blocks;
429 extern int _starpu_keys_initialized STARPU_ATTRIBUTE_INTERNAL;
430 extern starpu_pthread_key_t _starpu_worker_key STARPU_ATTRIBUTE_INTERNAL;
431 extern starpu_pthread_key_t _starpu_worker_set_key STARPU_ATTRIBUTE_INTERNAL;
435 int *_starpu_get_argc();
436 char ***_starpu_get_argv();
451 ANNOTATE_HAPPENS_AFTER(&_starpu_config.running);
452 ret = _starpu_config.running;
453 ANNOTATE_HAPPENS_BEFORE(&_starpu_config.running);
480 void _starpu_block_worker(
int workerid, starpu_pthread_cond_t *cond, starpu_pthread_mutex_t *mutex);
487 static inline unsigned _starpu_worker_get_count(
void)
489 return _starpu_config.topology.nworkers;
491 #define starpu_worker_get_count _starpu_worker_get_count 498 STARPU_ASSERT(_starpu_keys_initialized);
499 STARPU_PTHREAD_SETSPECIFIC(_starpu_worker_key, worker);
506 if (!_starpu_keys_initialized)
508 return (
struct _starpu_worker *) STARPU_PTHREAD_GETSPECIFIC(_starpu_worker_key);
516 STARPU_ASSERT(_starpu_keys_initialized);
517 STARPU_PTHREAD_SETSPECIFIC(_starpu_worker_set_key, worker);
524 if (!_starpu_keys_initialized)
526 return (
struct _starpu_worker_set *) STARPU_PTHREAD_GETSPECIFIC(_starpu_worker_set_key);
533 STARPU_ASSERT(
id < starpu_worker_get_count());
534 return &_starpu_config.workers[id];
541 return (
id > STARPU_NMAX_SCHED_CTXS) ? NULL : &_starpu_config.sched_ctxs[id];
550 return &_starpu_config;
556 return _starpu_config.disable_kernels;
562 return _starpu_config.workers[workerid].status;
569 _starpu_config.workers[workerid].status = status;
575 return &_starpu_config.sched_ctxs[STARPU_GLOBAL_SCHED_CTX];
578 int starpu_worker_get_nids_by_type(
enum starpu_worker_archtype type,
int *workerids,
int maxsize);
584 static inline unsigned _starpu_worker_mutex_is_sched_mutex(
int workerid, starpu_pthread_mutex_t *mutex)
590 static inline int _starpu_worker_get_nsched_ctxs(
int workerid)
592 return _starpu_config.workers[
workerid].nsched_ctxs;
600 return _starpu_config.topology.nsched_ctxs;
620 #define starpu_worker_get_id _starpu_worker_get_id 628 int id = starpu_worker_get_id();
629 STARPU_ASSERT_MSG(
id>=0,
"%s:%d Cannot be called from outside a worker\n", f, l);
632 #define _starpu_worker_get_id_check(f,l) __starpu_worker_get_id_check(f,l) 634 enum starpu_node_kind _starpu_worker_get_node_kind(
enum starpu_worker_archtype type);
636 void _starpu_worker_set_stream_ctx(
unsigned workerid,
struct _starpu_sched_ctx *sched_ctx);
638 struct _starpu_sched_ctx* _starpu_worker_get_ctx_stream(
unsigned stream_workerid);
647 _starpu_worker_parallel_blocks = 1;
668 STARPU_PTHREAD_COND_BROADCAST(&worker->
sched_cond);
669 #ifdef STARPU_SIMGRID 670 starpu_pthread_queue_broadcast(&_starpu_simgrid_task_queue[worker->
workerid]);
686 STARPU_PTHREAD_COND_BROADCAST(&worker->
sched_cond);
715 STARPU_PTHREAD_COND_BROADCAST(&worker->
sched_cond);
729 STARPU_PTHREAD_COND_BROADCAST(&worker->
sched_cond);
758 STARPU_PTHREAD_COND_BROADCAST(&worker->
sched_cond);
775 STARPU_PTHREAD_COND_BROADCAST(&worker->
sched_cond);
795 #ifdef STARPU_SPINLOCK_CHECK 796 static inline void __starpu_worker_enter_sched_op(
struct _starpu_worker *
const worker,
const char*file,
int line,
const char* func)
834 #ifdef STARPU_SPINLOCK_CHECK 835 worker->relax_on_file = file;
836 worker->relax_on_line = line;
837 worker->relax_on_func = func;
840 #ifdef STARPU_SPINLOCK_CHECK 841 #define _starpu_worker_enter_sched_op(worker) __starpu_worker_enter_sched_op((worker), __FILE__, __LINE__, __starpu_func__) 849 #ifdef STARPU_SPINLOCK_CHECK 850 static inline void __starpu_worker_leave_sched_op(
struct _starpu_worker *
const worker,
const char*file,
int line,
const char* func)
852 static inline void _starpu_worker_leave_sched_op(
struct _starpu_worker *
const worker)
857 #ifdef STARPU_SPINLOCK_CHECK 858 worker->relax_off_file = file;
859 worker->relax_off_line = line;
860 worker->relax_off_func = func;
863 STARPU_PTHREAD_COND_BROADCAST(&worker->
sched_cond);
866 #ifdef STARPU_SPINLOCK_CHECK 867 #define _starpu_worker_leave_sched_op(worker) __starpu_worker_leave_sched_op((worker), __FILE__, __LINE__, __starpu_func__) 870 static inline int _starpu_worker_sched_op_pending(
void)
872 int workerid = starpu_worker_get_id();
876 STARPU_ASSERT(worker != NULL);
912 STARPU_PTHREAD_COND_BROADCAST(&worker->
sched_cond);
913 #ifdef STARPU_SIMGRID 914 starpu_pthread_queue_broadcast(&_starpu_simgrid_task_queue[worker->
workerid]);
935 STARPU_PTHREAD_COND_BROADCAST(&worker->
sched_cond);
940 #ifdef STARPU_SPINLOCK_CHECK 941 static inline void __starpu_worker_relax_on(
const char*file,
int line,
const char* func)
951 STARPU_PTHREAD_MUTEX_LOCK_SCHED(&worker->
sched_mutex);
952 #ifdef STARPU_SPINLOCK_CHECK 953 STARPU_ASSERT_MSG(worker->
state_relax_refcnt<UINT_MAX,
"relax last turn on in %s (%s:%d)\n", worker->relax_on_func, worker->relax_on_file, worker->relax_on_line);
958 #ifdef STARPU_SPINLOCK_CHECK 959 worker->relax_on_file = file;
960 worker->relax_on_line = line;
961 worker->relax_on_func = func;
963 STARPU_PTHREAD_COND_BROADCAST(&worker->
sched_cond);
964 STARPU_PTHREAD_MUTEX_UNLOCK_SCHED(&worker->
sched_mutex);
966 #ifdef STARPU_SPINLOCK_CHECK 967 #define _starpu_worker_relax_on() __starpu_worker_relax_on(__FILE__, __LINE__, __starpu_func__) 969 #define starpu_worker_relax_on _starpu_worker_relax_on 972 #ifdef STARPU_SPINLOCK_CHECK 973 static inline void __starpu_worker_relax_on_locked(
struct _starpu_worker *worker,
const char*file,
int line,
const char* func)
980 #ifdef STARPU_SPINLOCK_CHECK 981 STARPU_ASSERT_MSG(worker->
state_relax_refcnt<UINT_MAX,
"relax last turn on in %s (%s:%d)\n", worker->relax_on_func, worker->relax_on_file, worker->relax_on_line);
986 #ifdef STARPU_SPINLOCK_CHECK 987 worker->relax_on_file = file;
988 worker->relax_on_line = line;
989 worker->relax_on_func = func;
991 STARPU_PTHREAD_COND_BROADCAST(&worker->
sched_cond);
993 #ifdef STARPU_SPINLOCK_CHECK 994 #define _starpu_worker_relax_on_locked(worker) __starpu_worker_relax_on_locked(worker,__FILE__, __LINE__, __starpu_func__) 997 #ifdef STARPU_SPINLOCK_CHECK 998 static inline void __starpu_worker_relax_off(
const char*file,
int line,
const char* func)
1000 static inline void _starpu_worker_relax_off(
void)
1003 int workerid = starpu_worker_get_id();
1007 STARPU_ASSERT(worker != NULL);
1010 STARPU_PTHREAD_MUTEX_LOCK_SCHED(&worker->
sched_mutex);
1011 #ifdef STARPU_SPINLOCK_CHECK 1012 STARPU_ASSERT_MSG(worker->
state_relax_refcnt>0,
"relax last turn off in %s (%s:%d)\n", worker->relax_on_func, worker->relax_on_file, worker->relax_on_line);
1017 #ifdef STARPU_SPINLOCK_CHECK 1018 worker->relax_off_file = file;
1019 worker->relax_off_line = line;
1020 worker->relax_off_func = func;
1022 STARPU_PTHREAD_MUTEX_UNLOCK_SCHED(&worker->
sched_mutex);
1024 #ifdef STARPU_SPINLOCK_CHECK 1025 #define _starpu_worker_relax_off() __starpu_worker_relax_off(__FILE__, __LINE__, __starpu_func__) 1027 #define starpu_worker_relax_off _starpu_worker_relax_off 1029 #ifdef STARPU_SPINLOCK_CHECK 1030 static inline void __starpu_worker_relax_off_locked(
const char*file,
int line,
const char* func)
1032 static inline void _starpu_worker_relax_off_locked(
void)
1035 int workerid = starpu_worker_get_id();
1039 STARPU_ASSERT(worker != NULL);
1042 #ifdef STARPU_SPINLOCK_CHECK 1043 STARPU_ASSERT_MSG(worker->
state_relax_refcnt>0,
"relax last turn off in %s (%s:%d)\n", worker->relax_on_func, worker->relax_on_file, worker->relax_on_line);
1048 #ifdef STARPU_SPINLOCK_CHECK 1049 worker->relax_off_file = file;
1050 worker->relax_off_line = line;
1051 worker->relax_off_func = func;
1054 #ifdef STARPU_SPINLOCK_CHECK 1055 #define _starpu_worker_relax_off_locked() __starpu_worker_relax_off_locked(__FILE__, __LINE__, __starpu_func__) 1058 static inline int _starpu_worker_get_relax_state(
void)
1060 int workerid = starpu_worker_get_id();
1064 STARPU_ASSERT(worker != NULL);
1067 #define starpu_worker_get_relax_state _starpu_worker_get_relax_state 1076 STARPU_ASSERT(worker != NULL);
1077 int cur_workerid = starpu_worker_get_id();
1078 if (workerid != cur_workerid)
1080 starpu_worker_relax_on();
1082 STARPU_PTHREAD_MUTEX_LOCK_SCHED(&worker->
sched_mutex);
1090 STARPU_PTHREAD_MUTEX_LOCK_SCHED(&worker->
sched_mutex);
1094 static inline int _starpu_worker_trylock(
int workerid)
1097 int cur_workerid = cur_worker->
workerid;
1099 STARPU_ASSERT(worker != NULL);
1102 int ret = STARPU_PTHREAD_MUTEX_TRYLOCK_SCHED(&cur_worker->
sched_mutex);
1105 if (workerid == cur_workerid)
1110 ret = STARPU_PTHREAD_MUTEX_TRYLOCK_SCHED(&worker->
sched_mutex);
1116 STARPU_PTHREAD_MUTEX_UNLOCK_SCHED(&worker->
sched_mutex);
1120 STARPU_PTHREAD_MUTEX_UNLOCK_SCHED(&cur_worker->
sched_mutex);
1124 static inline void _starpu_worker_unlock(
int workerid)
1127 STARPU_ASSERT(worker != NULL);
1128 STARPU_PTHREAD_MUTEX_UNLOCK_SCHED(&worker->
sched_mutex);
1129 int cur_workerid = starpu_worker_get_id();
1130 if (workerid != cur_workerid)
1132 starpu_worker_relax_off();
1136 static inline void _starpu_worker_lock_self(
void)
1138 int workerid = starpu_worker_get_id_check();
1140 STARPU_ASSERT(worker != NULL);
1141 STARPU_PTHREAD_MUTEX_LOCK_SCHED(&worker->
sched_mutex);
1144 static inline void _starpu_worker_unlock_self(
void)
1146 int workerid = starpu_worker_get_id_check();
1148 STARPU_ASSERT(worker != NULL);
1149 STARPU_PTHREAD_MUTEX_UNLOCK_SCHED(&worker->
sched_mutex);
1152 static inline int _starpu_wake_worker_relax(
int workerid)
1155 int ret = starpu_wake_worker_locked(workerid);
1156 _starpu_worker_unlock(workerid);
1160 int starpu_wake_worker_relax_light(
int workerid);
1170 #endif // __WORKERS_H__ struct starpu_task ** local_ordered_tasks
Definition: workers.h:131
void _starpu_may_pause(void)
unsigned devid
Definition: workers.h:78
static unsigned __starpu_worker_get_id_check(const char *f, int l)
Definition: workers.h:624
static void _starpu_worker_relax_on(void)
Definition: workers.h:943
int pause_depth
Definition: workers.h:413
unsigned char pipeline_length
Definition: workers.h:145
unsigned ncudagpus
Definition: workers.h:286
static void _starpu_worker_request_blocking_in_parallel(struct _starpu_worker *const worker)
Definition: workers.h:645
int workerid
Definition: workers.h:81
unsigned state_unblock_in_parallel_req
Definition: workers.h:111
unsigned current_ordered_task_order
Definition: workers.h:134
static unsigned _starpu_get_nsched_ctxs(void)
Definition: workers.h:596
unsigned subworkerid
Definition: workers.h:79
unsigned nhwcudagpus
Definition: workers.h:270
unsigned nb_buffers_totransfer
Definition: workers.h:169
int current_mpi_deviceid
Definition: workers.h:369
unsigned memory_node
Definition: workers.h:205
unsigned nhwopenclgpus
Definition: workers.h:275
void _starpu_worker_refuse_task(struct _starpu_worker *worker, struct starpu_task *task)
static void _starpu_worker_leave_changing_ctx_op(struct _starpu_worker *const worker)
Definition: workers.h:931
unsigned nmpidevices
Definition: workers.h:295
int combined_workerid
Definition: workers.h:82
Definition: workers.h:345
struct starpu_perfmodel_arch perf_arch
Definition: workers.h:202
unsigned has_prev_init
Definition: workers.h:162
unsigned run_by_starpu
Definition: workers.h:154
unsigned nsched_ctxs
Definition: workers.h:159
starpu_pthread_t thread_changing_ctx
Definition: workers.h:121
static struct _starpu_machine_config * _starpu_get_machine_config(void)
Definition: workers.h:548
void _starpu_set_argc_argv(int *argc, char ***argv)
uint32_t _starpu_can_submit_opencl_task(void)
unsigned started
Definition: workers.h:229
static void _starpu_set_local_worker_set_key(struct _starpu_worker_set *worker)
Definition: workers.h:514
int cuda_nodeid
Definition: workers.h:374
uint32_t worker_mask
Definition: workers.h:75
static struct _starpu_sched_ctx * _starpu_get_initial_sched_ctx(void)
Definition: workers.h:573
unsigned current_ordered_task
Definition: workers.h:133
unsigned local_ordered_tasks_size
Definition: workers.h:132
static void _starpu_worker_lock(int workerid)
Definition: workers.h:1073
static void _starpu_worker_request_unblocking_in_parallel(struct _starpu_worker *const worker)
Definition: workers.h:694
unsigned state_relax_refcnt
Definition: workers.h:95
struct starpu_task * task_transferring
Definition: workers.h:170
Definition: workers.h:240
unsigned pop_ctx_priority
Definition: workers.h:186
static void _starpu_set_local_worker_key(struct _starpu_worker *worker)
Definition: workers.h:496
unsigned nhwmpi
Definition: workers.h:280
static struct _starpu_worker_set * _starpu_get_local_worker_set_key(void)
Definition: workers.h:522
unsigned block_in_parallel_ref_count
Definition: workers.h:120
unsigned submitting
Definition: workers.h:419
uint32_t _starpu_can_submit_cpu_task(void)
Definition: workers.h:200
uint32_t worker_mask
Definition: workers.h:203
void _starpu_conf_check_environment(struct starpu_conf *conf)
starpu_pthread_cond_t ready_cond
Definition: workers.h:86
unsigned nb_buffers_transferred
Definition: workers.h:168
unsigned char first_task
Definition: workers.h:143
unsigned memory_node
Definition: workers.h:87
unsigned nhwcpus
Definition: workers.h:260
unsigned nopenclgpus
Definition: workers.h:292
unsigned state_blocked_in_parallel
Definition: workers.h:107
struct starpu_conf conf
Definition: workers.h:404
static unsigned _starpu_machine_is_running(void)
Definition: workers.h:445
static enum _starpu_worker_status _starpu_worker_get_status(int workerid)
Definition: workers.h:560
unsigned state_block_in_parallel_ack
Definition: workers.h:110
unsigned nhwmicdevices
Definition: workers.h:303
int bindid
Definition: workers.h:80
static struct _starpu_worker * _starpu_get_worker_struct(unsigned id)
Definition: workers.h:531
starpu_pthread_cond_t ready_cond
Definition: workers.h:232
unsigned state_changing_ctx_waiting
Definition: workers.h:105
int current_bindid
Definition: workers.h:355
static void _starpu_worker_enter_changing_ctx_op(struct _starpu_worker *const worker)
Definition: workers.h:889
unsigned ncpus
Definition: workers.h:283
void _starpu_block_worker(int workerid, starpu_pthread_cond_t *cond, starpu_pthread_mutex_t *mutex)
int current_mic_deviceid
Definition: workers.h:366
static void _starpu_worker_process_block_in_parallel_requests(struct _starpu_worker *const worker)
Definition: workers.h:743
static void _starpu_worker_relax_on_locked(struct _starpu_worker *worker)
Definition: workers.h:975
unsigned spinning_backoff
Definition: workers.h:166
int current_cuda_gpuid
Definition: workers.h:360
void _starpu_driver_start(struct _starpu_worker *worker, unsigned fut_key, unsigned sync)
static void _starpu_worker_enter_sched_op(struct _starpu_worker *const worker)
Definition: workers.h:798
struct starpu_tree * tree
Definition: workers.h:255
int current_rank
Definition: workers.h:83
unsigned numa_memory_node
Definition: workers.h:88
uint32_t worker_mask
Definition: workers.h:401
unsigned state_sched_op_pending
Definition: workers.h:104
starpu_pthread_t worker_thread
Definition: workers.h:77
int worker_size
Definition: workers.h:84
unsigned ncombinedworkers
Definition: workers.h:246
unsigned nworkers
Definition: workers.h:243
unsigned is_slave_somewhere
Definition: workers.h:187
Definition: workers.h:224
int mic_nodeid
Definition: workers.h:378
unsigned state_block_in_parallel_req
Definition: workers.h:109
uint32_t _starpu_can_submit_cuda_task(void)
uint32_t _starpu_worker_exists(struct starpu_task *)
void _starpu_worker_apply_deferred_ctx_changes(void)
unsigned char pipeline_stuck
Definition: workers.h:146
hwloc_topology_t hwtopology
Definition: workers.h:252
static void _starpu_worker_set_status(int workerid, enum _starpu_worker_status status)
Definition: workers.h:567
unsigned state_changing_ctx_notice
Definition: workers.h:106
int cpus_nodeid
Definition: workers.h:372
unsigned state_unblock_in_parallel_ack
Definition: workers.h:112
struct starpu_task * current_task
Definition: workers.h:135
starpu_pthread_cond_t sched_cond
Definition: workers.h:93
starpu_pthread_mutex_t sched_mutex
Definition: workers.h:94
static int _starpu_get_disable_kernels(void)
Definition: workers.h:554
unsigned _starpu_worker_can_block(unsigned memnode, struct _starpu_worker *worker)
unsigned nbindid
Definition: workers.h:396
static struct _starpu_worker * _starpu_get_local_worker_key(void)
Definition: workers.h:504
unsigned state_blocked_in_parallel_observed
Definition: workers.h:108
static int _starpu_worker_get_id(void)
Definition: workers.h:604
int opencl_nodeid
Definition: workers.h:376
void _starpu_worker_start(struct _starpu_worker *worker, unsigned fut_key, unsigned sync)
unsigned running
Definition: workers.h:407
starpu_pthread_cond_t started_cond
Definition: workers.h:85
int starpu_worker_get_nids_ctx_free_by_type(enum starpu_worker_archtype type, int *workerids, int maxsize)
int current_opencl_gpuid
Definition: workers.h:363
void _starpu_worker_init(struct _starpu_worker *workerarg, struct _starpu_machine_config *pconfig)
static struct _starpu_sched_ctx * _starpu_get_sched_ctx_struct(unsigned id)
Definition: workers.h:539
unsigned char ntasks
Definition: workers.h:144
unsigned state_keep_awake
Definition: workers.h:151
unsigned nhwpus
Definition: workers.h:265
int mpi_nodeid
Definition: workers.h:380
starpu_pthread_t worker_thread
Definition: workers.h:227