StarPU Handbook
starpu.h
Go to the documentation of this file.
1 /* StarPU --- Runtime system for heterogeneous multicore architectures.
2  *
3  * Copyright (C) 2012-2014 Inria
4  * Copyright (C) 2009-2014,2016-2017 Université de Bordeaux
5  * Copyright (C) 2010-2015,2017 CNRS
6  *
7  * StarPU is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License as published by
9  * the Free Software Foundation; either version 2.1 of the License, or (at
10  * your option) any later version.
11  *
12  * StarPU is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15  *
16  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
17  */
18 
19 #ifndef __STARPU_H__
20 #define __STARPU_H__
21 
22 #include <stdlib.h>
23 
24 #ifndef _MSC_VER
25 #include <stdint.h>
26 #else
27 #include <windows.h>
28 typedef unsigned char uint8_t;
29 typedef unsigned short uint16_t;
30 typedef unsigned int uint32_t;
31 typedef unsigned long long uint64_t;
32 typedef UINT_PTR uintptr_t;
33 #endif
34 
35 #include <starpu_config.h>
36 
37 #ifdef STARPU_HAVE_WINDOWS
38 #include <windows.h>
39 #endif
40 
41 #if defined(STARPU_USE_OPENCL) && !defined(__CUDACC__)
42 #include <starpu_opencl.h>
43 #endif
44 
45 #include <starpu_thread.h>
46 #include <starpu_thread_util.h>
47 #include <starpu_util.h>
48 #include <starpu_data.h>
49 #include <starpu_disk.h>
50 #include <starpu_data_interfaces.h>
51 #include <starpu_data_filters.h>
52 #include <starpu_stdlib.h>
53 #include <starpu_perfmodel.h>
54 #include <starpu_worker.h>
55 #include <starpu_task.h>
56 #include <starpu_task_list.h>
57 #include <starpu_task_util.h>
58 #include <starpu_sched_ctx.h>
59 #include <starpu_expert.h>
60 #include <starpu_rand.h>
61 #include <starpu_cuda.h>
62 #include <starpu_cublas.h>
63 #include <starpu_cusparse.h>
64 #include <starpu_bound.h>
65 #include <starpu_hash.h>
66 #include <starpu_profiling.h>
67 #include <starpu_top.h>
68 #include <starpu_fxt.h>
69 #include <starpu_driver.h>
70 #include <starpu_tree.h>
71 #include <starpu_openmp.h>
72 #include <starpu_simgrid_wrap.h>
73 #include <starpu_bitmap.h>
74 
75 #ifdef __cplusplus
76 extern "C"
77 {
78 #endif
79 
81 {
82  int magic;
83  const char *sched_policy_name;
84 
86 
87  int ncpus;
88  int ncuda;
89  int nopencl;
90  int nmic;
91  int nscc;
92 
95 
98 
101 
104 
107 
110 
112 
114 
119 
122 
125 
127  int global_sched_ctx_min_priority;
128  int global_sched_ctx_max_priority;
129 
130 };
131 
132 int starpu_conf_init(struct starpu_conf *conf);
133 
135 
136 int starpu_initialize(struct starpu_conf *user_conf, int *argc, char ***argv);
137 
138 void starpu_pause(void);
139 void starpu_resume(void);
140 
141 void starpu_shutdown(void);
142 
143 void starpu_topology_print(FILE *f);
144 
149 
150 void starpu_display_stats();
151 
152 void starpu_get_version(int *major, int *minor, int *release);
153 
154 #ifdef __cplusplus
155 }
156 #endif
157 
158 #include "starpu_deprecated_api.h"
159 
160 #endif /* __STARPU_H__ */
int disable_asynchronous_cuda_copy
Definition: starpu.h:116
void starpu_pause(void)
unsigned workers_mic_deviceid[STARPU_NMAXWORKERS]
Definition: starpu.h:103
int ncpus
Definition: starpu.h:87
int bus_calibrate
Definition: starpu.h:108
int starpu_asynchronous_opencl_copy_disabled(void)
int nmic
Definition: starpu.h:90
int disable_asynchronous_opencl_copy
Definition: starpu.h:117
int starpu_asynchronous_mic_copy_disabled(void)
Definition: starpu_driver.h:31
void starpu_resume(void)
int calibrate
Definition: starpu.h:109
Definition: starpu.h:80
unsigned workers_opencl_gpuid[STARPU_NMAXWORKERS]
Definition: starpu.h:100
int starpu_conf_init(struct starpu_conf *conf)
const char * sched_policy_name
Definition: starpu.h:83
int magic
Definition: starpu.h:82
unsigned * cuda_opengl_interoperability
Definition: starpu.h:120
void starpu_shutdown(void)
unsigned use_explicit_workers_bindid
Definition: starpu.h:93
void starpu_get_version(int *major, int *minor, int *release)
int starpu_init(struct starpu_conf *conf) STARPU_WARN_UNUSED_RESULT
unsigned use_explicit_workers_scc_deviceid
Definition: starpu.h:105
unsigned n_not_launched_drivers
Definition: starpu.h:124
void starpu_topology_print(FILE *f)
unsigned workers_cuda_gpuid[STARPU_NMAXWORKERS]
Definition: starpu.h:97
int starpu_asynchronous_cuda_copy_disabled(void)
int nopencl
Definition: starpu.h:89
unsigned use_explicit_workers_mic_deviceid
Definition: starpu.h:102
#define STARPU_NMAXWORKERS
Definition: starpu_config.h:102
int starpu_initialize(struct starpu_conf *user_conf, int *argc, char ***argv)
struct starpu_driver * not_launched_drivers
Definition: starpu.h:123
int disable_asynchronous_copy
Definition: starpu.h:115
struct starpu_sched_policy * sched_policy
Definition: starpu.h:85
unsigned use_explicit_workers_cuda_gpuid
Definition: starpu.h:96
unsigned n_cuda_opengl_interoperability
Definition: starpu.h:121
Definition: starpu_scheduler.h:32
#define STARPU_WARN_UNUSED_RESULT
Definition: starpu_util.h:96
int single_combined_worker
Definition: starpu.h:111
int disable_asynchronous_mic_copy
Definition: starpu.h:118
unsigned use_explicit_workers_opencl_gpuid
Definition: starpu.h:99
int nscc
Definition: starpu.h:91
int ncuda
Definition: starpu.h:88
int starpu_asynchronous_copy_disabled(void)
char * mic_sink_program_path
Definition: starpu.h:113
unsigned workers_scc_deviceid[STARPU_NMAXWORKERS]
Definition: starpu.h:106
unsigned workers_bindid[STARPU_NMAXWORKERS]
Definition: starpu.h:94
unsigned trace_buffer_size
Definition: starpu.h:126