This document is relevant for: Inf1, Inf2, Trn1, Trn2, Trn3

nrt_version.h#

Neuron Runtime version information API.

Source: src/libnrt/include/nrt/nrt_version.h

Constants#

RT_VERSION_DETAIL_LEN#

#define RT_VERSION_DETAIL_LEN 128

Maximum length for version detail string.

Source: nrt_version.h:12

GIT_HASH_LEN#

#define GIT_HASH_LEN 64

Maximum length for git hash string.

Source: nrt_version.h:13

Structures#

nrt_version_t#

typedef struct nrt_version {
    uint64_t rt_major;
    uint64_t rt_minor;
    uint64_t rt_patch;
    uint64_t rt_maintenance;
    char rt_detail[RT_VERSION_DETAIL_LEN];
    char git_hash[GIT_HASH_LEN];
} nrt_version_t;

NRT version information structure.

Source: nrt_version.h:15

Functions#

nrt_get_version#

NRT_STATUS nrt_get_version(nrt_version_t *ver, size_t size);

Get the NRT library version.

Parameters:

  • ver [out] - Pointer to nrt version struct

  • size [in] - Length of the data needed to be filled in the nrt_version_struct

Returns: NRT_STATUS_SUCCESS on success.

Source: nrt_version.h:28

This document is relevant for: Inf1, Inf2, Trn1, Trn2, Trn3