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
Cristian Simarro
darshan
Commits
57cb7624
Commit
57cb7624
authored
Sep 10, 2015
by
Shane Snyder
Browse files
fix compiler warnings
parent
328f68bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/darshan-dynamic.h
View file @
57cb7624
...
...
@@ -117,6 +117,7 @@ DARSHAN_EXTERN_DECL(PMPI_Op_free, int, (MPI_Op *op));
DARSHAN_EXTERN_DECL
(
PMPI_Reduce
,
int
,
(
void
*
sendbuf
,
void
*
recvbuf
,
int
count
,
MPI_Datatype
datatype
,
MPI_Op
op
,
int
root
,
MPI_Comm
comm
));
DARSHAN_EXTERN_DECL
(
PMPI_Send
,
int
,
(
void
*
buf
,
int
count
,
MPI_Datatype
datatype
,
int
dest
,
int
tag
,
MPI_Comm
comm
));
DARSHAN_EXTERN_DECL
(
PMPI_Recv
,
int
,
(
void
*
buf
,
int
count
,
MPI_Datatype
datatype
,
int
source
,
int
tag
,
MPI_Comm
comm
,
MPI_Status
*
status
));
DARSHAN_EXTERN_DECL
(
PMPI_Gather
,
int
,
(
const
void
*
sendbuf
,
int
sendcount
,
MPI_Datatype
sendtype
,
void
*
recvbuf
,
int
recvcount
,
MPI_Datatype
recvtype
,
int
root
,
MPI_Comm
comm
));
#endif
...
...
darshan-runtime/lib/darshan-bgq.c
View file @
57cb7624
...
...
@@ -17,7 +17,9 @@
#include "uthash.h"
#include "darshan.h"
#include "darshan-bgq-log-format.h"
#include "darshan-dynamic.h"
#include <mpix.h>
#include <spi/include/kernel/location.h>
#include <spi/include/kernel/process.h>
#include <firmware/include/personality.h>
...
...
@@ -56,8 +58,6 @@ void bgq_runtime_initialize(void);
static
void
bgq_begin_shutdown
(
void
);
static
void
bgq_get_output_data
(
MPI_Comm
mod_comm
,
darshan_record_id
*
shared_recs
,
int
shared_rec_count
,
void
**
buffer
,
int
*
size
);
static
void
bgq_shutdown
(
void
);
static
void
bgq_setup_reduction
(
darshan_record_id
*
shared_recs
,
int
*
shared_rec_count
,
void
**
send_buf
,
void
**
recv_buf
,
int
*
rec_size
);
static
void
bgq_record_reduction_op
(
void
*
infile_v
,
void
*
inoutfile_v
,
int
*
len
,
MPI_Datatype
*
datatype
);
/* macros for obtaining/releasing the "NULL" module lock */
#define BGQ_LOCK() pthread_mutex_lock(&bgq_runtime_mutex)
...
...
@@ -161,8 +161,6 @@ void bgq_runtime_initialize()
&
bgq_runtime
->
record
.
f_id
,
&
bgq_runtime
->
record
.
alignment
);
DARSHAN_MPI_CALL
(
PMPI_Comm_rank
)(
MPI_COMM_WORLD
,
&
my_rank
);
capture
(
&
bgq_runtime
->
record
);
BGQ_UNLOCK
();
...
...
@@ -213,25 +211,25 @@ static void bgq_get_output_data(
if
(
my_rank
==
0
)
{
DARSHAN_MPI_CALL
(
MPI_Comm_size
)(
mod_comm
,
&
nprocs
);
DARSHAN_MPI_CALL
(
P
MPI_Comm_size
)(
mod_comm
,
&
nprocs
);
ion_ids
=
malloc
(
sizeof
(
*
ion_ids
)
*
nprocs
);
result
=
(
ion_ids
!=
NULL
);
}
DARSHAN_MPI_CALL
(
MPI_Bcast
)(
&
result
,
1
,
MPI_INT
,
0
,
mod_comm
);
DARSHAN_MPI_CALL
(
P
MPI_Bcast
)(
&
result
,
1
,
MPI_INT
,
0
,
mod_comm
);
if
(
bgq_runtime
&&
result
)
{
int
i
,
found
;
uint64_t
val
;
DARSHAN_MPI_CALL
(
MPI_Gather
)(
&
bgq_runtime
->
record
.
counters
[
BGQ_INODES
],
1
,
MPI_LONG_LONG_INT
,
ion_ids
,
1
,
MPI_LONG_LONG_INT
,
0
,
mod_comm
);
DARSHAN_MPI_CALL
(
P
MPI_Gather
)(
&
bgq_runtime
->
record
.
counters
[
BGQ_INODES
],
1
,
MPI_LONG_LONG_INT
,
ion_ids
,
1
,
MPI_LONG_LONG_INT
,
0
,
mod_comm
);
if
(
my_rank
==
0
)
{
qsort
(
ion_ids
,
nprocs
,
sizeof
(
*
ion_ids
),
cmpr
);
...
...
@@ -273,6 +271,7 @@ static void bgq_shutdown()
return
;
}
#if 0
static void bgq_record_reduction_op(
void* infile_v,
void* inoutfile_v,
...
...
@@ -305,6 +304,7 @@ static void bgq_record_reduction_op(
return;
}
#endif
/*
* Local variables:
...
...
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