Loading...
Searching...
No Matches
starpu_driver.h
/* StarPU --- Runtime system for heterogeneous multicore architectures.
*
* Copyright (C) 2009-2025 University of Bordeaux, CNRS (LaBRI UMR 5800), Inria
*
* StarPU is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at
* your option) any later version.
*
* StarPU is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* See the GNU Lesser General Public License in COPYING.LGPL for more details.
*/
#ifndef __STARPU_DRIVER_H__
#define __STARPU_DRIVER_H__
#include <starpu_config.h>
#if defined(STARPU_USE_OPENCL) && !defined(__CUDACC__) && !defined(__HIPCC__)
#include <starpu_opencl.h>
#endif
#if defined(STARPU_USE_MAX_FPGA)
#include <starpu_max_fpga.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
void starpu_drivers_preinit(void);
struct starpu_driver
{
enum starpu_worker_archtype type;
union
{
unsigned cpu_id;
unsigned cuda_id;
unsigned hip_id;
#if defined(STARPU_USE_OPENCL) && !defined(__CUDACC__) && !defined(__HIPCC__)
cl_device_id opencl_id;
#endif
} id;
};
int starpu_driver_run(struct starpu_driver *d);
void starpu_drivers_request_termination(void);
int starpu_driver_init(struct starpu_driver *d);
int starpu_driver_run_once(struct starpu_driver *d);
int starpu_driver_deinit(struct starpu_driver *d);
#ifdef __cplusplus
}
#endif
#endif /* __STARPU_DRIVER_H__ */
starpu_driver::type
enum starpu_worker_archtype type
Definition starpu_driver.h:54
starpu_driver::id
union starpu_driver::@377140342126053054130065205040120301247323164012 id
starpu_drivers_preinit
void starpu_drivers_preinit(void)
starpu_drivers_request_termination
void starpu_drivers_request_termination(void)
starpu_driver_run
int starpu_driver_run(struct starpu_driver *d)
starpu_driver_init
int starpu_driver_init(struct starpu_driver *d)
starpu_driver_deinit
int starpu_driver_deinit(struct starpu_driver *d)
starpu_driver_run_once
int starpu_driver_run_once(struct starpu_driver *d)
starpu_driver
Definition starpu_driver.h:49
starpu_worker_archtype
starpu_worker_archtype
Definition starpu_worker.h:66