![]() |
Arax -8d09c51940345c86062e8ef2427c705ae66e5926
A Runtime Framework for Decoupling Applications from Heterogeneous Accelerators
|
Go to the source code of this file.
Functions | |
arax_proc_s * | arax_proc_init (arax_object_repo_s *repo, const char *name) |
AraxFunctor * | arax_proc_get_functor (arax_proc_s *proc, arax_accel_type_e type) |
AraxFunctor * | arax_proc_set_functor (arax_proc_s *proc, arax_accel_type_e type, AraxFunctor *vfn) |
int | arax_proc_can_run_at (arax_proc_s *proc, arax_accel_type_e type) |
ARAX_OBJ_DTOR_DECL (arax_proc_s) | |
ARAX_OBJ_DTOR_DECL | ( | arax_proc_s | ) |
Definition at line 41 of file arax_proc.c.
int arax_proc_can_run_at | ( | arax_proc_s * | proc, |
arax_accel_type_e | type ) |
Returns if proc
can 'run' in an accelerator of type
.
type
has to be different than ANY.proc | An initialized arax_proc_s instance. |
type | Accelerator type to check against. |
type
can not execute proc
. Non zero otherwise. Definition at line 33 of file arax_proc.c.
References ANY, arax_accel_valid_type(), arax_assert, and arax_proc_s::canrun.
AraxFunctor * arax_proc_get_functor | ( | arax_proc_s * | proc, |
arax_accel_type_e | type ) |
Return proc
functor pointer for provided type
.
type
. Definition at line 16 of file arax_proc.c.
References arax_accel_valid_type(), arax_assert, and arax_proc_s::functors.
Referenced by arax_proc_set_functor().
arax_proc_s * arax_proc_init | ( | arax_object_repo_s * | repo, |
const char * | name ) |
Initialize a arax_proc at the memory pointed by mem
.
repo | The arax_object_repo_s that will track the initialized procedure. |
name | NULL terminated string, will be copied to private buffer. |
Definition at line 4 of file arax_proc.c.
References arax_object_register(), and ARAX_TYPE_PROC.
Referenced by arax_proc_register().
AraxFunctor * arax_proc_set_functor | ( | arax_proc_s * | proc, |
arax_accel_type_e | type, | ||
AraxFunctor * | vfn ) |
Set the AraxFunctor of proc
for the provided type
.
proc | An initialized arax_proc_s instance. |
type | Accelerator type for provided functor. |
vfn | Functor pointer, can be null. |
proc
, just as arax_proc_get_functor() would return. Definition at line 22 of file arax_proc.c.
References arax_proc_get_functor(), arax_proc_s::canrun, and arax_proc_s::functors.