libxmp/libxmpf in Omni Compiler
1.3.4
|
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include "xmp_internal.h"
|
void | _XMP_reduce_gpu_NODES_ENTIRE (_XMP_nodes_t *nodes, void *addr, int count, int datatype, int op) |
|
void | _XMP_reduce_gpu_CLAUSE (void *data_addr, int count, int datatype, int op) |
|
void | _XMP_reduce_acc_NODES_ENTIRE (_XMP_nodes_t *nodes, void *data_addr, int count, int datatype, int op) |
|
void | _XMP_reduce_acc_FLMM_NODES_ENTIRE (_XMP_nodes_t *nodes, void *addr, int count, int datatype, int op, int num_locs,...) |
|
void | _XMP_reduce_acc_CLAUSE (void *data_addr, int count, int datatype, int op) |
|
void | _XMP_reduce_acc_FLMM_CLAUSE (void *data_addr, int count, int datatype, int op, int num_locs,...) |
|
◆ MPI_PORTABLE_PLATFORM_H
#define MPI_PORTABLE_PLATFORM_H |
◆ _XMP_reduce_acc_CLAUSE()
void _XMP_reduce_acc_CLAUSE |
( |
void * |
data_addr, |
|
|
int |
count, |
|
|
int |
datatype, |
|
|
int |
op |
|
) |
| |
◆ _XMP_reduce_acc_FLMM_CLAUSE()
void _XMP_reduce_acc_FLMM_CLAUSE |
( |
void * |
data_addr, |
|
|
int |
count, |
|
|
int |
datatype, |
|
|
int |
op, |
|
|
int |
num_locs, |
|
|
|
... |
|
) |
| |
86 _XMP_fatal(
"_XMP_reduce_acc_FLMM_CLAUSE is unimplemented");
◆ _XMP_reduce_acc_FLMM_NODES_ENTIRE()
void _XMP_reduce_acc_FLMM_NODES_ENTIRE |
( |
_XMP_nodes_t * |
nodes, |
|
|
void * |
addr, |
|
|
int |
count, |
|
|
int |
datatype, |
|
|
int |
op, |
|
|
int |
num_locs, |
|
|
|
... |
|
) |
| |
65 _XMP_fatal(
"_XMP_reduce_acc_FLMM_NODES_ENTIRE is unimplemented");
◆ _XMP_reduce_acc_NODES_ENTIRE()
void _XMP_reduce_acc_NODES_ENTIRE |
( |
_XMP_nodes_t * |
nodes, |
|
|
void * |
data_addr, |
|
|
int |
count, |
|
|
int |
datatype, |
|
|
int |
op |
|
) |
| |
◆ _XMP_reduce_gpu_CLAUSE()
void _XMP_reduce_gpu_CLAUSE |
( |
void * |
data_addr, |
|
|
int |
count, |
|
|
int |
datatype, |
|
|
int |
op |
|
) |
| |
146 MPI_Datatype mpi_datatype = MPI_DATATYPE_NULL;
147 size_t datatype_size = 0;
150 _XMP_setup_reduce_op(&mpi_op, op);
152 size_t size = datatype_size * count;
160 MPI_Allreduce(MPI_IN_PLACE, host_buf, count, mpi_datatype, mpi_op, *((MPI_Comm *)(
_XMP_get_execution_nodes())->comm));
◆ _XMP_reduce_gpu_NODES_ENTIRE()
void _XMP_reduce_gpu_NODES_ENTIRE |
( |
_XMP_nodes_t * |
nodes, |
|
|
void * |
addr, |
|
|
int |
count, |
|
|
int |
datatype, |
|
|
int |
op |
|
) |
| |
122 MPI_Datatype mpi_datatype = MPI_DATATYPE_NULL;
123 size_t datatype_size = 0;
126 _XMP_setup_reduce_op(&mpi_op, op);
128 size_t size = datatype_size * count;
135 MPI_Allreduce(MPI_IN_PLACE, host_buf, count, mpi_datatype, mpi_op, *((MPI_Comm *)nodes->
comm));
void _XMP_reduce_hybrid_NODES_ENTIRE(_XMP_nodes_t *nodes, void *addr, int count, int datatype, int op)
Definition: xmp_reduce_hybrid.c:437
int is_member
Definition: xmp_data_struct.h:46
void * _XMP_alloc(size_t size)
Definition: xmp_util.c:21
void _XMP_setup_reduce_type(MPI_Datatype *mpi_datatype, size_t *datatype_size, int datatype)
Definition: xmp_reduce.c:13
void _XACC_memory_read(void *addr, _XACC_memory_t memory, size_t memory_offset, size_t size, _XACC_queue_t queue, bool is_blocking)
Definition: xacc_util_cl.c:73
void _XACC_memory_write(_XACC_memory_t memory, size_t memory_offset, void *addr, size_t size, _XACC_queue_t queue, bool is_blocking)
Definition: xacc_util_cl.c:81
void _XMP_reduce_gpu_NODES_ENTIRE(_XMP_nodes_t *nodes, void *addr, int count, int datatype, int op)
Definition: xmp_reduce_gpu.c:112
void _XMP_reduce_NODES_ENTIRE(void *nodes, void *addr, int count, int datatype, int op)
void _XMP_free(void *p)
Definition: xmp_util.c:37
void _XMP_reduce_CLAUSE(void *data_addr, int count, int datatype, int op)
Definition: xmp_reduce.c:351
void _XMP_reduce_gpu_CLAUSE(void *data_addr, int count, int datatype, int op)
Definition: xmp_reduce_gpu.c:144
_XMP_comm_t * comm
Definition: xmp_data_struct.h:53
void _XMP_fatal(char *msg)
Definition: xmp_util.c:42
void _XMP_reduce_tca_NODES_ENTIRE(_XMP_nodes_t *nodes, void *addr, int count, int datatype, int op)
Definition: xmp_reduce_tca.c:417
void * _XMP_get_execution_nodes(void)
Definition: xmp_nodes_stack.c:46