|
libxmp/libxmpf in Omni Compiler
1.3.4
|
#include <stdio.h>#include <stdlib.h>#include <inttypes.h>#include <assert.h>#include <string.h>#include "mpi.h"#include "mpi-ext.h"#include "xmp_internal.h"
Macros | |
| #define | _XMP_FJRDMA_MAX_SIZE 16777212 |
| #define | _XMP_FJRDMA_MAX_MEMID 511 |
| #define | _XMP_FJRDMA_MAX_MPUT 1993 |
| #define | _XMP_FJRDMA_MAX_MGET 100 /** This value is trial */ |
| #define | _XMP_FJRDMA_MAX_PUT 60 /** This value is trial */ |
| #define | _XMP_FJRDMA_MAX_GET 60 /** This value is trial */ |
| #define | _XMP_COARRAY_SEND_NIC_TMP_0 FJMPI_RDMA_LOCAL_NIC0 |
| #define | _XMP_COARRAY_SEND_NIC_TMP_1 FJMPI_RDMA_LOCAL_NIC1 |
| #define | _XMP_COARRAY_SEND_NIC_TMP_2 FJMPI_RDMA_LOCAL_NIC2 |
| #define | _XMP_COARRAY_SEND_NIC_TMP_3 FJMPI_RDMA_LOCAL_NIC3 |
| #define | _XMP_COARRAY_FLAG_NIC_TMP_0 (FJMPI_RDMA_LOCAL_NIC0 | FJMPI_RDMA_REMOTE_NIC0) |
| #define | _XMP_COARRAY_FLAG_NIC_TMP_1 (FJMPI_RDMA_LOCAL_NIC1 | FJMPI_RDMA_REMOTE_NIC1) |
| #define | _XMP_COARRAY_FLAG_NIC_TMP_2 (FJMPI_RDMA_LOCAL_NIC2 | FJMPI_RDMA_REMOTE_NIC2) |
| #define | _XMP_COARRAY_FLAG_NIC_TMP_3 (FJMPI_RDMA_LOCAL_NIC3 | FJMPI_RDMA_REMOTE_NIC3) |
| #define | _XMP_COARRAY_FLAG_NIC_TMP_i0 (FJMPI_RDMA_LOCAL_NIC0 | FJMPI_RDMA_REMOTE_NIC0 | FJMPI_RDMA_IMMEDIATE_RETURN) |
| #define | _XMP_COARRAY_FLAG_NIC_TMP_i1 (FJMPI_RDMA_LOCAL_NIC1 | FJMPI_RDMA_REMOTE_NIC1 | FJMPI_RDMA_IMMEDIATE_RETURN) |
| #define | _XMP_COARRAY_FLAG_NIC_TMP_i2 (FJMPI_RDMA_LOCAL_NIC2 | FJMPI_RDMA_REMOTE_NIC2 | FJMPI_RDMA_IMMEDIATE_RETURN) |
| #define | _XMP_COARRAY_FLAG_NIC_TMP_i3 (FJMPI_RDMA_LOCAL_NIC3 | FJMPI_RDMA_REMOTE_NIC3 | FJMPI_RDMA_IMMEDIATE_RETURN) |
Functions | |
| void | _XMP_fjrdma_sync_memory_put () |
| End these variables are temporral. More... | |
| void | _XMP_fjrdma_sync_memory_get () |
| Execute sync_memory for get operation. More... | |
| void | _XMP_add_num_of_puts () |
| Add 1 to _num_of_puts. More... | |
| void | _XMP_add_num_of_gets () |
| Add 1 to _num_of_gets. More... | |
| void | _XMP_fjrdma_sync_memory () |
| Execute sync_memory. More... | |
| void | _XMP_fjrdma_sync_all () |
| Execute sync_all. More... | |
| void | _XMP_fjrdma_coarray_malloc (_XMP_coarray_t *coarray_desc, void **addr, const size_t coarray_size) |
| void | _XMP_fjrdma_regmem (_XMP_coarray_t *coarray_desc, void *addr, const size_t coarray_size) |
| void | _XMP_fjrdma_coarray_lastly_deallocate () |
| Deallocate memory region when calling _XMP_coarray_lastly_deallocate() More... | |
| void | _XMP_fjrdma_contiguous_put (const int target_rank, const uint64_t dst_offset, const uint64_t src_offset, const _XMP_coarray_t *dst_desc, const _XMP_coarray_t *src_desc, const size_t dst_elmts, const size_t src_elmts, const size_t elmt_size) |
| void | _XMP_fjrdma_put (const int dst_contiguous, const int src_contiguous, const int target_rank, const int dst_dims, const int src_dims, const _XMP_array_section_t *dst_info, const _XMP_array_section_t *src_info, const _XMP_coarray_t *dst_desc, const _XMP_coarray_t *src_desc, void *src, const size_t dst_elmts, const size_t src_elmts) |
| void | _XMP_fjrdma_contiguous_get (const int target_rank, const _XMP_coarray_t *dst_desc, const _XMP_coarray_t *src_desc, const uint64_t dst_offset, const uint64_t src_offset, const size_t dst_elmts, const size_t src_elmts, const size_t elmt_size) |
| void | _XMP_fjrdma_get (const int src_contiguous, const int dst_contiguous, const int target_rank, const int src_dims, const int dst_dims, const _XMP_array_section_t *src_info, const _XMP_array_section_t *dst_info, const _XMP_coarray_t *src_desc, const _XMP_coarray_t *dst_desc, void *dst, const size_t src_elmts, const size_t dst_elmts) |
| void | _XMP_fjrdma_build_sync_images_table () |
| Build table and Initialize for sync images. More... | |
| void | _XMP_fjrdma_sync_images (const int num, int *image_set, int *status) |
| Execute sync images. More... | |
Variables | |
| int | _XMP_flag_put_nb |
| These variables are temporral. More... | |
| int | _XMP_flag_put_nb_rr |
| int | _XMP_flag_put_nb_rr_i |
| #define _XMP_COARRAY_FLAG_NIC_TMP_0 (FJMPI_RDMA_LOCAL_NIC0 | FJMPI_RDMA_REMOTE_NIC0) |
| #define _XMP_COARRAY_FLAG_NIC_TMP_1 (FJMPI_RDMA_LOCAL_NIC1 | FJMPI_RDMA_REMOTE_NIC1) |
| #define _XMP_COARRAY_FLAG_NIC_TMP_2 (FJMPI_RDMA_LOCAL_NIC2 | FJMPI_RDMA_REMOTE_NIC2) |
| #define _XMP_COARRAY_FLAG_NIC_TMP_3 (FJMPI_RDMA_LOCAL_NIC3 | FJMPI_RDMA_REMOTE_NIC3) |
| #define _XMP_COARRAY_FLAG_NIC_TMP_i0 (FJMPI_RDMA_LOCAL_NIC0 | FJMPI_RDMA_REMOTE_NIC0 | FJMPI_RDMA_IMMEDIATE_RETURN) |
| #define _XMP_COARRAY_FLAG_NIC_TMP_i1 (FJMPI_RDMA_LOCAL_NIC1 | FJMPI_RDMA_REMOTE_NIC1 | FJMPI_RDMA_IMMEDIATE_RETURN) |
| #define _XMP_COARRAY_FLAG_NIC_TMP_i2 (FJMPI_RDMA_LOCAL_NIC2 | FJMPI_RDMA_REMOTE_NIC2 | FJMPI_RDMA_IMMEDIATE_RETURN) |
| #define _XMP_COARRAY_FLAG_NIC_TMP_i3 (FJMPI_RDMA_LOCAL_NIC3 | FJMPI_RDMA_REMOTE_NIC3 | FJMPI_RDMA_IMMEDIATE_RETURN) |
| #define _XMP_COARRAY_SEND_NIC_TMP_0 FJMPI_RDMA_LOCAL_NIC0 |
| #define _XMP_COARRAY_SEND_NIC_TMP_1 FJMPI_RDMA_LOCAL_NIC1 |
| #define _XMP_COARRAY_SEND_NIC_TMP_2 FJMPI_RDMA_LOCAL_NIC2 |
| #define _XMP_COARRAY_SEND_NIC_TMP_3 FJMPI_RDMA_LOCAL_NIC3 |
| #define _XMP_FJRDMA_MAX_GET 60 /** This value is trial */ |
| #define _XMP_FJRDMA_MAX_MEMID 511 |
| #define _XMP_FJRDMA_MAX_MGET 100 /** This value is trial */ |
| #define _XMP_FJRDMA_MAX_MPUT 1993 |
| #define _XMP_FJRDMA_MAX_PUT 60 /** This value is trial */ |
| #define _XMP_FJRDMA_MAX_SIZE 16777212 |
| void _XMP_add_num_of_gets | ( | ) |
Add 1 to _num_of_gets.

