Visible to Intel only — GUID: oks1517497534778
Ixiasoft
1.1. Prerequisites for the Intel® FPGA SDK for OpenCL™ Standard Edition Custom Platform Toolkit
1.2. Overview of the Intel® FPGA SDK for OpenCL™ Standard Edition Custom Platform
1.3. Custom Platform Automigration for Forward Compatibility
1.4. Creating an Intel® FPGA SDK for OpenCL™ Standard Edition Custom Platform
1.5. Applying for the Intel® FPGA SDK for OpenCL™ Standard Edition Preferred Board Status
1.6. Shipping Recommendations
1.7. Intel® FPGA SDK for OpenCL™ Standard Edition Custom Platform Design Revision History
2.3.1. aocl_mmd_get_offline_info
2.3.2. aocl_mmd_get_info
2.3.3. aocl_mmd_open
2.3.4. aocl_mmd_close
2.3.5. aocl_mmd_read
2.3.6. aocl_mmd_write
2.3.7. aocl_mmd_copy
2.3.8. aocl_mmd_set_interrupt_handler
2.3.9. aocl_mmd_set_status_handler
2.3.10. aocl_mmd_yield
2.3.11. aocl_mmd_shared_mem_alloc
Syntax
Function Arguments
Return Value
2.3.12. aocl_mmd_shared_mem_free
2.3.13. aocl_mmd_reprogram
2.3.14. aocl_mmd_hostchannel_create
2.3.15. aocl_mmd_hostchannel_destroy
2.3.16. aocl_mmd_hostchannel_get_buffer
2.3.17. aocl_mmd_hostchannel_ack_buffer
Visible to Intel only — GUID: oks1517497534778
Ixiasoft
2.3.11. aocl_mmd_shared_mem_alloc
The aocl_mmd_shared_mem_alloc function allocates shared memory between the host and the FPGA. The host accesses the shared memory via the pointer returned by aocl_mmd_shared_mem_alloc. The FPGA accesses the shared memory via device_ptr_out. If shared memory is not available, aocl_mmd_shared_mem_alloc returns NULL. If you do not reboot the CPU after you reprogram the FPGA, the shared memory will persist.
Syntax
void * aocl_mmd_shared_mem_alloc( int handle,
size_t size,
unsigned long long *device_ptr_out );
Function Arguments
- handle—A positive int value representing the handle to the board obtained from the aocl_mmd_open() call.
- size—The size of the shared memory that the function allocates. Declare size with the type size_t.
- device_ptr_out—The argument that receives the pointer value the device uses to access shared memory. The device_ptr_out is of type unsigned long long to handle cases where the host has a smaller pointer size than the device. The device_ptr_out argument cannot have a NULL value.
Return Value
If aocl_mmd_shared_mem_alloc executes successfully, the return value is the pointer value that the host uses to access the shared memory. Otherwise, the return value is NULL.