alf_accel_comp_kernel

NAME

alf_accel_comp_kernel - Computes the work blocks.

SYNOPSIS

int alf_accel_comp_kernel(void* p_task_ctx, void *p_parm_ctx_buffer, void *p_input_buffer, void *p_output_buffer, void* p_inout_buffer, unsigned int current_iter, unsigned int num_iter);

Parameters  
p_task_context [IN] A pointer to the local memory block where the task context buffer is kept.
p_parm_ctx_data [IN] A pointer to the local memory block where the parameter and context data are kept.
p_input_buffer [IN] A pointer to the local memory block where the input data is loaded.
p_output_buffer [IN] A pointer to the local memory block where the output data is written.
p_inout_buffer [IN] A pointer to the accelerator memory block where the in/out buffers are located.
current_iter [IN] The current iteration count of multi-use work blocks. This value starts at 0. For single-use work blocks, this value is always 0.
num_iter [IN] The total number of iterations of multi-use work blocks. For single-use work blocks, this value is always 1.

DESCRIPTION

This is the computational kernel that does the computation of the work blocks. The ALF runtime ensures that all input data are available before invoking this call. You must provide an implementation for this function.

RETURN VALUE

0 The computation finished correctly.
less than 0 An error occurred during the computation. The error code is passed back to you to be handled.