Radeon Pro Solid State Graphics Api User Manual - page 5
Rev. 1.01
5
CL_SUCCESS
The function executed successfully.
CL_INVALID_FILE_OBJECT_AMD The file is invalid for OpenCL.
3.4 clReleaseSsgFileObjectAMD
The clReleaseSsgFileObjectAMD function decrements the file-object reference count.
file [in]
Specifies the file object to be released.
Return Value
Description
CL_SUCCESS
The function executed successfully.
CL_INVALID_FILE_OBJECT_AMD The file is invalid for OpenCL.
3.5 clEnqueueReadSsgFileAMD
The clEnqueueReadSsgFileAMD function reads from a file object to a CL memory object.
command_queue
[in]
Valid host command-queue in which the read command will be queued. Create the buffer and
command_queue using the same OpenCL context.
buffer
[in]
A valid buffer object; buffer is the target memory object. Create the buffer using either
CL_MEM_ALLOC_HOST_PTR, CL_MEM_USE_HOST_PTR or CL_MEM_USE_PERSISTENT_MEM_AMD.
blocking_read
[in]
Indicates whether the read operation is blocking or non-blocking. If blocking_read is CL_TRUE, the
function call won’t return until the operation has completed. If blocking_read is CL_FALSE, the OpenCL
implementation will perform a non-blocking read. Because the read is non-blocking, the function can
return immediately. The event argument causes the function to return an event object, which can be used
to query the read command’s execution status.
C++
cl_int
clReleaseSsgFileObjectAMD(
cl_file_amd
file)
C++
cl_int
clEnqueueReadSsgFileAMD(cl_command_queue command_queue,
cl_mem
buffer,
cl_bool
blocking_read,
size_t
buffer_offset,
size_t
size,
cl_file_amd
file,
size_t
file_offset,
cl_uint
num_events_in_wait_list,
const
cl_event* event_wait_list,
cl_event*
event);