Skip to content

Commit

Permalink
Support unlimited object dimension szie
Browse files Browse the repository at this point in the history
  • Loading branch information
houjun committed Aug 2, 2023
1 parent bc245e1 commit 96a736a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/commons/include/pdc_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ typedef enum { PDC_PERSIST, PDC_TRANSIENT } pdc_lifetime_t;

typedef enum { PDC_SERVER_DEFAULT = 0, PDC_SERVER_PER_CLIENT = 1 } pdc_server_selection_t;

typedef struct pdc_histogram_t { //?????????
typedef struct pdc_histogram_t {
pdc_var_type_t dtype;
int nbin;
double incr;
Expand All @@ -59,4 +59,6 @@ typedef struct pdc_histogram_t { //?????????
#define SUCCEED 0
#define FAIL (-1)

#define PDC_SIZE_UNLIMITED UINT64_MAX

#endif /* PDC_PUBLIC_H */
2 changes: 1 addition & 1 deletion src/tests/region_transfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ main(int argc, char **argv)

int *data = (int *)malloc(sizeof(int) * BUF_LEN);
int *data_read = (int *)malloc(sizeof(int) * BUF_LEN);
dims[0] = BUF_LEN;
dims[0] = PDC_SIZE_UNLIMITED;

#ifdef ENABLE_MPI
MPI_Init(&argc, &argv);
Expand Down

0 comments on commit 96a736a

Please sign in to comment.