Skip to content

Commit

Permalink
Merge pull request #1133 from davidozog/pr/v1.5.3rc-minor_fixes
Browse files Browse the repository at this point in the history
fix pedantic compiler warnings
  • Loading branch information
David Ozog authored Jun 5, 2024
2 parents 934f44a + 602a1a3 commit ef2e76e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mpp/shmemx_c_func.h4
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ SHMEM_FUNCTION_ATTRIBUTES void SHPRE()shmemx_ctx_signal_set(shmem_ctx_t ctx, uin

/* Separate initializers */
SHMEM_FUNCTION_ATTRIBUTES void SHPRE()shmemx_heap_create(void *base, size_t size, int device_type, int device_index);
SHMEM_FUNCTION_ATTRIBUTES void SHPRE()shmemx_heap_preinit();
SHMEM_FUNCTION_ATTRIBUTES void SHPRE()shmemx_heap_preinit(void);
SHMEM_FUNCTION_ATTRIBUTES int SHPRE()shmemx_heap_preinit_thread(int requested, int *provided);
SHMEM_FUNCTION_ATTRIBUTES void SHPRE()shmemx_heap_postinit();
SHMEM_FUNCTION_ATTRIBUTES void SHPRE()shmemx_heap_postinit(void);
2 changes: 1 addition & 1 deletion src/shmem_team.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ int shmem_internal_team_split_strided(shmem_internal_team_t *parent_team, int PE

shmem_internal_team_release_psyncs(parent_team, SYNC);

/* This OR reduction assures all PEs return the same value. */
/* This MAX reduction assures all PEs return the same value. */
psync = shmem_internal_team_choose_psync(parent_team, REDUCE);

shmem_internal_op_to_all(team_ret_val_reduced, team_ret_val, 1, sizeof(int),
Expand Down
2 changes: 2 additions & 0 deletions src/transport_ofi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1348,6 +1348,7 @@ int allocate_fabric_resources(struct fabric_info *info)
}

#ifdef USE_HWLOC
static inline
struct fi_info *assign_nic_with_hwloc(struct fi_info *fabric, struct fi_info **provs, size_t num_nics) {
int ret = 0;
hwloc_bitmap_t bindset = hwloc_bitmap_alloc();
Expand Down Expand Up @@ -1420,6 +1421,7 @@ static int compare_nic_names(const void *f1, const void *f2)
return strcmp((*fabric1)->nic->device_attr->name, (*fabric2)->nic->device_attr->name);
}

static inline
bool nic_already_used(struct fid_nic *nic, struct fi_info *fabrics, int num_nics)
{
struct fi_info *cur_fabric = fabrics;
Expand Down

0 comments on commit ef2e76e

Please sign in to comment.