Open Deep Learning API
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
odla_task.h File Reference

Go to the source code of this file.

Data Structures

struct  odla_task
 odla task definition More...
 

Typedefs

typedef odla_status(* odla_async_executor) (odla_status(*) (odla_device, odla_task), odla_device, odla_task)
 odla task async executor More...
 

Functions

odla_status odla_SetAsyncExecutor (odla_async_executor executor)
 \biref set a customized async executor
 
ODLA_API_EXPORT odla_status ODLA_API_CALL odla_RunTask (odla_device device, odla_task task)
 Start a ODLA task in a synchronized manner. More...
 
ODLA_API_EXPORT odla_status ODLA_API_CALL odla_RunTaskAsync (odla_device device, odla_task task)
 Start a ODLA task in a asynchronized manner. More...
 

Detailed Description

This file defines the ODLA task related APIs.

Definition in file odla_task.h.

Typedef Documentation

◆ odla_async_executor

typedef odla_status(* odla_async_executor) (odla_status(*)(odla_device, odla_task), odla_device, odla_task)

odla task async executor

Definition at line 41 of file odla_task.h.

Function Documentation

◆ odla_RunTask()

ODLA_API_EXPORT odla_status ODLA_API_CALL odla_RunTask ( odla_device  device,
odla_task  task 
)

Start a ODLA task in a synchronized manner.

Parameters
deviceThe device to run the task
taskThe task object
Returns
odla_status

◆ odla_RunTaskAsync()

ODLA_API_EXPORT odla_status ODLA_API_CALL odla_RunTaskAsync ( odla_device  device,
odla_task  task 
)

Start a ODLA task in a asynchronized manner.

Parameters
deviceThe device to run the task
taskThe task object
Returns
odla_status