xfblasStatus_t xfblasGetMatrix(int rows, int cols, int elemSize, short* d_A, short* A, int lda, unsigned int kernelIndex = 0, unsigned int deviceIndex = 0) xfblasStatus_t xfblasGetMatrix(int rows, int cols, int elemSize, float* d_A, float* A, int lda, unsigned int kernelIndex = 0, unsigned int deviceIndex = 0)
This function copies a matrix in the FPGA device memory to the host memory.
Parameters:
rows | Number of rows in the matrix. |
cols | Number of cols in the matrix that is being used. |
elemSize | Number of bytes required to store each element in the matrix. |
d_A | Pointer to mapped memory. |
A | Pointer to the matrix array in the host memory. |
lda | Leading dimension of the matrix that indicates the total number of cols in the matrix. |
kernelIndex | Index of the kernel that is being used; default is 0. |
deviceIndex | Index of the 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 matrix. |