File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 4
4
* Copyright (c) 2004-2007 The University of Tennessee and The University
5
5
* of Tennessee Research Foundation. All rights
6
6
* reserved.
7
- * Copyright (c) 2015 Research Organization for Information Science
8
- * and Technology (RIST). All rights reserved.
7
+ * Copyright (c) 2015-2024 Research Organization for Information Science
8
+ * and Technology (RIST). All rights reserved.
9
9
* Copyright (c) 2017 Intel, Inc. All rights reserved
10
10
* Copyright (c) 2019-2021 The University of Tennessee at Chattanooga and The University
11
11
* of Tennessee Research Foundation. All rights reserved.
28
28
#include <alloca.h>
29
29
#endif
30
30
31
- #include <math.h>
31
+ #include <math.h>
32
32
33
33
#include "ompi_config.h"
34
34
#include "ompi/request/request.h"
@@ -495,9 +495,8 @@ mca_part_persist_start(size_t count, ompi_request_t** requests)
495
495
{
496
496
int err = OMPI_SUCCESS ;
497
497
size_t _count = count ;
498
- size_t i ;
499
498
500
- for (i = 0 ; i < _count && OMPI_SUCCESS == err ; i ++ ) {
499
+ for (size_t i = 0 ; i < _count && OMPI_SUCCESS == err ; i ++ ) {
501
500
mca_part_persist_request_t * req = (mca_part_persist_request_t * )(requests [i ]);
502
501
/* First use is a special case, to support lazy initialization */
503
502
if (false == req -> first_send )
@@ -513,8 +512,8 @@ mca_part_persist_start(size_t count, ompi_request_t** requests)
513
512
} else {
514
513
if (MCA_PART_PERSIST_REQUEST_PSEND == req -> req_type ) {
515
514
req -> done_count = 0 ;
516
- for (i = 0 ; i < req -> real_parts && OMPI_SUCCESS == err ; i ++ ) {
517
- req -> flags [i ] = -1 ;
515
+ for (size_t j = 0 ; j < req -> real_parts && OMPI_SUCCESS == err ; j ++ ) {
516
+ req -> flags [j ] = -1 ;
518
517
}
519
518
} else {
520
519
req -> done_count = 0 ;
You can’t perform that action at this time.
0 commit comments