Skip to content

Commit 6c5553c

Browse files
author
Thananon Patinyasakdikul
committed
Removed the unused ompi_request_[waiting, completed, failed, poll] variable.
Signed-off-by: Thananon Patinyasakdikul <[email protected]>
1 parent b25a8c3 commit 6c5553c

File tree

4 files changed

+0
-19
lines changed

4 files changed

+0
-19
lines changed

ompi/debuggers/ompi_mpihandles_dll.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@ struct mpidbg_name_map_t *mpidbg_status_name_map = NULL;
8484
* cases like the above with compilers that require the symbol (like
8585
* Sun Studio) we add in these definitions here.
8686
*/
87-
size_t ompi_request_completed;
88-
opal_condition_t ompi_request_cond;
89-
size_t ompi_request_waiting;
90-
opal_mutex_t ompi_request_lock;
9187
opal_mutex_t opal_event_lock;
9288
int opal_progress_spin_count;
9389
bool opal_mutex_check_locks;

ompi/debuggers/ompi_msgq_dll.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,10 +1059,6 @@ static void dump_request( mqs_taddr_t current_item, mqs_pending_operation *res )
10591059
printf( "+===============================================+\n\n" );
10601060
}
10611061

1062-
/**
1063-
* TODO: ompi_request_completed can be used to detect any changes in the request handles.
1064-
*/
1065-
10661062
/**
10671063
* Handle the send queue as well as the receive queue. The unexpected queue
10681064
* is a whole different story ...

ompi/request/request.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@
3333
#include "ompi/constants.h"
3434

3535
opal_pointer_array_t ompi_request_f_to_c_table = {{0}};
36-
size_t ompi_request_waiting = 0;
37-
size_t ompi_request_completed = 0;
38-
size_t ompi_request_failed = 0;
3936
ompi_predefined_request_t ompi_request_null = {{{{{0}}}}};
4037
ompi_predefined_request_t *ompi_request_null_addr = &ompi_request_null;
4138
ompi_request_t ompi_request_empty = {{{{0}}}};

ompi/request/request.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,6 @@ typedef struct ompi_request_fns_t {
315315
* Globals used for tracking requests and request completion.
316316
*/
317317
OMPI_DECLSPEC extern opal_pointer_array_t ompi_request_f_to_c_table;
318-
OMPI_DECLSPEC extern size_t ompi_request_waiting;
319-
OMPI_DECLSPEC extern size_t ompi_request_completed;
320-
OMPI_DECLSPEC extern size_t ompi_request_failed;
321-
OMPI_DECLSPEC extern int32_t ompi_request_poll;
322318
OMPI_DECLSPEC extern ompi_predefined_request_t ompi_request_null;
323319
OMPI_DECLSPEC extern ompi_predefined_request_t *ompi_request_null_addr;
324320
OMPI_DECLSPEC extern ompi_request_t ompi_request_empty;
@@ -430,10 +426,6 @@ static inline int ompi_request_complete(ompi_request_t* request, bool with_signa
430426
}
431427
} else
432428
request->req_complete = REQUEST_COMPLETED;
433-
434-
if( OPAL_UNLIKELY(MPI_SUCCESS != request->req_status.MPI_ERROR) ) {
435-
ompi_request_failed++;
436-
}
437429
}
438430

439431
return OMPI_SUCCESS;

0 commit comments

Comments
 (0)