| void _XMP_add_num_of_puts | ( | ) |
Add 1 to _num_of_puts.

| void _XMP_fjrdma_build_sync_images_table | ( | ) |
| void _XMP_fjrdma_coarray_lastly_deallocate | ( | ) |
Deallocate memory region when calling _XMP_coarray_lastly_deallocate()

| void _XMP_fjrdma_coarray_malloc | ( | _XMP_coarray_t * | coarray_desc, |
| void ** | addr, | ||
| const size_t | coarray_size | ||
| ) |

| void _XMP_fjrdma_contiguous_get | ( | const int | target_rank, |
| const _XMP_coarray_t * | dst_desc, | ||
| const _XMP_coarray_t * | src_desc, | ||
| const uint64_t | dst_offset, | ||
| const uint64_t | src_offset, | ||
| const size_t | dst_elmts, | ||
| const size_t | src_elmts, | ||
| const size_t | elmt_size | ||
| ) |
| void _XMP_fjrdma_contiguous_put | ( | const int | target_rank, |
| const uint64_t | dst_offset, | ||
| const uint64_t | src_offset, | ||
| const _XMP_coarray_t * | dst_desc, | ||
| const _XMP_coarray_t * | src_desc, | ||
| const size_t | dst_elmts, | ||
| const size_t | src_elmts, | ||
| const size_t | elmt_size | ||
| ) |
| void _XMP_fjrdma_get | ( | const int | src_contiguous, |
| const int | dst_contiguous, | ||
| const int | target_rank, | ||
| const int | src_dims, | ||
| const int | dst_dims, | ||
| const _XMP_array_section_t * | src_info, | ||
| const _XMP_array_section_t * | dst_info, | ||
| const _XMP_coarray_t * | src_desc, | ||
| const _XMP_coarray_t * | dst_desc, | ||
| void * | dst, | ||
| const size_t | src_elmts, | ||
| const size_t | dst_elmts | ||
| ) |

