Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
2f3b89ad
Commit
2f3b89ad
authored
Aug 23, 2017
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing printf warnings, unused functions, adding list of contributors
parent
703f0b01
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
42 deletions
+42
-42
codes/codes-workload.h
codes/codes-workload.h
+2
-2
src/network-workloads/model-net-mpi-replay.c
src/network-workloads/model-net-mpi-replay.c
+32
-32
src/networks/model-net/dragonfly.c
src/networks/model-net/dragonfly.c
+1
-1
src/networks/model-net/torus.c
src/networks/model-net/torus.c
+1
-1
src/workload/codes-workload.c
src/workload/codes-workload.c
+4
-4
src/workload/methods/codes-dumpi-trace-nw-wrkld.c
src/workload/methods/codes-dumpi-trace-nw-wrkld.c
+2
-2
No files found.
codes/codes-workload.h
View file @
2f3b89ad
...
...
@@ -194,7 +194,7 @@ struct codes_workload_op
/* TODO: not sure why source rank is here */
int
source_rank
;
/* source rank of MPI send message */
int
dest_rank
;
/* dest rank of MPI send message */
u
int64_t
num_bytes
;
/* number of bytes to be transferred over the network */
int64_t
num_bytes
;
/* number of bytes to be transferred over the network */
int16_t
data_type
;
/* MPI data type to be matched with the recv */
int
count
;
/* number of elements to be received */
int
tag
;
/* tag of the message */
...
...
@@ -204,7 +204,7 @@ struct codes_workload_op
/* TODO: not sure why source rank is here */
int
source_rank
;
/* source rank of MPI recv message */
int
dest_rank
;
/* dest rank of MPI recv message */
u
int64_t
num_bytes
;
/* number of bytes to be transferred over the network */
int64_t
num_bytes
;
/* number of bytes to be transferred over the network */
int16_t
data_type
;
/* MPI data type to be matched with the send */
int
count
;
/* number of elements to be sent */
int
tag
;
/* tag of the message */
...
...
src/network-workloads/model-net-mpi-replay.c
View file @
2f3b89ad
This diff is collapsed.
Click to expand it.
src/networks/model-net/dragonfly.c
View file @
2f3b89ad
...
...
@@ -2431,7 +2431,7 @@ dragonfly_terminal_final( terminal_state * s,
if
(
!
s
->
terminal_id
)
written
=
sprintf
(
s
->
output_buf
,
"# Format <LP id> <Terminal ID> <Total Data Size> <Aggregate packet latency> <# Flits/Packets finished> <Avg hops> <Busy Time>"
);
written
+=
sprintf
(
s
->
output_buf
+
written
,
"
\n
%llu %u %
lld
%lf %ld %lf %lf"
,
written
+=
sprintf
(
s
->
output_buf
+
written
,
"
\n
%llu %u %
"
PRId64
"
%lf %ld %lf %lf"
,
LLU
(
lp
->
gid
),
s
->
terminal_id
,
s
->
total_msg_size
,
(
double
)
s
->
total_time
/
s
->
finished_packets
,
s
->
finished_packets
,
(
double
)
s
->
total_hops
/
s
->
finished_chunks
,
s
->
busy_time
);
...
...
src/networks/model-net/torus.c
View file @
2f3b89ad
...
...
@@ -1027,7 +1027,7 @@ static void dimension_order_routing( nodes_state * s,
int
*
dir
)
{
int
dest
[
s
->
params
->
n_dims
];
int
dest_id
;
int
dest_id
=
-
1
;
/* dummys - check later */
*
dim
=
-
1
;
...
...
src/workload/codes-workload.c
View file @
2f3b89ad
...
...
@@ -327,7 +327,7 @@ void codes_workload_print_op(
break
;
case
CODES_WK_SEND
:
fprintf
(
f
,
"op: app:%d rank:%d type:send "
"src:%d dst:%d bytes:%
llu
type:%d count:%d tag:%d "
"src:%d dst:%d bytes:%
"
PRIu64
"
type:%d count:%d tag:%d "
"start:%.5e end:%.5e
\n
"
,
app_id
,
rank
,
op
->
u
.
send
.
source_rank
,
op
->
u
.
send
.
dest_rank
,
...
...
@@ -337,7 +337,7 @@ void codes_workload_print_op(
break
;
case
CODES_WK_RECV
:
fprintf
(
f
,
"op: app:%d rank:%d type:recv "
"src:%d dst:%d bytes:%
llu
type:%d count:%d tag:%d "
"src:%d dst:%d bytes:%
"
PRIu64
"
type:%d count:%d tag:%d "
"start:%.5e end:%.5e
\n
"
,
app_id
,
rank
,
op
->
u
.
recv
.
source_rank
,
op
->
u
.
recv
.
dest_rank
,
...
...
@@ -347,7 +347,7 @@ void codes_workload_print_op(
break
;
case
CODES_WK_ISEND
:
fprintf
(
f
,
"op: app:%d rank:%d type:isend "
"src:%d dst:%d bytes:%
llu
type:%d count:%d tag:%d "
"src:%d dst:%d bytes:%
"
PRIu64
"
type:%d count:%d tag:%d "
"start:%.5e end:%.5e
\n
"
,
app_id
,
rank
,
op
->
u
.
send
.
source_rank
,
op
->
u
.
send
.
dest_rank
,
...
...
@@ -357,7 +357,7 @@ void codes_workload_print_op(
break
;
case
CODES_WK_IRECV
:
fprintf
(
f
,
"op: app:%d rank:%d type:irecv "
"src:%d dst:%d bytes:%
llu
type:%d count:%d tag:%d "
"src:%d dst:%d bytes:%
"
PRIu64
"
type:%d count:%d tag:%d "
"start:%.5e end:%.5e
\n
"
,
app_id
,
rank
,
op
->
u
.
recv
.
source_rank
,
op
->
u
.
recv
.
dest_rank
,
...
...
src/workload/methods/codes-dumpi-trace-nw-wrkld.c
View file @
2f3b89ad
...
...
@@ -109,12 +109,12 @@ static inline double time_to_us_lf(dumpi_clock t){
static
inline
double
time_to_ns_lf
(
dumpi_clock
t
){
return
(
double
)
t
.
sec
*
1e9
+
(
double
)
t
.
nsec
;
}
static
int32_t
get_unique_req_id
(
int32_t
request_id
)
/*
static int32_t get_unique_req_id(int32_t request_id)
{
uint32_t pc = 0, pb = 0;
bj_hashlittle2(&request_id, sizeof(int32_t), &pc, &pb);
return pc;
}
}
*/
/*static inline double time_to_s_lf(dumpi_clock t){
return (double) t.sec + (double) t.nsec / 1e9;
}*/
...
...
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