1
1

Merge pull request #1239 from rhc54/topic/cleanup

Cleanup the warnings from the ompi layer when compiling optimized under Mac OSX
Этот коммит содержится в:
rhc54 2015-12-21 07:23:31 -08:00
родитель db4f483653 ac6289dca6
Коммит aa17bdf6e8
22 изменённых файлов: 52 добавлений и 6 удалений

Просмотреть файл

@ -99,6 +99,7 @@ int bcol_basesmuma_free_buff( sm_buffer_mgmt * buff_block,
* associated with this bank have been freed. * associated with this bank have been freed.
*/ */
assert(generation == buff_block->ctl_buffs_mgmt[memory_bank].bank_gen_counter); assert(generation == buff_block->ctl_buffs_mgmt[memory_bank].bank_gen_counter);
(void)generation; // silence compiler warning
/* /*
* increment counter of completed buffers * increment counter of completed buffers

Просмотреть файл

@ -255,6 +255,9 @@ int bcol_ptpcoll_allreduce_narraying_init(bcol_function_args_t *input_args,
buffer_size = ptpcoll_module->ml_mem.size_buffer - BCOL_HEADER_MAX; buffer_size = ptpcoll_module->ml_mem.size_buffer - BCOL_HEADER_MAX;
assert(buffer_size >= count * dtype->super.size * assert(buffer_size >= count * dtype->super.size *
ptpcoll_module->k_nomial_radix); ptpcoll_module->k_nomial_radix);
(void)buffer_size; // silence compiler warning
(void)dtype;
(void)count;
return bcol_ptpcoll_allreduce_narraying_progress (input_args, const_args); return bcol_ptpcoll_allreduce_narraying_progress (input_args, const_args);
} }

Просмотреть файл

@ -203,6 +203,7 @@ int ompi_coll_base_allgather_intra_bruck(const void *sbuf, int scount,
err_hndl: err_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank)); __FILE__, line, err, rank));
(void)line; // silence compiler warning
return err; return err;
} }
@ -339,6 +340,7 @@ ompi_coll_base_allgather_intra_recursivedoubling(const void *sbuf, int scount,
err_hndl: err_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank)); __FILE__, line, err, rank));
(void)line; // silence compiler warning
return err; return err;
} }
@ -426,6 +428,7 @@ int ompi_coll_base_allgather_intra_ring(const void *sbuf, int scount,
err_hndl: err_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank)); __FILE__, line, err, rank));
(void)line; // silence compiler warning
return err; return err;
} }
@ -599,6 +602,7 @@ ompi_coll_base_allgather_intra_neighborexchange(const void *sbuf, int scount,
err_hndl: err_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank)); __FILE__, line, err, rank));
(void)line; // silence compiler warning
return err; return err;
} }
@ -658,6 +662,7 @@ int ompi_coll_base_allgather_intra_two_procs(const void *sbuf, int scount,
err_hndl: err_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank)); __FILE__, line, err, rank));
(void)line; // silence compiler warning
return err; return err;
} }

Просмотреть файл

@ -211,6 +211,7 @@ int ompi_coll_base_allgatherv_intra_bruck(const void *sbuf, int scount,
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank)); __FILE__, line, err, rank));
(void)line; // silence compiler warning
return err; return err;
} }
@ -297,6 +298,7 @@ int ompi_coll_base_allgatherv_intra_ring(const void *sbuf, int scount,
err_hndl: err_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank)); __FILE__, line, err, rank));
(void)line; // silence compiler warning
return err; return err;
} }
@ -502,6 +504,7 @@ ompi_coll_base_allgatherv_intra_neighborexchange(const void *sbuf, int scount,
err_hndl: err_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank)); __FILE__, line, err, rank));
(void)line; // silence compiler warning
return err; return err;
} }
@ -563,6 +566,7 @@ int ompi_coll_base_allgatherv_intra_two_procs(const void *sbuf, int scount,
err_hndl: err_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank)); __FILE__, line, err, rank));
(void)line; // silence compiler warning
return err; return err;
} }

Просмотреть файл

@ -269,6 +269,7 @@ ompi_coll_base_allreduce_intra_recursivedoubling(const void *sbuf, void *rbuf,
error_hndl: error_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tRank %d Error occurred %d\n", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tRank %d Error occurred %d\n",
__FILE__, line, rank, ret)); __FILE__, line, rank, ret));
(void)line; // silence compiler warning
if (NULL != inplacebuf) free(inplacebuf); if (NULL != inplacebuf) free(inplacebuf);
return ret; return ret;
} }
@ -528,6 +529,7 @@ ompi_coll_base_allreduce_intra_ring(const void *sbuf, void *rbuf, int count,
error_hndl: error_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tRank %d Error occurred %d\n", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tRank %d Error occurred %d\n",
__FILE__, line, rank, ret)); __FILE__, line, rank, ret));
(void)line; // silence compiler warning
if (NULL != inbuf[0]) free(inbuf[0]); if (NULL != inbuf[0]) free(inbuf[0]);
if (NULL != inbuf[1]) free(inbuf[1]); if (NULL != inbuf[1]) free(inbuf[1]);
return ret; return ret;
@ -846,6 +848,7 @@ ompi_coll_base_allreduce_intra_ring_segmented(const void *sbuf, void *rbuf, int
error_hndl: error_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tRank %d Error occurred %d\n", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tRank %d Error occurred %d\n",
__FILE__, line, rank, ret)); __FILE__, line, rank, ret));
(void)line; // silence compiler warning
if (NULL != inbuf[0]) free(inbuf[0]); if (NULL != inbuf[0]) free(inbuf[0]);
if (NULL != inbuf[1]) free(inbuf[1]); if (NULL != inbuf[1]) free(inbuf[1]);
return ret; return ret;

Просмотреть файл

@ -124,6 +124,7 @@ mca_coll_base_alltoall_intra_basic_inplace(const void *rbuf, int rcount,
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, OPAL_OUTPUT((ompi_coll_base_framework.framework_output,
"%s:%4d\tError occurred %d, rank %2d", __FILE__, line, err, "%s:%4d\tError occurred %d, rank %2d", __FILE__, line, err,
rank)); rank));
(void)line; // silence compiler warning
ompi_coll_base_free_reqs(base_module->base_data->mcct_reqs, 2); ompi_coll_base_free_reqs(base_module->base_data->mcct_reqs, 2);
} }
@ -185,6 +186,7 @@ int ompi_coll_base_alltoall_intra_pairwise(const void *sbuf, int scount,
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, OPAL_OUTPUT((ompi_coll_base_framework.framework_output,
"%s:%4d\tError occurred %d, rank %2d", __FILE__, line, "%s:%4d\tError occurred %d, rank %2d", __FILE__, line,
err, rank)); err, rank));
(void)line; // silence compiler warning
return err; return err;
} }
@ -307,6 +309,7 @@ int ompi_coll_base_alltoall_intra_bruck(const void *sbuf, int scount,
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, OPAL_OUTPUT((ompi_coll_base_framework.framework_output,
"%s:%4d\tError occurred %d, rank %2d", __FILE__, line, err, "%s:%4d\tError occurred %d, rank %2d", __FILE__, line, err,
rank)); rank));
(void)line; // silence compiler warning
if (tmpbuf != NULL) free(tmpbuf_free); if (tmpbuf != NULL) free(tmpbuf_free);
if (displs != NULL) free(displs); if (displs != NULL) free(displs);
if (blen != NULL) free(blen); if (blen != NULL) free(blen);
@ -468,6 +471,7 @@ int ompi_coll_base_alltoall_intra_linear_sync(const void *sbuf, int scount,
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, OPAL_OUTPUT((ompi_coll_base_framework.framework_output,
"%s:%4d\tError occurred %d, rank %2d", __FILE__, line, error, "%s:%4d\tError occurred %d, rank %2d", __FILE__, line, error,
rank)); rank));
(void)line; // silence compiler warning
ompi_coll_base_free_reqs(reqs, 2 * total_reqs); ompi_coll_base_free_reqs(reqs, 2 * total_reqs);
return error; return error;
} }
@ -528,6 +532,7 @@ int ompi_coll_base_alltoall_intra_two_procs(const void *sbuf, int scount,
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, OPAL_OUTPUT((ompi_coll_base_framework.framework_output,
"%s:%4d\tError occurred %d, rank %2d", __FILE__, line, err, "%s:%4d\tError occurred %d, rank %2d", __FILE__, line, err,
rank)); rank));
(void)line; // silence compiler warning
return err; return err;
} }
@ -650,6 +655,7 @@ int ompi_coll_base_alltoall_intra_basic_linear(const void *sbuf, int scount,
if( MPI_SUCCESS != err ) { if( MPI_SUCCESS != err ) {
OPAL_OUTPUT( (ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT( (ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank) ); __FILE__, line, err, rank) );
(void)line; // silence compiler warning
} }
/* Free the reqs in all cases as they are persistent requests */ /* Free the reqs in all cases as they are persistent requests */
ompi_coll_base_free_reqs(req, nreqs); ompi_coll_base_free_reqs(req, nreqs);

Просмотреть файл

@ -47,7 +47,7 @@ mca_coll_base_alltoallv_intra_basic_inplace(const void *rbuf, const int *rcounts
MPI_Request *preq; MPI_Request *preq;
char *tmp_buffer; char *tmp_buffer;
size_t max_size, rdtype_size; size_t max_size, rdtype_size;
OPAL_PTRDIFF_TYPE ext, gap; OPAL_PTRDIFF_TYPE ext, gap = 0;
/* Initialize. */ /* Initialize. */
@ -184,6 +184,7 @@ ompi_coll_base_alltoallv_intra_pairwise(const void *sbuf, const int *scounts, co
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, OPAL_OUTPUT((ompi_coll_base_framework.framework_output,
"%s:%4d\tError occurred %d, rank %2d at step %d", __FILE__, line, "%s:%4d\tError occurred %d, rank %2d at step %d", __FILE__, line,
err, rank, step)); err, rank, step));
(void)line; // silence compiler warning
return err; return err;
} }