| void _XMP_fjrdma_put | ( | const int | dst_contiguous, |
| const int | src_contiguous, | ||
| const int | target_rank, | ||
| const int | dst_dims, | ||
| const int | src_dims, | ||
| const _XMP_array_section_t * | dst_info, | ||
| const _XMP_array_section_t * | src_info, | ||
| const _XMP_coarray_t * | dst_desc, | ||
| const _XMP_coarray_t * | src_desc, | ||
| void * | src, | ||
| const size_t | dst_elmts, | ||
| const size_t | src_elmts | ||
| ) |

| void _XMP_fjrdma_regmem | ( | _XMP_coarray_t * | coarray_desc, |
| void * | addr, | ||
| const size_t | coarray_size | ||
| ) |


| void _XMP_fjrdma_sync_all | ( | ) |
Execute sync_all.


| void _XMP_fjrdma_sync_images | ( | const int | num, |
| int * | image_set, | ||
| int * | status | ||
| ) |
Execute sync images.
| [in] | num | number of nodes |
| [in] | *image_set | image set |
| [out] | status | status |


| void _XMP_fjrdma_sync_memory | ( | ) |
Execute sync_memory.


| void _XMP_fjrdma_sync_memory_get | ( | ) |
| void _XMP_fjrdma_sync_memory_put | ( | ) |
End these variables are temporral.
Execute sync_memory for put operation

|
extern |
These variables are temporral.
|
extern |
|
extern |