A computational kernel is a user-defined accelerator routine that takes a given set of input data and returns the output data based on the given input.
You should implement the computational kernel according to the function prototype definitions with the data in the provided buffers (see Accelerator buffer management). Then the computational kernel must be registered to the ALF runtime when the corresponding task descriptor is created.
{ alf_accel_comp_kernel, alf_accel_input_dtl_prepare, alf_accel_output_dtl_prepare, alf_accel_task_context_setup, alf_accel_task_context_merge }
Based on the different application requirements, some of the elements in this 5-tuple can be NULL.
For more information about the APIs that define computational kernels, see User-provided computational kernel APIs.