Changeset 2a6b09


Ignore:
Timestamp:
10/18/17 15:49:33 (5 weeks ago)
Author:
Ken Raffenetti <raffenet@…>
Branches:
master
Children:
ef93ec
Parents:
511ac5
git-author:
Chongxiao Cao <chongxiao.cao@…> (10/13/17 15:09:21)
git-committer:
Ken Raffenetti <raffenet@…> (10/18/17 15:49:33)
Message:

ch4: Fix MPIT_PVARs definition and declaration

MPIT_PVARs are defined in ch4_global.c, and declared as extern in
realted .h header files.

This patch fixes LTO builds with GCC 6.3.

Signed-off-by: Ken Raffenetti <raffenet@…>

Location:
src/mpid/ch4/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/mpid/ch4/src/ch4_globals.c

    rab0074 r2a6b09  
    2222MPIDI_NM_funcs_t *MPIDI_NM_func; 
    2323MPIDI_NM_native_funcs_t *MPIDI_NM_native_func; 
     24 
     25unsigned PVAR_LEVEL_posted_recvq_length ATTRIBUTE((unused)); 
     26unsigned PVAR_LEVEL_unexpected_recvq_length ATTRIBUTE((unused)); 
     27unsigned long long PVAR_COUNTER_posted_recvq_match_attempts ATTRIBUTE((unused)); 
     28unsigned long long PVAR_COUNTER_unexpected_recvq_match_attempts ATTRIBUTE((unused)); 
     29MPIR_T_pvar_timer_t PVAR_TIMER_time_failed_matching_postedq ATTRIBUTE((unused)); 
     30MPIR_T_pvar_timer_t PVAR_TIMER_time_matching_unexpectedq ATTRIBUTE((unused)); 
     31MPIR_T_pvar_timer_t PVAR_TIMER_rma_winlock_getlocallock ATTRIBUTE((unused)); 
     32MPIR_T_pvar_timer_t PVAR_TIMER_rma_wincreate_allgather ATTRIBUTE((unused)); 
     33MPIR_T_pvar_timer_t PVAR_TIMER_rma_amhdr_set ATTRIBUTE((unused)); 
     34MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put ATTRIBUTE((unused)); 
     35MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put_ack ATTRIBUTE((unused)); 
     36MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get ATTRIBUTE((unused)); 
     37MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_ack ATTRIBUTE((unused)); 
     38MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_cas ATTRIBUTE((unused)); 
     39MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_cas_ack ATTRIBUTE((unused)); 
     40MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc ATTRIBUTE((unused)); 
     41MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc ATTRIBUTE((unused)); 
     42MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc_ack ATTRIBUTE((unused)); 
     43MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc_ack ATTRIBUTE((unused)); 
     44MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_win_ctrl ATTRIBUTE((unused)); 
     45MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put_iov ATTRIBUTE((unused)); 
     46MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put_iov_ack ATTRIBUTE((unused)); 
     47MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put_data ATTRIBUTE((unused)); 
     48MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc_iov ATTRIBUTE((unused)); 
     49MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc_iov ATTRIBUTE((unused)); 
     50MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc_iov_ack ATTRIBUTE((unused)); 
     51MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc_iov_ack ATTRIBUTE((unused)); 
     52MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc_data ATTRIBUTE((unused)); 
     53MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc_data ATTRIBUTE((unused)); 
    2454 
    2555#ifdef MPID_DEVICE_DEFINES_THREAD_CS 
  • src/mpid/ch4/src/ch4r_recvq.h

    r58ad0e r2a6b09  
    1717#include "ch4_impl.h" 
    1818 
    19 static unsigned PVAR_LEVEL_posted_recvq_length ATTRIBUTE((unused)); 
    20 static unsigned PVAR_LEVEL_unexpected_recvq_length ATTRIBUTE((unused)); 
    21 static unsigned long long PVAR_COUNTER_posted_recvq_match_attempts ATTRIBUTE((unused)); 
    22 static unsigned long long PVAR_COUNTER_unexpected_recvq_match_attempts ATTRIBUTE((unused)); 
    23 static MPIR_T_pvar_timer_t PVAR_TIMER_time_failed_matching_postedq ATTRIBUTE((unused)); 
    24 static MPIR_T_pvar_timer_t PVAR_TIMER_time_matching_unexpectedq ATTRIBUTE((unused)); 
     19extern unsigned PVAR_LEVEL_posted_recvq_length ATTRIBUTE((unused)); 
     20extern unsigned PVAR_LEVEL_unexpected_recvq_length ATTRIBUTE((unused)); 
     21extern unsigned long long PVAR_COUNTER_posted_recvq_match_attempts ATTRIBUTE((unused)); 
     22extern unsigned long long PVAR_COUNTER_unexpected_recvq_match_attempts ATTRIBUTE((unused)); 
     23extern MPIR_T_pvar_timer_t PVAR_TIMER_time_failed_matching_postedq ATTRIBUTE((unused)); 
     24extern MPIR_T_pvar_timer_t PVAR_TIMER_time_matching_unexpectedq ATTRIBUTE((unused)); 
    2525 
    2626#undef FUNCNAME 
  • src/mpid/ch4/src/ch4r_rma_target_callbacks.h

    r7abd84 r2a6b09  
    2121 
    2222extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_winlock_getlocallock ATTRIBUTE((unused)); 
    23  
    24 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put ATTRIBUTE((unused)); 
    25 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put_ack ATTRIBUTE((unused)); 
    26 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get ATTRIBUTE((unused)); 
    27 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_ack ATTRIBUTE((unused)); 
    28 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_cas ATTRIBUTE((unused)); 
    29 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_cas_ack ATTRIBUTE((unused)); 
    30 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc ATTRIBUTE((unused)); 
    31 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc ATTRIBUTE((unused)); 
    32 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc_ack ATTRIBUTE((unused)); 
    33 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc_ack ATTRIBUTE((unused)); 
    34 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_win_ctrl ATTRIBUTE((unused)); 
    35 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put_iov ATTRIBUTE((unused)); 
    36 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put_iov_ack ATTRIBUTE((unused)); 
    37 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put_data ATTRIBUTE((unused)); 
    38 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc_iov ATTRIBUTE((unused)); 
    39 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc_iov ATTRIBUTE((unused)); 
    40 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc_iov_ack ATTRIBUTE((unused)); 
    41 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc_iov_ack ATTRIBUTE((unused)); 
    42 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc_data ATTRIBUTE((unused)); 
    43 MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc_data ATTRIBUTE((unused)); 
     23extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put ATTRIBUTE((unused)); 
     24extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put_ack ATTRIBUTE((unused)); 
     25extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get ATTRIBUTE((unused)); 
     26extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_ack ATTRIBUTE((unused)); 
     27extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_cas ATTRIBUTE((unused)); 
     28extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_cas_ack ATTRIBUTE((unused)); 
     29extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc ATTRIBUTE((unused)); 
     30extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc ATTRIBUTE((unused)); 
     31extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc_ack ATTRIBUTE((unused)); 
     32extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc_ack ATTRIBUTE((unused)); 
     33extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_win_ctrl ATTRIBUTE((unused)); 
     34extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put_iov ATTRIBUTE((unused)); 
     35extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put_iov_ack ATTRIBUTE((unused)); 
     36extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_put_data ATTRIBUTE((unused)); 
     37extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc_iov ATTRIBUTE((unused)); 
     38extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc_iov ATTRIBUTE((unused)); 
     39extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc_iov_ack ATTRIBUTE((unused)); 
     40extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc_iov_ack ATTRIBUTE((unused)); 
     41extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_acc_data ATTRIBUTE((unused)); 
     42extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_targetcb_get_acc_data ATTRIBUTE((unused)); 
    4443 
    4544#undef FUNCNAME 
  • src/mpid/ch4/src/ch4r_win.h

    r578a76 r2a6b09  
    2121#endif /* HAVE_SYS_MMAN_H */ 
    2222 
    23 MPIR_T_pvar_timer_t PVAR_TIMER_rma_winlock_getlocallock ATTRIBUTE((unused)); 
    24 MPIR_T_pvar_timer_t PVAR_TIMER_rma_wincreate_allgather ATTRIBUTE((unused)); 
    25 MPIR_T_pvar_timer_t PVAR_TIMER_rma_amhdr_set ATTRIBUTE((unused)); 
     23extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_winlock_getlocallock ATTRIBUTE((unused)); 
     24extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_wincreate_allgather ATTRIBUTE((unused)); 
     25extern MPIR_T_pvar_timer_t PVAR_TIMER_rma_amhdr_set ATTRIBUTE((unused)); 
    2626 
    2727#undef FUNCNAME 
Note: See TracChangeset for help on using the changeset viewer.