📄 log_mpi_core.c
字号:
Log the beginning and ending of the time spent in MPI_Gatherv calls.*/ MPE_LOG_THREADSTM_GET MPE_LOG_THREAD_LOCK MPE_LOG_STATE_BEGIN(comm,MPE_GATHERV_ID) MPE_LOG_THREAD_UNLOCK#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_OFF#endif returnVal = PMPI_Gatherv( sendbuf, sendcnt, sendtype, recvbuf, recvcnts, displs, recvtype, root, comm );#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_ON#endif MPE_LOG_THREAD_LOCK MPE_LOG_STATE_END(comm,NULL) MPE_LOG_THREAD_UNLOCK return returnVal;}int MPI_Op_create( function, commute, op )MPI_User_function * function;int commute;MPI_Op * op;{ int returnVal; MPE_LOG_STATE_DECL MPE_LOG_THREADSTM_DECL/* MPI_Op_create - prototyping replacement for MPI_Op_create Log the beginning and ending of the time spent in MPI_Op_create calls.*/ MPE_LOG_THREADSTM_GET MPE_LOG_THREAD_LOCK MPE_LOG_STATE_BEGIN(MPE_COMM_NULL,MPE_OP_CREATE_ID) MPE_LOG_THREAD_UNLOCK#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_OFF#endif returnVal = PMPI_Op_create( function, commute, op );#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_ON#endif MPE_LOG_THREAD_LOCK MPE_LOG_STATE_END(MPE_COMM_NULL,NULL) MPE_LOG_THREAD_UNLOCK return returnVal;}int MPI_Op_free( op )MPI_Op * op;{ int returnVal; MPE_LOG_STATE_DECL MPE_LOG_THREADSTM_DECL/* MPI_Op_free - prototyping replacement for MPI_Op_free Log the beginning and ending of the time spent in MPI_Op_free calls.*/ MPE_LOG_THREADSTM_GET MPE_LOG_THREAD_LOCK MPE_LOG_STATE_BEGIN(MPE_COMM_NULL,MPE_OP_FREE_ID) MPE_LOG_THREAD_UNLOCK#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_OFF#endif returnVal = PMPI_Op_free( op );#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_ON#endif MPE_LOG_THREAD_LOCK MPE_LOG_STATE_END(MPE_COMM_NULL,NULL) MPE_LOG_THREAD_UNLOCK return returnVal;}int MPI_Reduce_scatter( sendbuf, recvbuf, recvcnts, datatype, op, comm )void * sendbuf;void * recvbuf;int * recvcnts;MPI_Datatype datatype;MPI_Op op;MPI_Comm comm;{ int returnVal; MPE_LOG_STATE_DECL MPE_LOG_THREADSTM_DECL/* MPI_Reduce_scatter - prototyping replacement for MPI_Reduce_scatter Log the beginning and ending of the time spent in MPI_Reduce_scatter calls.*/ MPE_LOG_THREADSTM_GET MPE_LOG_THREAD_LOCK MPE_LOG_STATE_BEGIN(comm,MPE_REDUCE_SCATTER_ID) MPE_LOG_THREAD_UNLOCK#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_OFF#endif returnVal = PMPI_Reduce_scatter( sendbuf, recvbuf, recvcnts, datatype, op, comm );#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_ON#endif MPE_LOG_THREAD_LOCK MPE_LOG_STATE_END(comm,NULL) MPE_LOG_THREAD_UNLOCK return returnVal;}int MPI_Reduce( sendbuf, recvbuf, count, datatype, op, root, comm )void * sendbuf;void * recvbuf;int count;MPI_Datatype datatype;MPI_Op op;int root;MPI_Comm comm;{ int returnVal; MPE_LOG_STATE_DECL MPE_LOG_THREADSTM_DECL/* MPI_Reduce - prototyping replacement for MPI_Reduce Log the beginning and ending of the time spent in MPI_Reduce calls.*/ MPE_LOG_THREADSTM_GET MPE_LOG_THREAD_LOCK MPE_LOG_STATE_BEGIN(comm,MPE_REDUCE_ID) MPE_LOG_THREAD_UNLOCK#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_OFF#endif returnVal = PMPI_Reduce( sendbuf, recvbuf, count, datatype, op, root, comm );#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_ON#endif MPE_LOG_THREAD_LOCK MPE_LOG_STATE_END(comm,NULL) MPE_LOG_THREAD_UNLOCK return returnVal;}int MPI_Scan( sendbuf, recvbuf, count, datatype, op, comm )void * sendbuf;void * recvbuf;int count;MPI_Datatype datatype;MPI_Op op;MPI_Comm comm;{ int returnVal; MPE_LOG_STATE_DECL MPE_LOG_THREADSTM_DECL/* MPI_Scan - prototyping replacement for MPI_Scan Log the beginning and ending of the time spent in MPI_Scan calls.*/ MPE_LOG_THREADSTM_GET MPE_LOG_THREAD_LOCK MPE_LOG_STATE_BEGIN(comm,MPE_SCAN_ID) MPE_LOG_THREAD_UNLOCK#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_OFF#endif returnVal = PMPI_Scan( sendbuf, recvbuf, count, datatype, op, comm );#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_ON#endif MPE_LOG_THREAD_LOCK MPE_LOG_STATE_END(comm,NULL) MPE_LOG_THREAD_UNLOCK return returnVal;}int MPI_Scatter( sendbuf, sendcnt, sendtype, recvbuf, recvcnt, recvtype, root, comm )void * sendbuf;int sendcnt;MPI_Datatype sendtype;void * recvbuf;int recvcnt;MPI_Datatype recvtype;int root;MPI_Comm comm;{ int returnVal; MPE_LOG_STATE_DECL MPE_LOG_THREADSTM_DECL/* MPI_Scatter - prototyping replacement for MPI_Scatter Log the beginning and ending of the time spent in MPI_Scatter calls.*/ MPE_LOG_THREADSTM_GET MPE_LOG_THREAD_LOCK MPE_LOG_STATE_BEGIN(comm,MPE_SCATTER_ID) MPE_LOG_THREAD_UNLOCK#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_OFF#endif returnVal = PMPI_Scatter( sendbuf, sendcnt, sendtype, recvbuf, recvcnt, recvtype, root, comm );#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_ON#endif MPE_LOG_THREAD_LOCK MPE_LOG_STATE_END(comm,NULL) MPE_LOG_THREAD_UNLOCK return returnVal;}int MPI_Scatterv( sendbuf, sendcnts, displs, sendtype, recvbuf, recvcnt, recvtype, root, comm )void * sendbuf;int * sendcnts;int * displs;MPI_Datatype sendtype;void * recvbuf;int recvcnt;MPI_Datatype recvtype;int root;MPI_Comm comm;{ int returnVal; MPE_LOG_STATE_DECL MPE_LOG_THREADSTM_DECL/* MPI_Scatterv - prototyping replacement for MPI_Scatterv Log the beginning and ending of the time spent in MPI_Scatterv calls.*/ MPE_LOG_THREADSTM_GET MPE_LOG_THREAD_LOCK MPE_LOG_STATE_BEGIN(comm,MPE_SCATTERV_ID) MPE_LOG_THREAD_UNLOCK#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_OFF#endif returnVal = PMPI_Scatterv( sendbuf, sendcnts, displs, sendtype, recvbuf, recvcnt, recvtype, root, comm );#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_ON#endif MPE_LOG_THREAD_LOCK MPE_LOG_STATE_END(comm,NULL) MPE_LOG_THREAD_UNLOCK return returnVal;}int MPI_Attr_delete( comm, keyval )MPI_Comm comm;int keyval;{ int returnVal; MPE_LOG_STATE_DECL MPE_LOG_THREADSTM_DECL/* MPI_Attr_delete - prototyping replacement for MPI_Attr_delete Log the beginning and ending of the time spent in MPI_Attr_delete calls.*/ MPE_LOG_THREADSTM_GET MPE_LOG_THREAD_LOCK MPE_LOG_STATE_BEGIN(comm,MPE_ATTR_DELETE_ID) MPE_LOG_THREAD_UNLOCK#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_OFF#endif returnVal = PMPI_Attr_delete( comm, keyval );#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_ON#endif MPE_LOG_THREAD_LOCK MPE_LOG_STATE_END(comm,NULL) MPE_LOG_THREAD_UNLOCK return returnVal;}int MPI_Attr_get( comm, keyval, attr_value, flag )MPI_Comm comm;int keyval;void * attr_value;int * flag;{ int returnVal; MPE_LOG_STATE_DECL MPE_LOG_THREADSTM_DECL/* MPI_Attr_get - prototyping replacement for MPI_Attr_get Log the beginning and ending of the time spent in MPI_Attr_get calls.*/ MPE_LOG_THREADSTM_GET MPE_LOG_THREAD_LOCK MPE_LOG_STATE_BEGIN(comm,MPE_ATTR_GET_ID) MPE_LOG_THREAD_UNLOCK#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_OFF#endif returnVal = PMPI_Attr_get( comm, keyval, attr_value, flag );#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_ON#endif MPE_LOG_THREAD_LOCK MPE_LOG_STATE_END(comm,NULL) MPE_LOG_THREAD_UNLOCK return returnVal;}int MPI_Attr_put( comm, keyval, attr_value )MPI_Comm comm;int keyval;void * attr_value;{ int returnVal; MPE_LOG_STATE_DECL MPE_LOG_THREADSTM_DECL/* MPI_Attr_put - prototyping replacement for MPI_Attr_put Log the beginning and ending of the time spent in MPI_Attr_put calls.*/ MPE_LOG_THREADSTM_GET MPE_LOG_THREAD_LOCK MPE_LOG_STATE_BEGIN(comm,MPE_ATTR_PUT_ID) MPE_LOG_THREAD_UNLOCK#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_OFF#endif returnVal = PMPI_Attr_put( comm, keyval, attr_value );#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_ON#endif MPE_LOG_THREAD_LOCK MPE_LOG_STATE_END(comm,NULL) MPE_LOG_THREAD_UNLOCK return returnVal;}int MPI_Comm_compare( comm1, comm2, result )MPI_Comm comm1;MPI_Comm comm2;int * result;{ int returnVal; MPE_LOG_STATE_DECL MPE_LOG_THREADSTM_DECL/* MPI_Comm_compare - prototyping replacement for MPI_Comm_compare Log the beginning and ending of the time spent in MPI_Comm_compare calls.*/ MPE_LOG_THREADSTM_GET MPE_LOG_THREAD_LOCK MPE_LOG_STATE_BEGIN(MPE_COMM_NULL,MPE_COMM_COMPARE_ID) MPE_LOG_THREAD_UNLOCK#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_OFF#endif returnVal = PMPI_Comm_compare( comm1, comm2, result );#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_ON#endif MPE_LOG_THREAD_LOCK MPE_LOG_STATE_END(MPE_COMM_NULL,NULL) MPE_LOG_THREAD_UNLOCK return returnVal;}int MPI_Comm_create( comm, group, comm_out )MPI_Comm comm;MPI_Group group;MPI_Comm * comm_out;{ int returnVal; MPE_LOG_STATE_DECL MPE_LOG_COMM_DECL MPE_LOG_THREADSTM_DECL/* MPI_Comm_create - prototyping replacement for MPI_Comm_create Log the beginning and ending of the time spent in MPI_Comm_create calls.*/ MPE_LOG_THREADSTM_GET MPE_LOG_THREAD_LOCK MPE_LOG_STATE_BEGIN(comm,MPE_COMM_CREATE_ID) MPE_LOG_THREAD_UNLOCK#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_OFF#endif returnVal = PMPI_Comm_create( comm, group, comm_out );#if defined( MAKE_SAFE_PMPI_CALL ) MPE_LOG_ON#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -