libxmp/libxmpf in Omni Compiler
1.3.4
|
|
void | _XMP_gpu_pack_array (_XMP_gpu_array_t *device_desc, void *host_shadow_buffer, void *gpu_array_addr, size_t type_size, size_t alloc_size, int array_dim, int *lower, int *upper, int *stride) |
|
void | _XMP_gpu_unpack_array (_XMP_gpu_array_t *device_desc, void *gpu_array_addr, void *host_shadow_buffer, size_t type_size, size_t alloc_size, int array_dim, int *lower, int *upper, int *stride) |
|
void | _XMP_gpu_pack_shadow_NORMAL (_XMP_gpu_data_t *desc, void **lo_buffer, void **hi_buffer, int array_index) |
|
void | _XMP_gpu_unpack_shadow_NORMAL (_XMP_gpu_data_t *desc, void *lo_buffer, void *hi_buffer, int array_index) |
|
◆ _XMP_gpu_pack_array()
void _XMP_gpu_pack_array |
( |
_XMP_gpu_array_t * |
device_desc, |
|
|
void * |
host_shadow_buffer, |
|
|
void * |
gpu_array_addr, |
|
|
size_t |
type_size, |
|
|
size_t |
alloc_size, |
|
|
int |
array_dim, |
|
|
int * |
lower, |
|
|
int * |
upper, |
|
|
int * |
stride |
|
) |
| |
◆ _XMP_gpu_pack_shadow_NORMAL()
void _XMP_gpu_pack_shadow_NORMAL |
( |
_XMP_gpu_data_t * |
desc, |
|
|
void ** |
lo_buffer, |
|
|
void ** |
hi_buffer, |
|
|
int |
array_index |
|
) |
| |
36 int array_dim = array_desc->
dim;
37 size_t array_type_size = array_desc->
type_size;
39 int lower[array_dim], upper[array_dim], stride[array_dim];
42 if (rank != (size - 1)) {
54 for (
int i = 0; i < array_dim; i++) {
55 if (i == array_index) {
69 array_type_size, alloc_size, array_dim,
70 lower, upper, stride);
87 for (
int i = 0; i < array_dim; i++) {
88 if (i == array_index) {
102 array_type_size, alloc_size, array_dim,
103 lower, upper, stride);
◆ _XMP_gpu_unpack_array()
void _XMP_gpu_unpack_array |
( |
_XMP_gpu_array_t * |
device_desc, |
|
|
void * |
gpu_array_addr, |
|
|
void * |
host_shadow_buffer, |
|
|
size_t |
type_size, |
|
|
size_t |
alloc_size, |
|
|
int |
array_dim, |
|
|
int * |
lower, |
|
|
int * |
upper, |
|
|
int * |
stride |
|
) |
| |
◆ _XMP_gpu_unpack_shadow_NORMAL()
void _XMP_gpu_unpack_shadow_NORMAL |
( |
_XMP_gpu_data_t * |
desc, |
|
|
void * |
lo_buffer, |
|
|
void * |
hi_buffer, |
|
|
int |
array_index |
|
) |
| |
127 int array_dim = array_desc->
dim;
128 size_t array_type_size = array_desc->
type_size;
130 int lower[array_dim], upper[array_dim], stride[array_dim];
143 for (
int i = 0; i < array_dim; i++) {
144 if (i == array_index) {
158 array_type_size, alloc_size, array_dim,
159 lower, upper, stride);
167 if (rank != (size - 1)) {
177 for (
int i = 0; i < array_dim; i++) {
178 if (i == array_index) {
192 array_type_size, alloc_size, array_dim,
193 lower, upper, stride);
_XMP_array_t * host_array_desc
Definition: xmp_data_struct.h:484
int shadow_comm_rank
Definition: xmp_data_struct.h:257
void * _XMP_alloc(size_t size)
Definition: xmp_util.c:21
Definition: xmp_data_struct.h:194
_XMP_gpu_array_t * device_array_desc
Definition: xmp_data_struct.h:485
void _XMP_gpu_unpack_array(_XMP_gpu_array_t *device_desc, void *gpu_array_addr, void *host_shadow_buffer, size_t type_size, size_t alloc_size, int array_dim, int *lower, int *upper, int *stride)
int shadow_comm_size
Definition: xmp_data_struct.h:256
void _XMP_gpu_pack_array(_XMP_gpu_array_t *device_desc, void *host_shadow_buffer, void *gpu_array_addr, size_t type_size, size_t alloc_size, int array_dim, int *lower, int *upper, int *stride)
unsigned long long dim_elmts
Definition: xmp_data_struct.h:243
int local_stride
Definition: xmp_data_struct.h:211
int shadow_size_lo
Definition: xmp_data_struct.h:249
int align_manner
Definition: xmp_data_struct.h:197
int local_lower
Definition: xmp_data_struct.h:209
int shadow_size_hi
Definition: xmp_data_struct.h:250
void * device_addr
Definition: xmp_data_struct.h:483
Definition: xmp_data_struct.h:266
size_t type_size
Definition: xmp_data_struct.h:274
#define _XMP_N_ALIGN_BLOCK
Definition: xmp_constant.h:37
_XMP_array_info_t info[1]
Definition: xmp_data_struct.h:313
void _XMP_free(void *p)
Definition: xmp_util.c:37
#define _XMP_ASSERT(_flag)
Definition: xmp_internal.h:34
int dim
Definition: xmp_data_struct.h:272
void _XMP_fatal(char *msg)
Definition: xmp_util.c:42
int par_size
Definition: xmp_data_struct.h:207
#define _XMP_RETURN_IF_SINGLE
Definition: xmp_internal.h:37
_Bool is_allocated
Definition: xmp_data_struct.h:270
_Bool is_shadow_comm_member
Definition: xmp_data_struct.h:195
int local_upper
Definition: xmp_data_struct.h:210