| libxmp/libxmpf in Omni Compiler
    1.3.4
    | 
 
 
 
Go to the source code of this file.
|  | 
| struct | _resourceSet_t | 
|  | MEMORY MANAGEMENT STRUCTURE-I (for automatic deallocation) runtime resource corresponding to a procedure or to the entire program.  More... 
 | 
|  | 
| struct | _memoryChunk_t | 
|  | structure for each malloc/free call Every memory chunk is linked both:  More... 
 | 
|  | 
| struct | _coarrayInfo_t | 
|  | structure for each coarray variable One or more coarrays can be linked from a single memory chunk and be malloc'ed and be free'd together.  More... 
 | 
|  | 
| struct | _memoryChunkOrder_t | 
|  | MEMORY MANAGEMENT STRUCTURE-II (for dynamic ALLOCATE/DEALLOCATE stmts.  More... 
 | 
|  | 
| struct | _sortedChunkTable_t | 
|  | MEMORY MANAGEMENT STRUCTURE-III (for binary search for memory chunk) table of memory chunks sorted in order of local address.  More... 
 | 
|  | 
◆ _SortedChunkTableInitSize
      
        
          | #define _SortedChunkTableInitSize   256 | 
      
 
 
◆ DIV_CEILING
      
        
          | #define DIV_CEILING | ( |  | m, | 
        
          |  |  |  | n | 
        
          |  | ) |  | (((m)-1)/(n)+1) | 
      
 
 
◆ forallCoarrayInfo
      
        
          | #define forallCoarrayInfo | ( |  | ci, | 
        
          |  |  |  | chk | 
        
          |  | ) |  |  | 
      
 
Value:
                                      _ci1_ != NULL;                    \
                                      (ci) = _ci1_, _ci1_=_ci1_->
next)
 
 
 
◆ forallMemoryChunk
      
        
          | #define forallMemoryChunk | ( |  | chk, | 
        
          |  |  |  | rs | 
        
          |  | ) |  |  | 
      
 
Value:
                                      _chk1_ != NULL;                   \
                                      (chk)=_chk1_, _chk1_=_chk1_->
next)
 
 
 
◆ forallMemoryChunkOrder
      
        
          | #define forallMemoryChunkOrder | ( |  | cp | ) |  | 
      
 
Value:
                                    _cp1_ != NULL;                     \
                                    (cp)=_cp1_, _cp1_=_cp1_->
next)
 
 
 
◆ forallMemoryChunkOrderRev
      
        
          | #define forallMemoryChunkOrderRev | ( |  | cp | ) |  | 
      
 
Value:
                                       _cp1_ != NULL;                   \
                                       (cp)=_cp1_, _cp1_=_cp1_->
prev)
 
 
 
◆ forallMemoryChunkRev
      
        
          | #define forallMemoryChunkRev | ( |  | chk, | 
        
          |  |  |  | rs | 
        
          |  | ) |  |  | 
      
 
Value:
                                         _chk1_ != NULL;                \
                                         (chk) = _chk1_, _chk1_=_chk1_->
prev)
 
 
 
◆ forallResourceSet
      
        
          | #define forallResourceSet | ( |  | rs | ) |  | 
      
 
Value:
                                   _rs1_ != NULL;                       \
                                   (rs)=_rs1_, _rs1_=_rs1_->next)
 
 
 
◆ forallResourceSetRev
      
        
          | #define forallResourceSetRev | ( |  | rs | ) |  | 
      
 
Value:
                                      _rs1_ != NULL;                    \
                                      (rs)=_rs1_, _rs1_=_rs1_->prev)
 
 
 
◆ IsEmptyMemoryChunk
      
        
          | #define IsEmptyMemoryChunk | ( |  | chk | ) | ((chk)->headCoarray->next->next == NULL) | 
      
 
 
◆ IsEmptyResourceSet
      
        
          | #define IsEmptyResourceSet | ( |  | rs | ) | ((rs)->headChunk->next->next == NULL) | 
      
 
 
◆ IsFirstCoarrayInfo
      
        
          | #define IsFirstCoarrayInfo | ( |  | ci | ) | ((ci)->prev->prev == NULL) | 
      
 
 
◆ IsFirstMemoryChunk
      
        
          | #define IsFirstMemoryChunk | ( |  | chk | ) | ((chk)->prev->prev == NULL) | 
      
 
 
◆ IsLastCoarrayInfo
      
        
          | #define IsLastCoarrayInfo | ( |  | ci | ) | ((ci)->next->next == NULL) | 
      
 
 
◆ IsLastMemoryChunk
      
        
          | #define IsLastMemoryChunk | ( |  | chk | ) | ((chk)->next->next == NULL) | 
      
 
 
◆ IsOnlyCoarrayInfo
 
 
MEMORY MANAGEMENT STRUCTURE-I (for automatic deallocation) runtime resource corresponding to a proced...
Definition: _xmpco_alloc.h:64
_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)
MemoryChunkOrder_t * prev
Definition: _xmpco_alloc.h:112
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)
int _XMP_gpu_device_count
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 xmp_get_gpu_count(void)
Definition: xmp_gpu_lib.c:3
Definition: xmp_data_struct.h:475
void _XMP_gpu_unpack_shadow_NORMAL(_XMP_gpu_data_t *desc, void *lo_buffer, void *hi_buffer, int array_index)
Definition: xmp_gpu_shadow.c:108
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:480
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
structure for each malloc/free call Every memory chunk is linked both:
Definition: _xmpco_alloc.h:76
void _XMP_threads_init(void)
Definition: xmp_threads_runtime.c:3
int dim
Definition: xmp_data_struct.h:272
MemoryChunk_t * next
Definition: _xmpco_alloc.h:78
MemoryChunkOrder_t * next
Definition: _xmpco_alloc.h:113
void _XMP_fatal(char *msg)
Definition: xmp_util.c:42
MEMORY MANAGEMENT STRUCTURE-II (for dynamic ALLOCATE/DEALLOCATE stmts.
Definition: _xmpco_alloc.h:111
int par_size
Definition: xmp_data_struct.h:207
void _XMP_gpu_pack_shadow_NORMAL(_XMP_gpu_data_t *desc, void **lo_buffer, void **hi_buffer, int array_index)
Definition: xmp_gpu_shadow.c:17
#define _XMP_RETURN_IF_SINGLE
Definition: xmp_internal.h:37
MemoryChunk_t * prev
Definition: _xmpco_alloc.h:77
CoarrayInfo_t * next
Definition: _xmpco_alloc.h:94
structure for each coarray variable One or more coarrays can be linked from a single memory chunk and...
Definition: _xmpco_alloc.h:92
void _XMP_threads_finalize(void)
Definition: xmp_threads_runtime.c:7
_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