Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
darshan
darshan
Commits
7e0566b7
Commit
7e0566b7
authored
Sep 03, 2015
by
Kevin Harms
Browse files
Bug fixes after testing
parent
835e28d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/lib/darshan-bgq.c
View file @
7e0566b7
...
...
@@ -76,7 +76,7 @@ static void capture(struct darshan_bgq_record *rec)
rec
->
counters
[
BGQ_CSJOBID
]
=
Kernel_GetJobID
();
rec
->
counters
[
BGQ_RANKSPERNODE
]
=
Kernel_ProcessCount
();
rec
->
counters
[
BGQ_INODES
]
=
MPIX_IO_node
();
rec
->
counters
[
BGQ_INODES
]
=
MPIX_IO_node
_id
();
r
=
Kernel_GetPersonality
(
&
person
,
sizeof
(
person
));
if
(
r
==
0
)
...
...
@@ -193,8 +193,8 @@ static void bgq_begin_shutdown()
static
int
cmpr
(
const
void
*
p1
,
const
void
*
p2
)
{
const
int
*
a
=
(
int
*
)
p1
;
const
int
*
b
=
(
int
*
)
p2
;
const
u
int
64_t
*
a
=
(
u
int
64_t
*
)
p1
;
const
u
int
64_t
*
b
=
(
u
int
64_t
*
)
p2
;
return
((
*
a
==
*
b
)
?
0
:
((
*
a
<
*
b
)
?
-
1
:
1
));
}
...
...
@@ -230,10 +230,10 @@ static void bgq_get_output_data(
DARSHAN_MPI_CALL
(
MPI_Gather
)(
&
bgq_runtime
->
record
.
counters
[
BGQ_INODES
],
1
,
MPI_INT
,
MPI_
LONG_LONG_
INT
,
ion_ids
,
1
,
MPI_INT
,
MPI_
LONG_LONG_
INT
,
0
,
mod_comm
);
if
(
my_rank
==
0
)
...
...
darshan-util/darshan-bgq-logutils.c
View file @
7e0566b7
...
...
@@ -56,9 +56,9 @@ static int darshan_log_get_bgq_file(void** psx_buf_p, int* bytes_left,
/* swap bytes if necessary */
DARSHAN_BSWAP64
(
&
file
->
f_id
);
DARSHAN_BSWAP64
(
&
file
->
rank
);
for
(
i
=
0
;
i
<
POSIX
_NUM_INDICES
;
i
++
)
for
(
i
=
0
;
i
<
BGQ
_NUM_INDICES
;
i
++
)
DARSHAN_BSWAP64
(
&
file
->
counters
[
i
]);
for
(
i
=
0
;
i
<
POSIX
_F_NUM_INDICES
;
i
++
)
for
(
i
=
0
;
i
<
BGQ
_F_NUM_INDICES
;
i
++
)
DARSHAN_BSWAP64
(
&
file
->
fcounters
[
i
]);
}
...
...
@@ -78,16 +78,16 @@ static void darshan_log_print_bgq_file(void *file_rec, char *file_name,
struct
darshan_bgq_record
*
bgq_file_rec
=
(
struct
darshan_bgq_record
*
)
file_rec
;
for
(
i
=
0
;
i
<
POSIX
_NUM_INDICES
;
i
++
)
for
(
i
=
0
;
i
<
BGQ
_NUM_INDICES
;
i
++
)
{
DARSHAN_COUNTER_PRINT
(
darshan_module_names
[
DARSHAN_
POSIX
_MOD
],
DARSHAN_COUNTER_PRINT
(
darshan_module_names
[
DARSHAN_
BGQ
_MOD
],
bgq_file_rec
->
rank
,
bgq_file_rec
->
f_id
,
bgq_counter_names
[
i
],
bgq_file_rec
->
counters
[
i
],
file_name
,
mnt_pt
,
fs_type
);
}
for
(
i
=
0
;
i
<
POSIX
_F_NUM_INDICES
;
i
++
)
for
(
i
=
0
;
i
<
BGQ
_F_NUM_INDICES
;
i
++
)
{
DARSHAN_F_COUNTER_PRINT
(
darshan_module_names
[
DARSHAN_
POSIX
_MOD
],
DARSHAN_F_COUNTER_PRINT
(
darshan_module_names
[
DARSHAN_
BGQ
_MOD
],
bgq_file_rec
->
rank
,
bgq_file_rec
->
f_id
,
bgq_f_counter_names
[
i
],
bgq_file_rec
->
fcounters
[
i
],
file_name
,
mnt_pt
,
fs_type
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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