StarPU Handbook - StarPU Language Bindings
starpu_driver.h
Go to the documentation of this file.
1 /* StarPU --- Runtime system for heterogeneous multicore architectures.
2  *
3  * Copyright (C) 2009-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
4  *
5  * StarPU is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation; either version 2.1 of the License, or (at
8  * your option) any later version.
9  *
10  * StarPU is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13  *
14  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
15  */
16 
17 #ifndef __STARPU_DRIVER_H__
18 #define __STARPU_DRIVER_H__
19 
20 #include <starpu_config.h>
21 #if defined(STARPU_USE_OPENCL) && !defined(__CUDACC__)
22 #include <starpu_opencl.h>
23 #endif
24 
25 #if defined(STARPU_USE_MAX_FPGA)
26 #include <starpu_max_fpga.h>
27 #endif
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
44 
49 {
58  union
59  {
60  unsigned cpu_id;
61  unsigned cuda_id;
62  unsigned hip_id;
63 #if defined(STARPU_USE_OPENCL) && !defined(__CUDACC__)
64  cl_device_id opencl_id;
65 #endif
66  } id;
67 };
68 
82 
88 
95 
102 
109 
112 #ifdef __cplusplus
113 }
114 #endif
115 
116 #endif /* __STARPU_DRIVER_H__ */
union starpu_driver::@0 id
enum starpu_worker_archtype type
Definition: starpu_driver.h:54
void starpu_drivers_preinit(void)
void starpu_drivers_request_termination(void)
int starpu_driver_run(struct starpu_driver *d)
int starpu_driver_init(struct starpu_driver *d)
int starpu_driver_deinit(struct starpu_driver *d)
int starpu_driver_run_once(struct starpu_driver *d)
Definition: starpu_driver.h:49
starpu_worker_archtype
Definition: starpu_worker.h:66