Q.ANT Native Computing Toolkit 2.3.1
All you need for photonic computing
Loading...
Searching...
No Matches
qant_native_computing_toolkit_generic.h File Reference
#include <stddef.h>
#include <stdint.h>
Include dependency graph for qant_native_computing_toolkit_generic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int init_npu (const uint32_t id)
 Initialises the Native Processing Unit.
int release_npu (const uint32_t id)
 Releases an NPU and frees associated memory.

Function Documentation

◆ init_npu()

int init_npu ( const uint32_t id)

Initialises the Native Processing Unit.

Optional, not necessary for computation.

Parameters
idThe identifier of the NPU to be initialised.
Returns
0 if successful, or a negative error code.

◆ release_npu()

int release_npu ( const uint32_t id)

Releases an NPU and frees associated memory.

Only relevant if multiple users want to access the same device.

Parameters
idThe identifier of the NPU to be released.
Returns
0 if successful, or a negative error code.