Просмотреть файл

@ -86,6 +86,7 @@ ompi_coll_base_sendrecv_zero(int dest, int stag,
*/ */
OPAL_OUTPUT ((ompi_coll_base_framework.framework_output, "%s:%d: Error %d occurred\n", OPAL_OUTPUT ((ompi_coll_base_framework.framework_output, "%s:%d: Error %d occurred\n",
__FILE__, line, err)); __FILE__, line, err));
(void)line; // silence compiler warning
return err; return err;
} }
@ -169,6 +170,7 @@ int ompi_coll_base_barrier_intra_doublering(struct ompi_communicator_t *comm,
err_hndl: err_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT((ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank)); __FILE__, line, err, rank));
(void)line; // silence compiler warning
return err; return err;
} }
@ -247,6 +249,7 @@ int ompi_coll_base_barrier_intra_recursivedoubling(struct ompi_communicator_t *c
err_hndl: err_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT((ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank)); __FILE__, line, err, rank));
(void)line; // silence compiler warning
return err; return err;
} }
@ -282,6 +285,7 @@ int ompi_coll_base_barrier_intra_bruck(struct ompi_communicator_t *comm,
err_hndl: err_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT((ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank)); __FILE__, line, err, rank));
(void)line; // silence compiler warning
return err; return err;
} }
@ -369,6 +373,7 @@ int ompi_coll_base_barrier_intra_basic_linear(struct ompi_communicator_t *comm,
err_hndl: err_hndl:
OPAL_OUTPUT( (ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT( (ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank) ); __FILE__, line, err, rank) );
(void)line; // silence compiler warning
if( NULL != requests ) if( NULL != requests )
ompi_coll_base_free_reqs(requests, size-1); ompi_coll_base_free_reqs(requests, size-1);
return err; return err;

Просмотреть файл

@ -41,7 +41,7 @@ ompi_coll_base_bcast_intra_generic( void* buffer,
uint32_t count_by_segment, uint32_t count_by_segment,
ompi_coll_tree_t* tree ) ompi_coll_tree_t* tree )
{ {
int err = 0, line, i, rank, size, segindex, req_index; int err = 0, line, i, rank, segindex, req_index;
int num_segments; /* Number of segments */ int num_segments; /* Number of segments */
int sendcount; /* number of elements sent in this segment */ int sendcount; /* number of elements sent in this segment */
size_t realsegsize, type_size; size_t realsegsize, type_size;
@ -52,9 +52,12 @@ ompi_coll_base_bcast_intra_generic( void* buffer,
ompi_request_t **send_reqs = NULL; ompi_request_t **send_reqs = NULL;
#endif #endif
#if OPAL_ENABLE_DEBUG
int size;
size = ompi_comm_size(comm); size = ompi_comm_size(comm);
rank = ompi_comm_rank(comm);
assert( size > 1 ); assert( size > 1 );
#endif
rank = ompi_comm_rank(comm);
ompi_datatype_get_extent (datatype, &lb, &extent); ompi_datatype_get_extent (datatype, &lb, &extent);
ompi_datatype_type_size( datatype, &type_size ); ompi_datatype_type_size( datatype, &type_size );
@ -240,6 +243,7 @@ ompi_coll_base_bcast_intra_generic( void* buffer,
error_hndl: error_hndl:
OPAL_OUTPUT( (ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT( (ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank) ); __FILE__, line, err, rank) );
(void)line; // silence compiler warnings
if( MPI_SUCCESS != err ) { if( MPI_SUCCESS != err ) {
ompi_coll_base_free_reqs( recv_reqs, 2); ompi_coll_base_free_reqs( recv_reqs, 2);
if( NULL != send_reqs ) { if( NULL != send_reqs ) {
@ -603,6 +607,7 @@ ompi_coll_base_bcast_intra_split_bintree ( void* buffer,
error_hndl: error_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d", __FILE__,line,err,rank)); OPAL_OUTPUT((ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d", __FILE__,line,err,rank));
(void)line; // silence compiler warning
return (err); return (err);
} }

Просмотреть файл

@ -193,6 +193,7 @@ ompi_coll_base_gather_intra_binomial(const void *sbuf, int scount,
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank)); __FILE__, line, err, rank));
(void)line; // silence compiler warning
return err; return err;
} }
@ -330,6 +331,7 @@ ompi_coll_base_gather_intra_linear_sync(const void *sbuf, int scount,
OPAL_OUTPUT (( ompi_coll_base_framework.framework_output, OPAL_OUTPUT (( ompi_coll_base_framework.framework_output,
"ERROR_HNDL: node %d file %s line %d error %d\n", "ERROR_HNDL: node %d file %s line %d error %d\n",
rank, __FILE__, line, ret )); rank, __FILE__, line, ret ));
(void)line; // silence compiler warning
return ret; return ret;
} }

Просмотреть файл

@ -326,6 +326,7 @@ int ompi_coll_base_reduce_generic( const void* sendbuf, void* recvbuf, int origi
OPAL_OUTPUT (( ompi_coll_base_framework.framework_output, OPAL_OUTPUT (( ompi_coll_base_framework.framework_output,
"ERROR_HNDL: node %d file %s line %d error %d\n", "ERROR_HNDL: node %d file %s line %d error %d\n",
rank, __FILE__, line, ret )); rank, __FILE__, line, ret ));
(void)line; // silence compiler warning
if( inbuf_free[0] != NULL ) free(inbuf_free[0]); if( inbuf_free[0] != NULL ) free(inbuf_free[0]);
if( inbuf_free[1] != NULL ) free(inbuf_free[1]); if( inbuf_free[1] != NULL ) free(inbuf_free[1]);
if( accumbuf_free != NULL ) free(accumbuf); if( accumbuf_free != NULL ) free(accumbuf);

Просмотреть файл

@ -607,6 +607,7 @@ ompi_coll_base_reduce_scatter_intra_ring( const void *sbuf, void *rbuf, const in
error_hndl: error_hndl:
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tRank %d Error occurred %d\n", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tRank %d Error occurred %d\n",
__FILE__, line, rank, ret)); __FILE__, line, rank, ret));
(void)line; // silence compiler warning
if (NULL != displs) free(displs); if (NULL != displs) free(displs);
if (NULL != accumbuf_free) free(accumbuf_free); if (NULL != accumbuf_free) free(accumbuf_free);
if (NULL != inbuf_free[0]) free(inbuf_free[0]); if (NULL != inbuf_free[0]) free(inbuf_free[0]);

