2.3.6 xfblasGetVector - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English
xfblasStatus_t xfblasGetVector(int n, int elemSize, short* d_x, short* x, int incx, unsigned int kernelIndex = 0, unsigned int deviceIndex = 0)
xfblasStatus_t xfblasGetVector(int n, int elemSize, float* d_x, float* x, int incx, unsigned int kernelIndex = 0, unsigned int deviceIndex = 0)

This function copies a vector in FPGA device memory to host memory.

Parameters:

n number of elements in vector
elemSize number of bytes required to store each element in the vector
d_x pointer to mapped memory
x pointer to the vector in the host memory
incx the storage spacing between consecutive elements of vector x
kernelIndex index of kernel that is being used, default is 0
deviceIndex index of device that is being used, default is 0

Return:

xfblasStatus_t 0 if the operation completed successfully
xfblasStatus_t 1 if the library was not initialized
xfblasStatus_t 3 if there is no FPGA device memory allocated for the vector