Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AutoPerf
autoperf
Commits
6ee1eeac
Commit
6ee1eeac
authored
Jan 30, 2021
by
Sudheer Chunduri
Browse files
include nodeid for each rank (Cray PMI specific)
parent
51d62e47
Changes
3
Show whitespace changes
Inline
Side-by-side
apmpi/darshan-apmpi-log-format.h
View file @
6ee1eeac
...
...
@@ -200,6 +200,8 @@ enum apmpi_f_mpi_global_indices
struct
darshan_apmpi_perf_record
{
struct
darshan_base_record
base_rec
;
/* nodeid is system dependent */
uint32_t
nodeid
;
uint64_t
counters
[
APMPI_NUM_INDICES
];
double
fcounters
[
APMPI_F_NUM_INDICES
];
double
fsynccounters
[
APMPI_F_SYNC_NUM_INDICES
];
...
...
apmpi/lib/darshan-apmpi.c
View file @
6ee1eeac
...
...
@@ -6,8 +6,6 @@
#define _XOPEN_SOURCE 500
#define _GNU_SOURCE
/* Application id is application launcher specific - this one for ALPS*/
#define csJOBID_ENV_STR "ALPS_APP_ID"
#include "darshan-runtime-config.h"
#include <stdio.h>
...
...
@@ -17,6 +15,9 @@
#include <assert.h>
#include <papi.h>
/* for node id - Cray PMI specific */
#include "pmi_cray_ext.h"
#include "uthash.h"
#include "darshan.h"
#include "darshan-dynamic.h"
...
...
@@ -270,6 +271,7 @@ static void capture(struct darshan_apmpi_perf_record *rec,
{
rec
->
base_rec
.
id
=
rec_id
;
rec
->
base_rec
.
rank
=
my_rank
;
PMI_CNOS_Get_nid
(
my_rank
,
&
rec
->
nodeid
);
return
;
}
...
...
apmpi/util/darshan-apmpi-logutils.c
View file @
6ee1eeac
...
...
@@ -140,6 +140,7 @@ static int darshan_log_get_apmpi_rec(darshan_fd fd, void** buf_p)
else
{
prf_rec
=
(
struct
darshan_apmpi_perf_record
*
)
buffer
;
DARSHAN_BSWAP32
(
&
(
prf_rec
->
nodeid
));
DARSHAN_BSWAP64
(
&
(
prf_rec
->
base_rec
.
id
));
DARSHAN_BSWAP64
(
&
(
prf_rec
->
base_rec
.
rank
));
for
(
i
=
0
;
i
<
APMPI_NUM_INDICES
;
i
++
)
...
...
@@ -224,6 +225,11 @@ static void darshan_log_print_apmpi_rec(void *rec, char *file_name,
{
prf_rec
=
rec
;
DARSHAN_U_COUNTER_PRINT
(
darshan_module_names
[
APMPI_MOD
],
prf_rec
->
base_rec
.
rank
,
prf_rec
->
base_rec
.
id
,
"nodeid"
,
prf_rec
->
nodeid
,
""
,
""
,
""
);
for
(
i
=
0
;
i
<
APMPI_NUM_INDICES
;
i
++
)
{
DARSHAN_U_COUNTER_PRINT
(
darshan_module_names
[
APMPI_MOD
],
...
...
@@ -339,6 +345,35 @@ static void darshan_log_print_apmpi_rec_diff(void *file_rec1, char *file_name1,
}
else
{
if
(
!
prf_rec2
)
{
printf
(
"- "
);
DARSHAN_U_COUNTER_PRINT
(
darshan_module_names
[
APMPI_MOD
],
prf_rec1
->
base_rec
.
rank
,
prf_rec1
->
base_rec
.
id
,
"nodeid"
,
prf_rec1
->
nodeid
,
""
,
""
,
""
);
}
else
if
(
!
prf_rec1
)
{
printf
(
"+ "
);
DARSHAN_U_COUNTER_PRINT
(
darshan_module_names
[
APMPI_MOD
],
prf_rec2
->
base_rec
.
rank
,
prf_rec2
->
base_rec
.
id
,
"nodeid"
,
prf_rec2
->
nodeid
,
""
,
""
,
""
);
}
else
if
(
prf_rec1
->
nodeid
!=
prf_rec2
->
nodeid
)
{
printf
(
"- "
);
DARSHAN_U_COUNTER_PRINT
(
darshan_module_names
[
APMPI_MOD
],
prf_rec1
->
base_rec
.
rank
,
prf_rec1
->
base_rec
.
id
,
"nodeid"
,
prf_rec1
->
nodeid
,
""
,
""
,
""
);
printf
(
"+ "
);
DARSHAN_U_COUNTER_PRINT
(
darshan_module_names
[
APMPI_MOD
],
prf_rec2
->
base_rec
.
rank
,
prf_rec2
->
base_rec
.
id
,
"nodeid"
,
prf_rec2
->
nodeid
,
""
,
""
,
""
);
}
int
i
;
for
(
i
=
0
;
i
<
APMPI_NUM_INDICES
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment