@@ -192,9 +192,9 @@ static int ompi_osc_rdma_fetch_and_op_cas (ompi_osc_rdma_sync_t *sync, const voi
192
192
new_value = old_value ;
193
193
194
194
if (& ompi_mpi_op_replace .op == op ) {
195
- memcpy ((void * )((intptr_t ) & new_value + offset ), origin_addr + dt -> super .true_lb , extent );
195
+ memcpy ((void * )((intptr_t ) & new_value + offset ), ( void * )(( intptr_t ) origin_addr + dt -> super .true_lb ) , extent );
196
196
} else if (& ompi_mpi_op_no_op .op != op ) {
197
- ompi_op_reduce (op , (void * ) origin_addr + dt -> super .true_lb , (void * )((intptr_t ) & new_value + offset ), 1 , dt );
197
+ ompi_op_reduce (op , (void * ) (( intptr_t ) origin_addr + dt -> super .true_lb ) , (void * )((intptr_t ) & new_value + offset ), 1 , dt );
198
198
}
199
199
200
200
ret = ompi_osc_rdma_btl_cswap (module , peer -> data_endpoint , address , target_handle ,
@@ -219,7 +219,7 @@ static int ompi_osc_rdma_acc_single_atomic (ompi_osc_rdma_sync_t *sync, const vo
219
219
{
220
220
ompi_osc_rdma_module_t * module = sync -> module ;
221
221
int32_t atomic_flags = module -> selected_btl -> btl_atomic_flags ;
222
- int ret , btl_op , flags ;
222
+ int btl_op , flags ;
223
223
int64_t origin ;
224
224
225
225
if (!(module -> selected_btl -> btl_flags & MCA_BTL_FLAGS_ATOMIC_OPS )) {
@@ -261,7 +261,6 @@ static inline int ompi_osc_rdma_gacc_amo (ompi_osc_rdma_module_t *module, ompi_o
261
261
const bool use_amo = module -> acc_use_amo ;
262
262
const size_t dt_size = datatype -> super .size ;
263
263
void * to_free = NULL ;
264
- uint64_t offset = 0 ;
265
264
int ret ;
266
265
267
266
OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_TRACE , "using network atomics for accumulate operation with count %d" , count );
@@ -339,7 +338,7 @@ static inline int ompi_osc_rdma_gacc_contig (ompi_osc_rdma_sync_t *sync, const v
339
338
/* if the datatype is small enough (and the count is 1) then try to directly use the hardware to execute
340
339
* the atomic operation. this should be safe in all cases as either 1) the user has assured us they will
341
340
* never use atomics with count > 1, 2) we have the accumulate lock, or 3) we have an exclusive lock */
342
- if (target_datatype -> super .size <= 8 && target_count <= module -> network_amo_max_count ) {
341
+ if (( target_datatype -> super .size <= 8 ) && ((( unsigned long ) target_count ) <= module -> network_amo_max_count ) ) {
343
342
ret = ompi_osc_rdma_gacc_amo (module , sync , source , result , result_count , result_datatype , result_convertor ,
344
343
peer , target_address , target_handle , target_count , target_datatype , op , request );
345
344
if (OPAL_LIKELY (OMPI_SUCCESS == ret )) {
@@ -867,7 +866,7 @@ int ompi_osc_rdma_rget_accumulate_internal (ompi_win_t *win, const void *origin_
867
866
ompi_osc_rdma_module_t * module = GET_MODULE (win );
868
867
mca_btl_base_registration_handle_t * target_handle ;
869
868
uint64_t target_address ;
870
- ptrdiff_t lb , target_lb , target_span ;
869
+ ptrdiff_t target_lb , target_span ;
871
870
ompi_osc_rdma_request_t * rdma_request = NULL ;
872
871
bool lock_acquired = false;
873
872
ompi_osc_rdma_sync_t * sync ;
0 commit comments