Просмотреть файл

@ -170,6 +170,7 @@ ompi_coll_base_scatter_intra_binomial( const void *sbuf, int scount,
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank)); __FILE__, line, err, rank));
(void)line; // silence compiler warning
return err; return err;
} }

Просмотреть файл

@ -100,6 +100,7 @@ int ompi_coll_base_sendrecv_nonzero_actual( void* sendbuf, size_t scount,
*/ */
OPAL_OUTPUT ((ompi_coll_base_framework.framework_output, "%s:%d: Error %d occurred\n", OPAL_OUTPUT ((ompi_coll_base_framework.framework_output, "%s:%d: Error %d occurred\n",
__FILE__, line, err)); __FILE__, line, err));
(void)line; // silence compiler warning
if (MPI_STATUS_IGNORE != status) { if (MPI_STATUS_IGNORE != status) {
status->MPI_ERROR = err; status->MPI_ERROR = err;
} }

Просмотреть файл

@ -155,6 +155,7 @@ mca_coll_basic_allgather_inter(const void *sbuf, int scount,
if( MPI_SUCCESS != err ) { if( MPI_SUCCESS != err ) {
OPAL_OUTPUT( (ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d", OPAL_OUTPUT( (ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d",
__FILE__, line, err, rank) ); __FILE__, line, err, rank) );
(void)line; // silence compiler warning
if( NULL != reqs ) ompi_coll_base_free_reqs(reqs, rsize+1); if( NULL != reqs ) ompi_coll_base_free_reqs(reqs, rsize+1);
} }
if (NULL != tmpbuf) { if (NULL != tmpbuf) {

Просмотреть файл

@ -195,6 +195,7 @@ mca_coll_basic_allreduce_inter(const void *sbuf, void *rbuf, int count,
if( MPI_SUCCESS != err ) { if( MPI_SUCCESS != err ) {
OPAL_OUTPUT((ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d", __FILE__, OPAL_OUTPUT((ompi_coll_base_framework.framework_output,"%s:%4d\tError occurred %d, rank %2d", __FILE__,
line, err, rank)); line, err, rank));
(void)line; // silence compiler warning
ompi_coll_base_free_reqs(reqs, rsize - 1); ompi_coll_base_free_reqs(reqs, rsize - 1);
} }
if (NULL != tmpbuf) { if (NULL != tmpbuf) {

Просмотреть файл

@ -294,7 +294,7 @@ static inline void NBC_Free (NBC_Handle* handle) {
* to be called *only* from the progress thread !!! */ * to be called *only* from the progress thread !!! */
int NBC_Progress(NBC_Handle *handle) { int NBC_Progress(NBC_Handle *handle) {
int flag, res, ret=NBC_CONTINUE; int flag, res, ret=NBC_CONTINUE;
unsigned long size; unsigned long size = 0;
char *delim; char *delim;
/* the handle is done if there is no schedule attached */ /* the handle is done if there is no schedule attached */

Просмотреть файл

@ -2002,6 +2002,7 @@ int ompi_io_ompio_empty_print_queue(int queue_type){
ret = ompi_io_ompio_set_print_queue(&q, queue_type); ret = ompi_io_ompio_set_print_queue(&q, queue_type);
assert (ret != OMPI_ERROR); assert (ret != OMPI_ERROR);
(void)ret; // silence compiler warning
if (q->count == 0) if (q->count == 0)
return 1; return 1;
else else
@ -2018,6 +2019,7 @@ int ompi_io_ompio_full_print_queue(int queue_type){
ret = ompi_io_ompio_set_print_queue(&q, queue_type); ret = ompi_io_ompio_set_print_queue(&q, queue_type);
assert ( ret != OMPI_ERROR); assert ( ret != OMPI_ERROR);
(void)ret; // silence compiler warning
if (q->count < QUEUESIZE) if (q->count < QUEUESIZE)
return 0; return 0;
else else

Просмотреть файл

@ -1618,6 +1618,7 @@ static int ompi_osc_pt2pt_callback (ompi_request_t *request)
OPAL_THREAD_UNLOCK(&ompi_request_lock); OPAL_THREAD_UNLOCK(&ompi_request_lock);
assert(incoming_length >= sizeof(ompi_osc_pt2pt_header_base_t)); assert(incoming_length >= sizeof(ompi_osc_pt2pt_header_base_t));
(void)incoming_length; // silence compiler warning
OPAL_OUTPUT_VERBOSE((50, ompi_osc_base_framework.framework_output, OPAL_OUTPUT_VERBOSE((50, ompi_osc_base_framework.framework_output,
"received pt2pt callback for fragment. source = %d, count = %u, type = 0x%x", "received pt2pt callback for fragment. source = %d, count = %u, type = 0x%x",

Просмотреть файл

@ -180,8 +180,8 @@ int ompi_osc_rdma_post_atomic (ompi_group_t *group, int assert, ompi_win_t *win)
int my_rank = ompi_comm_rank (module->comm); int my_rank = ompi_comm_rank (module->comm);
ompi_osc_rdma_state_t *state = module->state; ompi_osc_rdma_state_t *state = module->state;
volatile bool atomic_complete; volatile bool atomic_complete;
ompi_osc_rdma_frag_t *frag; ompi_osc_rdma_frag_t *frag = NULL;
osc_rdma_counter_t *temp; osc_rdma_counter_t *temp = NULL;
int ret; int ret;
OSC_RDMA_VERBOSE(MCA_BASE_VERBOSE_TRACE, "post: %p, %d, %s", (void*) group, assert, win->w_name); OSC_RDMA_VERBOSE(MCA_BASE_VERBOSE_TRACE, "post: %p, %d, %s", (void*) group, assert, win->w_name);

Просмотреть файл

@ -179,6 +179,7 @@ static int ompi_osc_rdma_peer_setup (ompi_osc_rdma_module_t *module, ompi_osc_rd
OSC_RDMA_VERBOSE(MCA_BASE_VERBOSE_DEBUG, "peer %d: remote base region: 0x%" PRIx64 ", size: %" PRId64 OSC_RDMA_VERBOSE(MCA_BASE_VERBOSE_DEBUG, "peer %d: remote base region: 0x%" PRIx64 ", size: %" PRId64
", flags: 0x%x, disp_unit: %d", peer->rank, base_region->base, base_region->len, ", flags: 0x%x, disp_unit: %d", peer->rank, base_region->base, base_region->len,
peer->flags, disp_unit); peer->flags, disp_unit);
(void)disp_unit; // silence compiler warning
if (ompi_osc_rdma_peer_local_base (peer)) { if (ompi_osc_rdma_peer_local_base (peer)) {
/* for now we store the local address in the standard place. do no overwrite it */ /* for now we store the local address in the standard place. do no overwrite it */

Просмотреть файл

@ -30,6 +30,7 @@ static inline void V_OUTPUT_ERR(const char *fmt, ... )
va_start(list, fmt); va_start(list, fmt);
ret = vasprintf(&str, fmt, list); ret = vasprintf(&str, fmt, list);
assert(-1 != ret); assert(-1 != ret);
(void)ret; // silence compiler warning
opal_output(0, "%s", str); opal_output(0, "%s", str);
free(str); free(str);
va_end(list); va_end(list);