Skip to content

Commit 0d304eb

Browse files
author
David Eberius
committed
Made the dump output more readable and added more top level counters.
1 parent 8f0af01 commit 0d304eb

51 files changed

Lines changed: 351 additions & 51 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ompi/mpi/c/allgatherv.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
44
* University Research and Technology
55
* Corporation. All rights reserved.
6-
* Copyright (c) 2004-2017 The University of Tennessee and The University
6+
* Copyright (c) 2004-2018 The University of Tennessee and The University
77
* of Tennessee Research Foundation. All rights
88
* reserved.
99
* Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
@@ -32,6 +32,7 @@
3232
#include "ompi/errhandler/errhandler.h"
3333
#include "ompi/datatype/ompi_datatype.h"
3434
#include "ompi/memchecker.h"
35+
#include "ompi/runtime/ompi_spc.h"
3536

3637
#if OMPI_BUILD_MPI_PROFILING
3738
#if OPAL_HAVE_WEAK_SYMBOLS
@@ -49,6 +50,8 @@ int MPI_Allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
4950
{
5051
int i, size, err;
5152

53+
SPC_RECORD(OMPI_ALLGATHERV, 1);
54+
5255
MEMCHECKER(
5356
int rank;
5457
ptrdiff_t ext;

ompi/mpi/c/barrier.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
33
* University Research and Technology
44
* Corporation. All rights reserved.
5-
* Copyright (c) 2004-2017 The University of Tennessee and The University
5+
* Copyright (c) 2004-2018 The University of Tennessee and The University
66
* of Tennessee Research Foundation. All rights
77
* reserved.
88
* Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
@@ -25,6 +25,7 @@
2525
#include "ompi/communicator/communicator.h"
2626
#include "ompi/errhandler/errhandler.h"
2727
#include "ompi/memchecker.h"
28+
#include "ompi/runtime/ompi_spc.h"
2829

2930
#if OMPI_BUILD_MPI_PROFILING
3031
#if OPAL_HAVE_WEAK_SYMBOLS
@@ -40,6 +41,8 @@ int MPI_Barrier(MPI_Comm comm)
4041
{
4142
int err = MPI_SUCCESS;
4243

44+
SPC_RECORD(OMPI_BARRIER, 1);
45+
4346
MEMCHECKER(
4447
memchecker_comm(comm);
4548
);

ompi/mpi/c/bsend.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
44
* University Research and Technology
55
* Corporation. All rights reserved.
6-
* Copyright (c) 2004-2005 The University of Tennessee and The University
6+
* Copyright (c) 2004-2018 The University of Tennessee and The University
77
* of Tennessee Research Foundation. All rights
88
* reserved.
99
* Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
@@ -31,6 +31,7 @@
3131
#include "ompi/mca/pml/pml.h"
3232
#include "ompi/mca/pml/base/pml_base_bsend.h"
3333
#include "ompi/memchecker.h"
34+
#include "ompi/runtime/ompi_spc.h"
3435

3536
#if OMPI_BUILD_MPI_PROFILING
3637
#if OPAL_HAVE_WEAK_SYMBOLS
@@ -46,6 +47,8 @@ int MPI_Bsend(const void *buf, int count, MPI_Datatype type, int dest, int tag,
4647
{
4748
int rc = MPI_SUCCESS;
4849

50+
SPC_RECORD(OMPI_BSEND, 1);
51+
4952
MEMCHECKER(
5053
memchecker_datatype(type);
5154
memchecker_call(&opal_memchecker_base_isdefined, buf, count, type);

ompi/mpi/c/cancel.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
33
* University Research and Technology
44
* Corporation. All rights reserved.
5-
* Copyright (c) 2004-2005 The University of Tennessee and The University
5+
* Copyright (c) 2004-2018 The University of Tennessee and The University
66
* of Tennessee Research Foundation. All rights
77
* reserved.
88
* Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
@@ -28,6 +28,7 @@
2828
#include "ompi/errhandler/errhandler.h"
2929
#include "ompi/request/request.h"
3030
#include "ompi/memchecker.h"
31+
#include "ompi/runtime/ompi_spc.h"
3132

3233
#if OMPI_BUILD_MPI_PROFILING
3334
#if OPAL_HAVE_WEAK_SYMBOLS
@@ -43,6 +44,8 @@ int MPI_Cancel(MPI_Request *request)
4344
{
4445
int rc;
4546

47+
SPC_RECORD(OMPI_CANCEL, 1);
48+
4649
MEMCHECKER(
4750
memchecker_request(request);
4851
);

ompi/mpi/c/gatherv.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
44
* University Research and Technology
55
* Corporation. All rights reserved.
6-
* Copyright (c) 2004-2017 The University of Tennessee and The University
6+
* Copyright (c) 2004-2018 The University of Tennessee and The University
77
* of Tennessee Research Foundation. All rights
88
* reserved.
99
* Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
@@ -30,6 +30,7 @@
3030
#include "ompi/errhandler/errhandler.h"
3131
#include "ompi/datatype/ompi_datatype.h"
3232
#include "ompi/memchecker.h"
33+
#include "ompi/runtime/ompi_spc.h"
3334

3435
#if OMPI_BUILD_MPI_PROFILING
3536
#if OPAL_HAVE_WEAK_SYMBOLS
@@ -47,6 +48,8 @@ int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
4748
{
4849
int i, size, err;
4950

51+
SPC_RECORD(OMPI_GATHERV, 1);
52+
5053
MEMCHECKER(
5154
ptrdiff_t ext;
5255

ompi/mpi/c/get.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
44
* University Research and Technology
55
* Corporation. All rights reserved.
6-
* Copyright (c) 2004-2005 The University of Tennessee and The University
6+
* Copyright (c) 2004-2018 The University of Tennessee and The University
77
* of Tennessee Research Foundation. All rights
88
* reserved.
99
* Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
@@ -30,6 +30,7 @@
3030
#include "ompi/win/win.h"
3131
#include "ompi/mca/osc/osc.h"
3232
#include "ompi/datatype/ompi_datatype.h"
33+
#include "ompi/runtime/ompi_spc.h"
3334

3435
#if OMPI_BUILD_MPI_PROFILING
3536
#if OPAL_HAVE_WEAK_SYMBOLS
@@ -48,6 +49,8 @@ int MPI_Get(void *origin_addr, int origin_count,
4849
{
4950
int rc;
5051

52+
SPC_RECORD(OMPI_GET, 1);
53+
5154
if (MPI_PARAM_CHECK) {
5255
rc = OMPI_SUCCESS;
5356

ompi/mpi/c/iallgather.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
44
* University Research and Technology
55
* Corporation. All rights reserved.
6-
* Copyright (c) 2004-2017 The University of Tennessee and The University
6+
* Copyright (c) 2004-2018 The University of Tennessee and The University
77
* of Tennessee Research Foundation. All rights
88
* reserved.
99
* Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
@@ -32,6 +32,7 @@
3232
#include "ompi/errhandler/errhandler.h"
3333
#include "ompi/datatype/ompi_datatype.h"
3434
#include "ompi/memchecker.h"
35+
#include "ompi/runtime/ompi_spc.h"
3536

3637
#if OMPI_BUILD_MPI_PROFILING
3738
#if OPAL_HAVE_WEAK_SYMBOLS
@@ -49,6 +50,8 @@ int MPI_Iallgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
4950
{
5051
int err;
5152

53+
SPC_RECORD(OMPI_IALLGATHER, 1);
54+
5255
MEMCHECKER(
5356
int rank;
5457
ptrdiff_t ext;

ompi/mpi/c/iallgatherv.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
44
* University Research and Technology
55
* Corporation. All rights reserved.
6-
* Copyright (c) 2004-2017 The University of Tennessee and The University
6+
* Copyright (c) 2004-2018 The University of Tennessee and The University
77
* of Tennessee Research Foundation. All rights
88
* reserved.
99
* Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
@@ -32,6 +32,7 @@
3232
#include "ompi/errhandler/errhandler.h"
3333
#include "ompi/datatype/ompi_datatype.h"
3434
#include "ompi/memchecker.h"
35+
#include "ompi/runtime/ompi_spc.h"
3536

3637
#if OMPI_BUILD_MPI_PROFILING
3738
#if OPAL_HAVE_WEAK_SYMBOLS
@@ -49,6 +50,8 @@ int MPI_Iallgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
4950
{
5051
int i, size, err;
5152

53+
SPC_RECORD(OMPI_IALLGATHERV, 1);
54+
5255
MEMCHECKER(
5356
int rank;
5457
ptrdiff_t ext;

ompi/mpi/c/iallreduce.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
44
* University Research and Technology
55
* Corporation. All rights reserved.
6-
* Copyright (c) 2004-2017 The University of Tennessee and The University
6+
* Copyright (c) 2004-2018 The University of Tennessee and The University
77
* of Tennessee Research Foundation. All rights
88
* reserved.
99
* Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
@@ -32,6 +32,7 @@
3232
#include "ompi/datatype/ompi_datatype.h"
3333
#include "ompi/op/op.h"
3434
#include "ompi/memchecker.h"
35+
#include "ompi/runtime/ompi_spc.h"
3536

3637
#if OMPI_BUILD_MPI_PROFILING
3738
#if OPAL_HAVE_WEAK_SYMBOLS
@@ -48,6 +49,8 @@ int MPI_Iallreduce(const void *sendbuf, void *recvbuf, int count,
4849
{
4950
int err;
5051

52+
SPC_RECORD(OMPI_IALLREDUCE, 1);
53+
5154
MEMCHECKER(
5255
memchecker_datatype(datatype);
5356
memchecker_comm(comm);

ompi/mpi/c/ialltoall.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
44
* University Research and Technology
55
* Corporation. All rights reserved.
6-
* Copyright (c) 2004-2017 The University of Tennessee and The University
6+
* Copyright (c) 2004-2018 The University of Tennessee and The University
77
* of Tennessee Research Foundation. All rights
88
* reserved.
99
* Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
@@ -32,6 +32,7 @@
3232
#include "ompi/errhandler/errhandler.h"
3333
#include "ompi/datatype/ompi_datatype.h"
3434
#include "ompi/memchecker.h"
35+
#include "ompi/runtime/ompi_spc.h"
3536

3637
#if OMPI_BUILD_MPI_PROFILING
3738
#if OPAL_HAVE_WEAK_SYMBOLS
@@ -50,6 +51,8 @@ int MPI_Ialltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
5051
size_t sendtype_size, recvtype_size;
5152
int err;
5253

54+
SPC_RECORD(OMPI_IALLTOALL, 1);
55+
5356
MEMCHECKER(
5457
memchecker_comm(comm);
5558
if (MPI_IN_PLACE != sendbuf) {

0 commit comments

Comments
 (0)