StarPU Handbook

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
starpu_driver.h
Go to the documentation of this file.
1 /* StarPU --- Runtime system for heterogeneous multicore architectures.
2 *
3 * Copyright (C) 2009-2013 Université de Bordeaux 1
4 * Copyright (C) 2010-2013 Centre National de la Recherche Scientifique
5 *
6 * StarPU is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or (at
9 * your option) any later version.
10 *
11 * StarPU is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 *
15 * See the GNU Lesser General Public License in COPYING.LGPL for more details.
16 */
17
18 #ifndef __STARPU_DRIVER_H__
19 #define __STARPU_DRIVER_H__
20
21 #include <starpu_config.h>
22 #if defined(STARPU_USE_OPENCL) && !defined(__CUDACC__)
23 #include <starpu_opencl.h>
24 #endif
25
26 #ifdef __cplusplus
27 extern "C"
28 {
29 #endif
30
31 struct starpu_driver
32 {
33 enum starpu_worker_archtype type;
34 union
35 {
36 unsigned cpu_id;
37 unsigned cuda_id;
38 #if defined(STARPU_USE_OPENCL) && !defined(__CUDACC__)
39 cl_device_id opencl_id;
40 #elif defined(STARPU_SIMGRID)
41 unsigned opencl_id;
42 #endif
43 } id;
44 };
45
46 int starpu_driver_run(struct starpu_driver *d);
47 void starpu_drivers_request_termination(void);
48
49 int starpu_driver_init(struct starpu_driver *d);
50 int starpu_driver_run_once(struct starpu_driver *d);
51 int starpu_driver_deinit(struct starpu_driver *d);
52
53 #ifdef __cplusplus
54 }
55 #endif
56
57 #endif /* __STARPU_DRIVER_H__ */
starpu_driver
Definition: starpu_driver.h:31
starpu_worker_archtype
starpu_worker_archtype
Definition: starpu_worker.h:29
starpu_opencl.h
starpu_drivers_request_termination
void starpu_drivers_request_termination(void)
starpu_driver_run_once
int starpu_driver_run_once(struct starpu_driver *d)
starpu_driver::id
union starpu_driver::@0 id
starpu_driver_init
int starpu_driver_init(struct starpu_driver *d)
starpu_driver_deinit
int starpu_driver_deinit(struct starpu_driver *d)
starpu_config.h
starpu_driver_run
int starpu_driver_run(struct starpu_driver *d)
starpu_driver::type
enum starpu_worker_archtype type
Definition: starpu_driver.h:33