Loading...
Searching...
No Matches
starpu_worker.h File Reference
`#include <stdlib.h>`
`#include <starpu_config.h>`
`#include <starpu_thread.h>`
`#include <starpu_task.h>`
`#include <hwloc.h>`

Go to the source code of this file.

## Data Structures

struct | starpu_sched_ctx_iterator
struct | starpu_worker_collection

## Macros

#define | STARPU_UNKNOWN_WORKER
#define | starpu_worker_get_id_check()

## Enumerations

enum | starpu_node_kind { STARPU_UNUSED , STARPU_CPU_RAM , STARPU_CUDA_RAM , STARPU_OPENCL_RAM , STARPU_MAX_FPGA_RAM , STARPU_DISK_RAM , STARPU_MPI_MS_RAM , STARPU_TCPIP_MS_RAM , STARPU_HIP_RAM , STARPU_MAX_RAM , STARPU_NRAM }
enum | starpu_worker_archtype { STARPU_CPU_WORKER , STARPU_CUDA_WORKER , STARPU_OPENCL_WORKER , STARPU_MAX_FPGA_WORKER , STARPU_MPI_MS_WORKER , STARPU_TCPIP_MS_WORKER , STARPU_HIP_WORKER , STARPU_NARCH , STARPU_ANY_WORKER }
enum | starpu_worker_collection_type { STARPU_WORKER_TREE , STARPU_WORKER_LIST }

## Functions

void | starpu_worker_wait_for_initialisation (void)
unsigned | starpu_worker_archtype_is_valid (enum starpu_worker_archtype type)
enum starpu_worker_archtype | starpu_arch_mask_to_worker_archtype (unsigned mask)
unsigned | starpu_worker_get_count (void)
unsigned | starpu_cpu_worker_get_count (void)
unsigned | starpu_cuda_worker_get_count (void)
unsigned | starpu_hip_worker_get_count (void)
unsigned | starpu_opencl_worker_get_count (void)
unsigned | starpu_mpi_ms_worker_get_count (void)
unsigned | starpu_tcpip_ms_worker_get_count (void)
int | starpu_worker_get_id (void)
unsigned | _starpu_worker_get_id_check (const char *f, int l)
int | starpu_worker_get_bindid (int workerid)
void | starpu_sched_find_all_worker_combinations (void)
enum starpu_worker_archtype | starpu_worker_get_type (int id)
int | starpu_worker_get_count_by_type (enum starpu_worker_archtype type)
unsigned | starpu_worker_get_ids_by_type (enum starpu_worker_archtype type, int *workerids, unsigned maxsize)
int | starpu_worker_get_by_type (enum starpu_worker_archtype type, int num)
int | starpu_worker_get_by_devid (enum starpu_worker_archtype type, int devid)
unsigned | starpu_worker_type_can_execute_task (enum starpu_worker_archtype worker_type, const struct starpu_task *task)
void | starpu_worker_get_name (int id, char *dst, size_t maxlen)
void | starpu_worker_display_all (FILE *output)
void | starpu_worker_display_names (FILE *output, enum starpu_worker_archtype type)
void | starpu_worker_display_count (FILE *output, enum starpu_worker_archtype type)
int | starpu_worker_get_devid (int id)
int | starpu_worker_get_devnum (int id)
int | starpu_worker_get_subworkerid (int id)
struct starpu_tree * | starpu_workers_get_tree (void)
unsigned | starpu_worker_get_sched_ctx_list (int worker, unsigned **sched_ctx)
void | starpu_worker_get_current_task_exp_end (unsigned workerid, struct timespec *date)
unsigned | starpu_worker_is_blocked_in_parallel (int workerid)
unsigned | starpu_worker_is_slave_somewhere (int workerid)
const char * | starpu_worker_get_type_as_string (enum starpu_worker_archtype type)
enum starpu_worker_archtype | starpu_worker_get_type_from_string (const char *type)
const char * | starpu_worker_get_type_as_env_var (enum starpu_worker_archtype type)
int | starpu_bindid_get_workerids (int bindid, int **workerids)
int | starpu_worker_get_devids (enum starpu_worker_archtype type, int *devids, int num)
int | starpu_worker_get_stream_workerids (unsigned devid, int *workerids, enum starpu_worker_archtype type)
hwloc_cpuset_t | starpu_worker_get_hwloc_cpuset (int workerid)
hwloc_obj_t | starpu_worker_get_hwloc_obj (int workerid)
int | starpu_memory_node_get_devid (unsigned node)
unsigned | starpu_worker_get_local_memory_node (void)
unsigned | starpu_worker_get_memory_node (unsigned workerid)
unsigned | starpu_memory_nodes_get_count (void)
unsigned | starpu_memory_nodes_get_count_by_kind (enum starpu_node_kind kind)
unsigned | starpu_memory_node_get_ids_by_type (enum starpu_node_kind kind, unsigned *memory_nodes_ids, unsigned maxsize)
int | starpu_memory_node_get_name (unsigned node, char *name, size_t size)
unsigned | starpu_memory_nodes_get_numa_count (void)
int | starpu_memory_nodes_numa_id_to_devid (int osid)
int | starpu_memory_nodes_numa_devid_to_id (unsigned id)
enum starpu_node_kind | starpu_node_get_kind (unsigned node)
enum starpu_worker_archtype | starpu_memory_node_get_worker_archtype (enum starpu_node_kind node_kind)
enum starpu_node_kind | starpu_worker_get_memory_node_kind (enum starpu_worker_archtype type)
unsigned | starpu_combined_worker_get_count (void)
unsigned | starpu_worker_is_combined_worker (int id)
int | starpu_combined_worker_get_id (void)
int | starpu_combined_worker_get_size (void)
int | starpu_combined_worker_get_rank (void)
int | starpu_combined_worker_assign_workerid (int nworkers, int workerid_array[])
int | starpu_combined_worker_get_description (int workerid, int *worker_size, int **combined_workerid)
int | starpu_combined_worker_can_execute_task (unsigned workerid, struct starpu_task *task, unsigned nimpl)
void | starpu_parallel_task_barrier_init (struct starpu_task *task, int workerid)
void | starpu_parallel_task_barrier_init_n (struct starpu_task *task, int worker_size)
Scheduling operations
int | starpu_worker_sched_op_pending (void)
void | starpu_worker_relax_on (void)
void | starpu_worker_relax_off (void)
int | starpu_worker_get_relax_state (void)
void | starpu_worker_lock (int workerid)
int | starpu_worker_trylock (int workerid)
void | starpu_worker_unlock (int workerid)
void | starpu_worker_lock_self (void)
void | starpu_worker_unlock_self (void)
void | starpu_worker_set_going_to_sleep_callback (void(*callback)(unsigned workerid))
void | starpu_worker_set_waking_up_callback (void(*callback)(unsigned workerid))

## Variables

struct starpu_worker_collection | starpu_worker_list
struct starpu_worker_collection | starpu_worker_tree