StarPU Handbook
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
starpu_worker.h File Reference
#include <stdlib.h>
#include <starpu_config.h>
#include <starpu_thread.h>

Go to the source code of this file.

Data Structures

struct  starpu_sched_ctx_iterator
 
struct  starpu_worker_collection
 

Enumerations

enum  starpu_worker_archtype {
  STARPU_CPU_WORKER, STARPU_CUDA_WORKER, STARPU_OPENCL_WORKER, STARPU_MIC_WORKER,
  STARPU_SCC_WORKER, STARPU_ANY_WORKER
}
 
enum  starpu_worker_collection_type { STARPU_WORKER_TREE, STARPU_WORKER_LIST }
 

Functions

unsigned starpu_worker_get_count (void)
 
unsigned starpu_combined_worker_get_count (void)
 
unsigned starpu_worker_is_combined_worker (int id)
 
unsigned starpu_cpu_worker_get_count (void)
 
unsigned starpu_cuda_worker_get_count (void)
 
unsigned starpu_opencl_worker_get_count (void)
 
unsigned starpu_mic_worker_get_count (void)
 
unsigned starpu_scc_worker_get_count (void)
 
unsigned starpu_mic_device_get_count (void)
 
int starpu_worker_get_id (void)
 
int starpu_worker_get_bindid (int workerid)
 
int starpu_combined_worker_get_id (void)
 
int starpu_combined_worker_get_size (void)
 
int starpu_combined_worker_get_rank (void)
 
enum starpu_worker_archtype starpu_worker_get_type (int id)
 
int starpu_worker_get_count_by_type (enum starpu_worker_archtype type)
 
int starpu_worker_get_ids_by_type (enum starpu_worker_archtype type, int *workerids, int 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)
 
void starpu_worker_get_name (int id, char *dst, size_t maxlen)
 
int starpu_worker_get_devid (int id)
 
int starpu_worker_get_mp_nodeid (int id)
 
struct starpu_treestarpu_workers_get_tree (void)
 
unsigned starpu_worker_get_sched_ctx_list (int worker, unsigned **sched_ctx)
 
unsigned starpu_worker_is_slave (int workerid)
 
char * starpu_worker_get_type_as_string (enum starpu_worker_archtype type)
 

Variables

struct starpu_worker_collection worker_list
 
struct starpu_worker_collection worker_tree