This Copy Buffer example demonstrate how one buffer can be copied from another buffer.
KEY CONCEPTS: Copy Buffer
This example illustrates the use of
clEnqueueCopyBuffer API which is
used to copy the contents of a buffer into another buffer in the global
memory without copying the contents to host and back.
buffer_a are copied into
err = q.enqueueCopyBuffer(buffer_a, buffer_b, 0, 0, size_in_bytes);
Note: Only CDMA enabled platforms will copy the buffer directly using
clEnqueueCopyBuffer API. Please check platform Info to make sure if
platform is CDMA enabled or not.
Platforms containing following strings in their names are not supported for this example :
Application code is located in the src directory. Accelerator binary files will be compiled to the xclbin directory. The xclbin directory is required by the Makefile and its contents will be filled during compilation. A listing of all the files in this example is shown below
Access these files in the github repo by clicking here.
COMMAND LINE ARGUMENTS¶
Once the environment has been configured, the application can be executed by
./copy_buffer <vector_addition XCLBIN>