NVIDIA DRIVE OS Linux SDK API Reference

5.1.9.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvmedia_dla.h File Reference

Detailed Description

NVIDIA Media Interface: DLA

Description: This file contains the DLA runtime APIs.

Definition in file nvmedia_dla.h.

Go to the source code of this file.

Data Structures

struct  NvMediaDlaUMDVersion
 Holds the DLA UMD version. More...
 
struct  NvMediaDlaDataPointer
 Holds pointers to the DLA data. More...
 
struct  NvMediaDlaData
 Specifies the type and pointer to NvMediaDla. More...
 
struct  NvMediaDlaBinaryLoadable
 Holds attributes for populating binary loadables for NvMediaDla. More...
 
struct  NvMediaDlaArgs
 Holds input and output tensors. More...
 
struct  NvMediaDlaTensorDescriptor
 Holds tensor attributes. More...
 

Macros

#define NVMEDIA_DLA_VERSION_MAJOR   3
 Major version number. More...
 
#define NVMEDIA_DLA_VERSION_MINOR   2
 Minor version number. More...
 
#define NVMEDIA_DLA_TENSOR_DESC_NAME_MAX_LEN   (80)
 Maximum length of the name of the tensor to store in the descriptor. More...
 
#define NVMEDIA_DLA_DEFAULT_TASKTIMEOUT   100000
 Default task timeout. More...
 

Typedefs

typedef struct NvMediaDla NvMediaDla
 Holds a handle to the NvMedia DLA device. More...
 
typedef struct NvMediaDlaLoadable NvMediaDlaLoadable
 Holds a handle to NvMediaDlaLoadable. More...
 

Enumerations

enum  NvMediaDlaDataType { NVMEDIA_DLA_DATA_TYPE_TENSOR }
 Defines the data types that DLA can operate on. More...
 

Functions

NvMediaStatus NvMediaDlaGetVersion (NvMediaVersion *version)
 Returns the version information for the NvMediaDla library. More...
 
NvMediaStatus NvMediaDlaPingById (const uint32_t dlaId)
 Checks the status of the DLA engine. More...
 
NvMediaDlaNvMediaDlaCreate (void)
 Creates a default context for NvMediaDla. More...
 
NvMediaStatus NvMediaDlaDestroy (NvMediaDla *dla)
 Destroys a DLA engine instance created by NvMediaDlaCreate(). More...
 
NvMediaStatus NvMediaDlaGetUMDVersion (const NvMediaDla *dla, NvMediaDlaUMDVersion *version)
 Returns the version information for the NvMedia DLA UMD library. More...
 
NvMediaStatus NvMediaDlaGetNumEngines (const NvMediaDla *dla, uint16_t *numEngines)
 Returns the number of DLA hardware engines available. More...
 
NvMediaStatus NvMediaDlaGetMaxOutstandingTasks (const NvMediaDla *dla, uint32_t *maxOutstandingTasks)
 Returns the maximum number of tasks that can be queued to an instance of an engine. More...
 
NvMediaStatus NvMediaDlaInit (NvMediaDla *dla, uint32_t dlaId, uint32_t numTasks)
 Configures the context for a particular DLA engine. More...
 
NvMediaStatus NvMediaDlaGetInstanceId (const NvMediaDla *dla, uint32_t *dlaId)
 Returns the instance id of the NvMediaDla. More...
 
NvMediaStatus NvMediaDlaGetNumTasks (const NvMediaDla *dla, uint32_t *numTasks)
 Returns the number of outstanding tasks of NvMediaDla. More...
 
NvMediaStatus NvMediaDlaLoadableCreate (NvMediaDla *dla, NvMediaDlaLoadable **loadable)
 Creates a loadable handle. More...
 
NvMediaStatus NvMediaDlaLoadableDestroy (const NvMediaDla *dla, NvMediaDlaLoadable *loadable)
 Destroys a loadable handle. More...
 
NvMediaStatus NvMediaDlaAppendLoadable (const NvMediaDla *dla, const NvMediaDlaBinaryLoadable binaryLoadable, NvMediaDlaLoadable *loadable)
 Appends a loadable to the NvMediaDla context. More...
 
NvMediaStatus NvMediaDlaSetCurrentLoadable (const NvMediaDla *dla, const NvMediaDlaLoadable *loadable)
 Sets the current loadable for the NvMediaDla. More...
 
NvMediaStatus NvMediaDlaGetNumOfInputTensors (const NvMediaDla *dla, int32_t *numOfInputTensors)
 Gets the number of input tensors for the current loadable in the NvMediaDla context. More...
 
NvMediaStatus NvMediaDlaGetInputTensorDescriptor (const NvMediaDla *dla, const uint32_t idx, NvMediaDlaTensorDescriptor *descriptor)
 Gets the input tensor descriptor for the current loadable in the NvMediaDla context. More...
 
NvMediaStatus NvMediaDlaGetNumOfOutputTensors (const NvMediaDla *dla, int32_t *numOfOutputTensors)
 Gets the number of output tensors for the current loadable in the NvMediaDla context. More...
 
NvMediaStatus NvMediaDlaGetOutputTensorDescriptor (const NvMediaDla *dla, const uint32_t idx, NvMediaDlaTensorDescriptor *descriptor)
 Gets the output tensor descriptor for the current loadable in the NvMediaDla context. More...
 
NvMediaStatus NvMediaDlaDataRegister (const NvMediaDla *dla, const NvMediaDlaData *dlaData, uint32_t flags)
 Registers an NvMediaDlaData for use with an NvMediaDla handle. More...
 
NvMediaStatus NvMediaDlaDataUnregister (const NvMediaDla *dla, const NvMediaDlaData *dlaData)
 Unregisters an NvMediaDlaData after use. More...
 
NvMediaStatus NvMediaDlaLoadLoadable (NvMediaDla *dla)
 Loads the current loadable to the provided NvMediaDla context. More...
 
NvMediaStatus NvMediaDlaRemoveLoadable (const NvMediaDla *dla)
 Removes the current loadable from the provided NvMediaDla context. More...
 
NvMediaStatus NvMediaDlaSubmit (NvMediaDla *dla, const NvMediaDlaArgs *inputArgs, const NvMediaDlaArgs *scratchpadArgs, NvMediaDlaArgs *outputArgs, uint32_t taskTimeout)
 Submits a job to the DLA to run the network on a set of input NvMediaDla arguments and a timeout value. More...
 
NvMediaStatus NvMediaDlaLoadFromMemory (NvMediaDla *dla, uint8_t *loadable, uint64_t loadableSize, uint16_t dlaId, uint32_t numOutstandingRequests)
 Configures the context for a DLA engine, and loads a pre-compiled network (from memory) for DLA use. More...
 
NvMediaStatus NvMediaDlaSubmitTimeout (NvMediaDla *dla, const NvMediaDlaArgs *inputArgs, NvMediaDlaArgs *outputArgs, uint32_t taskTimeout)
 Submits a job to the DLA to run the network with a given a set of NvMediaDla input values and a timeout value. More...
 
NvMediaStatus NvMediaDlaGetMaxOutstandingRequests (const NvMediaDla *dla, uint32_t *maxOutstandingRequests)
 Returns the maximum number of requests that can be queued to an instance of an engine. More...