GlobalArrays / ga

Partitioned Global Address Space (PGAS) library for distributed arrays
http://hpc.pnl.gov/globalarrays/
Other
99 stars 38 forks source link

armci_giov_t struct member name mismatch between source and docs #278

Open jeffhammond opened 1 year ago

jeffhammond commented 1 year ago

TL;DR ptr_ar_len vs ptr_array_len.

This is easy to figure out but means that one cannot write code based on the docs.

https://hpc.pnl.gov/armci/documentation.htm says

DATA TYPE:
       typedef struct {
         void **src_ptr_ar;  - Source starting addresses of each data segment.
         void **dst_ptr_ar;  - Destination starting addresses of each data segment.
         int bytes;         - The length of each segment in bytes.
         int ptr_ar_len;    - Number of data segment.
       }armci_giov_t;

source says:

typedef struct {
    void **src_ptr_array;
    void **dst_ptr_array;
    int  ptr_array_len;
    int bytes;
} armci_giov_t;