In this example, the same problem as presented in Matrix add - host data partitioning example is solved, adding two large matrices using ALF. The code remains the same on the host except for the work block creation. The code also needs to specify that it uses accelerator data partitioning in the task descriptor.
An implementation for the alf_accel_input_dtl_prepare and alf_accel_output_dtl_prepare functions is also required.
matrix_add/common/accel_partitioning