Skip to content

Commit

Permalink
Fix region transfer with object static partitioning (#214)
Browse files Browse the repository at this point in the history
* Update pdc_region_transfer.c

* Committing clang-format changes

* Update .gitlab-ci.yml

Fix issue with Perlmutter CI libfabric module

---------

Co-authored-by: github-actions <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
houjun and github-actions[bot] authored Nov 26, 2024
1 parent 2e5de75 commit 25db7c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ perlmutter-no-cache-build:
SUPERCOMPUTER: "perlmutter"
MERCURY_DIR: "/global/cfs/cdirs/${PDC_PROJECT}/pdc-perlmutter/mercury/install"
script:
- module load libfabric/1.15.2.0
- module load libfabric
- module list
- mkdir -p ${PDC_BUILD_PATH}/perlmutter/no-cache
- cd ${PDC_BUILD_PATH}/perlmutter/no-cache
Expand Down Expand Up @@ -51,7 +51,7 @@ perlmutter-cache-build:
SUPERCOMPUTER: "perlmutter"
MERCURY_DIR: "/global/cfs/cdirs/${PDC_PROJECT}/pdc-perlmutter/mercury/install"
script:
- module load libfabric/1.15.2.0
- module load libfabric
- module list
- mkdir -p ${PDC_BUILD_PATH}/perlmutter/cache
- cd ${PDC_BUILD_PATH}/perlmutter/cache
Expand Down Expand Up @@ -374,7 +374,7 @@ perlmutter-metrics-build:
SUPERCOMPUTER: "perlmutter"
MERCURY_DIR: "/global/cfs/cdirs/${PDC_PROJECT}/pdc-perlmutter/mercury/install"
script:
- module load libfabric/1.15.2.0
- module load libfabric
- module list
- mkdir -p ${PDC_BUILD_PATH}/perlmutter/metrics
- cd ${PDC_BUILD_PATH}/perlmutter/metrics
Expand Down
2 changes: 2 additions & 0 deletions src/api/pdc_region/pdc_region_transfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ static_region_partition(char *buf, int ndim, uint64_t unit, pdc_access_t access_
}
// Use the remainder theorem to split along one dimension of regions.
s = obj_dims[split_dim] / pdc_server_num_g;
if (s == 0)
s = 1;
x = pdc_server_num_g - obj_dims[split_dim] % pdc_server_num_g;

*data_server_ids = (uint32_t *)malloc(sizeof(uint32_t) * pdc_server_num_g);
Expand Down

0 comments on commit 25db7c1

Please sign in to comment.