ASCOT5
Loading...
Searching...
No Matches
offload.h
Go to the documentation of this file.
1
5#ifndef OFFLOAD_H
6#define OFFLOAD_H
7
22
23void offload_init_offload(offload_package* o, real** pack_array,
24 int** int_array);
25void offload_free_offload(offload_package* o, real** pack_array,
26 int** int_array);
27
28void offload_pack(offload_package* o, real** offload_array, real* pack_array,
29 size_t pack_length, int** int_offload_array,
30 int* int_pack_array, size_t int_pack_length);
31
32void offload_unpack(offload_package* o, real* pack_array,
33 size_t pack_length, int* int_offload_array,
34 size_t int_pack_length, real** ptr, int** intptr);
35
36#endif
double real
Definition ascot5.h:85
void offload_free_offload(offload_package *o, real **pack_array, int **int_array)
Free offload array and set offload_package to clean state.
Definition offload.c:49
void offload_init_offload(offload_package *o, real **pack_array, int **int_array)
Initialize offload package.
Definition offload.c:31
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.
Definition offload.c:137
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.
Definition offload.c:78
Struct to keep track of the offload array length and unpack status.
Definition offload.h:11
size_t int_offload_array_length
Definition offload.h:16
size_t unpack_pos
Definition offload.h:14
size_t offload_array_length
Definition offload.h:12
size_t int_unpack_pos
Definition offload.h:18