2.3.10 xfblasSetVectorRestricted - 2024.2 English

Vitis Libraries

Release Date
2025-05-14
Version
2024.2 English
xfblasStatus_t xfblasSetVectorRestricted(void* x, unsigned int kernelIndex = 0, unsigned int deviceIndex = 0)

This function copies a vector in the host memory to the FPGA device memory. xfblasMallocRestricted() need to be called prior to this function.

Parameters:

x Pointer to the vector in the host memory.
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 vector.