Arax -8d09c51940345c86062e8ef2427c705ae66e5926
A Runtime Framework for Decoupling Applications from Heterogeneous Accelerators
Loading...
Searching...
No Matches
Public Procedure user API

Functions

arax_procarax_proc_register (const char *func_name)
 
arax_procarax_proc_get (const char *func_name)
 
int arax_proc_put (arax_proc *func)
 

Detailed Description

Functions usable from applications for manipulating Procedures.

Function Documentation

◆ arax_proc_get()

arax_proc * arax_proc_get ( const char * func_name)

Retrieve a previously registered arax_proc pointer.

Note
For every arax_proc_get()/arax_proc_register() there should be a matching call to arax_proc_put()
Parameters
func_nameDescriptive name of function, as provided to arax_proc_register.
Returns
arax_proc * corresponding to the requested function, NULL on failure.

Definition at line 400 of file impl.c.

References arax_object_ref_inc(), arax_pipe_find_proc(), arax_pipe_get, arax_proc_s::obj, and vpipe.

Referenced by arax_data_allocate_remote(), arax_data_get(), arax_data_set(), and ARAX_OBJ_DTOR_DECL().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ arax_proc_put()

int arax_proc_put ( arax_proc * func)

Delete registered arax_proc pointer.

Note
For every arax_proc_get()/arax_proc_register() there should be a matching call to arax_proc_put()
Parameters
funcarax_proc to be deleted.

Definition at line 413 of file impl.c.

References arax_object_ref_dec(), and arax_proc_s::obj.

Referenced by arax_data_get(), and arax_data_set().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ arax_proc_register()

arax_proc * arax_proc_register ( const char * func_name)

Register a new process 'func_name'. Processes are accelerator agnostic and initially have no 'implementations'/functors. Returned arax_proc * identifies given function globally.

Note
For every arax_proc_get()/arax_proc_register() there should be a matching call to arax_proc_put()
To add a functor/implementation see/use arax_proc_set_functor().
Parameters
func_nameDescriptive name of function, has to be unique for given type.
Returns
arax_proc * corresponding to the registered function, NULL on failure.

Definition at line 384 of file impl.c.

References arax_pipe_find_proc(), arax_pipe_get, arax_proc_init(), and vpipe.

+ Here is the call graph for this function: