• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • NVIDIA DRIVE OS Linux SDK API Reference

    6.0.9 Release
    All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules 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 data type and data pointer. More...
     
    struct  NvMediaDlaBinaryLoadable
     Holds attributes for populating binary loadables for NvMediaDla. More...
     
    struct  NvMediaDlaArgs
     Holds input and output DLA data. More...
     
    struct  NvMediaDlaTensorDescriptor
     Holds tensor attributes. More...
     

    Macros

    #define NVMEDIA_DLA_VERSION_MAJOR   4
     Major version number. More...
     
    #define NVMEDIA_DLA_VERSION_MINOR   0
     Minor version number. More...
     
    #define NVMEDIA_DLA_VERSION_PATCH   0
     Patch version number. More...
     
    #define NVMEDIA_DLA_TENSOR_DESC_NAME_MAX_LEN   (80U)
     Maximum length of the name of the tensor to store in the descriptor. More...
     
    #define NVMEDIA_DLA_DEFAULT_TASKTIMEOUT   (100000U)
     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 NvMediaDlaAppendDiagnosticLoadable (const NvMediaDla *dla, NvMediaDlaLoadable *loadable)
     Appends diagnostic loadable to the NvMediaDla context. More...
     
    NvMediaStatus NvMediaDlaSetCurrentLoadable (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 (NvMediaDla *dla)
     Removes the current loadable from the provided NvMediaDla context. More...
     
    NvMediaStatus NvMediaDlaSubmit (NvMediaDla *dla, const NvMediaDlaArgs *inputArgs, const NvMediaDlaArgs *scratchpadArgs, const 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 NvMediaDlaSubmitBypass (NvMediaDla *dla, const NvMediaDlaArgs *inputArgs, const NvMediaDlaArgs *scratchpadArgs, const NvMediaDlaArgs *outputArgs)
     Submits a job to the DLA but its execution is skipped. More...
     
    人人超碰97caoporen国产