29 size_t pack_length,
int** int_offload_array,
30 int* int_pack_array,
size_t int_pack_length);
33 size_t pack_length,
int* int_offload_array,
34 size_t int_pack_length,
real** ptr,
int** intptr);
void offload_free_offload(offload_package *o, real **pack_array, int **int_array)
Free offload array and set offload_package to clean state.
void offload_init_offload(offload_package *o, real **pack_array, int **int_array)
Initialize offload package.
void offload_unpack(offload_package *o, real *pack_array, size_t pack_length, int *int_offload_array, size_t int_pack_length, real **ptr, int **intptr)
Unpack offload array from the package.
void offload_pack(offload_package *o, real **offload_array, real *pack_array, size_t pack_length, int **int_offload_array, int *int_pack_array, size_t int_pack_length)
Pack an offload array to package array.
Struct to keep track of the offload array length and unpack status.
size_t int_offload_array_length
size_t offload_array_length