Skip to content

Commit 681594b

Browse files
committed
Removed the unused ompi_request_[waiting, completed, failed, poll]
variable. Signed-off-by: Thananon Patinyasakdikul <[email protected]>
1 parent 47b992e commit 681594b

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
@@ -86,10 +86,6 @@ struct mpidbg_name_map_t *mpidbg_status_name_map = NULL;
8686
* cases like the above with compilers that require the symbol (like
8787
* Sun Studio) we add in these definitions here.
8888
*/
89-
size_t ompi_request_completed;
90-
opal_condition_t ompi_request_cond;
91-
size_t ompi_request_waiting;
92-
opal_mutex_t ompi_request_lock;
9389
opal_mutex_t opal_event_lock;
9490
int opal_progress_spin_count;
9591
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
@@ -1066,10 +1066,6 @@ static void dump_request( mqs_taddr_t current_item, mqs_pending_operation *res )
10661066
printf( "+===============================================+\n\n" );
10671067
}
10681068

1069-
/**
1070-
* TODO: ompi_request_completed can be used to detect any changes in the request handles.
1071-
*/
1072-
10731069
/**
10741070
* Handle the send queue as well as the receive queue. The unexpected queue
10751071
* 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
@@ -316,10 +316,6 @@ typedef struct ompi_request_fns_t {
316316
* Globals used for tracking requests and request completion.
317317
*/
318318
OMPI_DECLSPEC extern opal_pointer_array_t ompi_request_f_to_c_table;
319-
OMPI_DECLSPEC extern size_t ompi_request_waiting;
320-
OMPI_DECLSPEC extern size_t ompi_request_completed;
321-
OMPI_DECLSPEC extern size_t ompi_request_failed;
322-
OMPI_DECLSPEC extern int32_t ompi_request_poll;
323319
OMPI_DECLSPEC extern ompi_predefined_request_t ompi_request_null;
324320
OMPI_DECLSPEC extern ompi_predefined_request_t *ompi_request_null_addr;
325321
OMPI_DECLSPEC extern ompi_request_t ompi_request_empty;
@@ -431,10 +427,6 @@ static inline int ompi_request_complete(ompi_request_t* request, bool with_signa
431427
}
432428
} else
433429
request->req_complete = REQUEST_COMPLETED;
434-
435-
if( OPAL_UNLIKELY(MPI_SUCCESS != request->req_status.MPI_ERROR) ) {
436-
ompi_request_failed++;
437-
}
438430
}
439431

440432
return OMPI_SUCCESS;

0 commit comments

Comments
 (0)