Arax -8d09c51940345c86062e8ef2427c705ae66e5926
A Runtime Framework for Decoupling Applications from Heterogeneous Accelerators
Loading...
Searching...
No Matches
arax_types.h File Reference
#include <sys/time.h>
#include <time.h>
+ Include dependency graph for arax_types.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  arax_accel_stats
 
struct  utils_timer_s
 
struct  arax_task_stats
 

Typedefs

typedef void arax_accel
 
typedef void arax_proc
 
typedef struct arax_accel_stats arax_accel_stats_s
 
typedef struct utils_timer_s utils_timer_s
 
typedef enum arax_accel_state arax_accel_state_e
 
typedef void arax_task
 
typedef void arax_data
 
typedef enum arax_task_state_e arax_task_state_e
 
typedef struct arax_task_stats arax_task_stats_s
 
typedef enum arax_accel_type arax_accel_type_e
 
typedef struct arch_alloc_s arch_alloc_s
 
typedef void * arax_buffer_s
 
typedef arax_task_state_e AraxFunctor(arax_task *)
 

Enumerations

enum  arax_accel_state { accel_failed , accel_idle , accel_busy }
 
enum  arax_task_state_e { task_failed , task_issued , task_completed }
 
enum  arax_accel_type {
  ANY = 0 , GPU = 1 , GPU_SOFT = 2 , CPU = 3 ,
  SDA = 4 , NANO_ARM = 5 , NANO_CORE = 6 , OPEN_CL = 7 ,
  HIP = 8 , ARAX_ACCEL_TYPES
}
 

Typedef Documentation

◆ arax_accel

typedef void arax_accel

arax_accel: Accelerator descriptor.

Definition at line 9 of file arax_types.h.

◆ arax_accel_state_e

Accelerator State enumeration.

◆ arax_accel_stats_s

Accelerator Statistics

◆ arax_accel_type_e

Accelerator type enumeration. NOTE: If updated update types_map variable in arax_accel_types.c

◆ arax_buffer_s

typedef void* arax_buffer_s

Definition at line 102 of file arax_types.h.

◆ arax_data

typedef void arax_data

arax_data: Opaque data pointer.

Definition at line 56 of file arax_types.h.

◆ arax_proc

typedef void arax_proc

arax_proc: Process descriptor.

Definition at line 14 of file arax_types.h.

◆ arax_task

typedef void arax_task

Arax Task Descriptor

Definition at line 51 of file arax_types.h.

◆ arax_task_state_e

Arax Task State enumeration.

◆ arax_task_stats_s

Arax Task Statistics

◆ AraxFunctor

typedef arax_task_state_e AraxFunctor(arax_task *)

Receives arguments and inputs/outputs. Performs argument marshalling and task issue to accelerator.

Definition at line 108 of file arax_types.h.

◆ arch_alloc_s

typedef struct arch_alloc_s arch_alloc_s

Definition at line 96 of file arax_types.h.

◆ utils_timer_s

typedef struct utils_timer_s utils_timer_s

Enumeration Type Documentation

◆ arax_accel_state

Accelerator State enumeration.

Enumerator
accel_failed 

Accelerator has failed.

accel_idle 

Accelerator is idle.

accel_busy 

Accelerator is busy.

Definition at line 41 of file arax_types.h.

◆ arax_accel_type

Accelerator type enumeration. NOTE: If updated update types_map variable in arax_accel_types.c

Enumerator
ANY 

Let Scheduler Decide

GPU 

Run on GPU with CUDA

GPU_SOFT 

Run on CPU with software CUDA

CPU 

Run Native x86 code

SDA 

Xilinx SDAaccel

NANO_ARM 

ARM accelerator core from NanoStream

NANO_CORE 

NanoStreams FPGA accelerator

OPEN_CL 

OpenCl Accelerators

HIP 

AMD

ARAX_ACCEL_TYPES 

End Marker

Definition at line 82 of file arax_types.h.

◆ arax_task_state_e

Arax Task State enumeration.

Enumerator
task_failed 

Task execution failed.

task_issued 

Task has been issued.

task_completed 

Task has been completed.

Definition at line 61 of file arax_types.h.