diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1225e7c0..a7c07bcf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 @@ -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 @@ -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 diff --git a/src/api/pdc_region/pdc_region_transfer.c b/src/api/pdc_region/pdc_region_transfer.c index f343e40f..9297796a 100644 --- a/src/api/pdc_region/pdc_region_transfer.c +++ b/src/api/pdc_region/pdc_region_transfer.c @@ -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);