StarPU Internal Handbook
drivers.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  * Copyright (C) 2016 Uppsala University
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 __DRIVERS_H__
19 #define __DRIVERS_H__
20 
21 #pragma GCC visibility push(hidden)
22 
26 {
27  int (*init)(struct _starpu_worker *worker);
28  int (*run)(struct _starpu_worker *worker);
29  int (*run_once)(struct _starpu_worker *worker);
30  int (*deinit)(struct _starpu_worker *worker);
31  int (*set_devid)(struct starpu_driver *driver, struct _starpu_worker *worker);
33  int (*is_devid)(struct starpu_driver *driver, struct _starpu_worker *worker);
35 };
36 
37 #pragma GCC visibility pop
38 
39 #endif // __DRIVERS_H__
Definition: starpu_driver.h:49
Definition: drivers.h:26
int(* deinit)(struct _starpu_worker *worker)
Definition: drivers.h:30
int(* run_once)(struct _starpu_worker *worker)
Definition: drivers.h:29
int(* is_devid)(struct starpu_driver *driver, struct _starpu_worker *worker)
Definition: drivers.h:33
int(* set_devid)(struct starpu_driver *driver, struct _starpu_worker *worker)
Definition: drivers.h:31
int(* init)(struct _starpu_worker *worker)
Definition: drivers.h:27
int(* run)(struct _starpu_worker *worker)
Definition: drivers.h:28
Definition: workers.h:155