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
845594c7
Commit
845594c7
authored
Aug 14, 2014
by
mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor updates in codes-dumpi workload generator
parent
be90b45c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
17 deletions
+21
-17
codes/codes-nw-workload.h
codes/codes-nw-workload.h
+12
-11
src/network-workload/codes-dumpi-trace-nw-wrkld.c
src/network-workload/codes-dumpi-trace-nw-wrkld.c
+3
-0
src/network-workload/codes-nw-workload.c
src/network-workload/codes-nw-workload.c
+4
-4
src/network-workload/codes-scala-trace-nw-wrkld.c
src/network-workload/codes-scala-trace-nw-wrkld.c
+2
-2
No files found.
codes/codes-nw-workload.h
View file @
845594c7
...
...
@@ -9,7 +9,7 @@
#include "ross.h"
#define MAX_
NAME_
LENGTH 512
#define MAX_LENGTH 512
//#define MAX_REQUESTS 128
/* struct to hold the actual data from a single MPI event*/
...
...
@@ -19,13 +19,14 @@ typedef struct dumpi_trace_params dumpi_trace_params;
struct
scala_trace_params
{
char
offset_file_name
[
MAX_
NAME_
LENGTH
];
char
nw_wrkld_file_name
[
MAX_
NAME_
LENGTH
];
char
offset_file_name
[
MAX_LENGTH
];
char
nw_wrkld_file_name
[
MAX_LENGTH
];
};
struct
dumpi_trace_params
{
char
file_name
[
MAX_NAME_LENGTH
];
int
num_net_traces
;
char
file_name
[
MAX_LENGTH
];
};
enum
NW_WORKLOADS
...
...
@@ -41,7 +42,7 @@ enum mpi_workload_type
/* sleep/delay to simulate computation or other activity */
CODES_NW_DELAY
=
1
,
/* MPI wait all operation */
CODES_NW_WAITALL
,
//
CODES_NW_WAITALL,
/* terminator; there are no more operations for this rank */
CODES_NW_END
,
/* MPI blocking send operation */
...
...
@@ -67,9 +68,9 @@ enum mpi_workload_type
/* MPI Allreduce operation */
CODES_NW_ALLREDUCE
,
/* MPI test all operation */
CODES_NW_TESTALL
,
//
CODES_NW_TESTALL,
/* MPI test operation */
CODES_NW_TEST
,
//
CODES_NW_TEST,
/* Generic collective operation */
CODES_NW_COL
,
};
...
...
@@ -99,7 +100,7 @@ struct mpi_event_list
short
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 */
int32_t
request
;
//
int32_t request;
}
send
;
struct
{
...
...
@@ -109,7 +110,7 @@ struct mpi_event_list
short
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 */
int32_t
request
;
//
int32_t request;
}
recv
;
struct
{
...
...
@@ -119,12 +120,12 @@ struct mpi_event_list
{
int count;
int requests[MAX_REQUESTS];
} wait_all;
*/
} wait_all;
struct
{
int32_t request;
int flag;
}
test
;
} test;
*/
}
u
;
};
...
...
src/network-workload/codes-dumpi-trace-nw-wrkld.c
View file @
845594c7
...
...
@@ -412,6 +412,9 @@ int dumpi_trace_nw_workload_load(const char* params, int rank)
dumpi_trace_params
*
dumpi_params
=
(
dumpi_trace_params
*
)
params
;
char
file_name
[
MAX_LENGTH
];
if
(
rank
>=
dumpi_params
->
num_net_traces
)
return
-
1
;
if
(
!
rank_tbl
)
{
rank_tbl
=
qhash_init
(
hash_rank_compare
,
quickhash_32bit_hash
,
RANK_HASH_TABLE_SIZE
);
...
...
src/network-workload/codes-nw-workload.c
View file @
845594c7
...
...
@@ -175,10 +175,10 @@ void codes_nw_workload_print_op(FILE *f, struct mpi_event_list *op, int rank){
case
CODES_NW_IRECV
:
fprintf
(
f
,
"op: rank:%d type:recv "
"sender: %d receiver: %d number of bytes: %d "
"start time: %f end time: %f
request ID: %d
\n
"
,
"start time: %f end time: %f
\n
"
,
rank
,
op
->
u
.
recv
.
source_rank
,
op
->
u
.
recv
.
dest_rank
,
op
->
u
.
recv
.
num_bytes
,
op
->
start_time
,
op
->
end_time
,
(
int
)
op
->
u
.
recv
.
request
);
op
->
start_time
,
op
->
end_time
);
break
;
case
CODES_NW_COL
:
case
CODES_NW_BCAST
:
...
...
@@ -192,13 +192,13 @@ void codes_nw_workload_print_op(FILE *f, struct mpi_event_list *op, int rank){
"count: %d
\n
"
,
rank
,
op
->
u
.
collective
.
num_bytes
);
break
;
case
CODES_NW_TEST
:
/*
case CODES_NW_TEST:
fprintf(f, "op: rank:%d type:test "
"request ID: %d flag: %d "
"start time: %f end time: %f \n",
rank, (int)op->u.test.request, op->u.test.flag,
op->start_time, op->end_time);
break
;
break;
*/
/*case CODES_NW_WAITALL:
fprintf(f, "op: rank:%d type:waitall "
"count: %d "
...
...
src/network-workload/codes-scala-trace-nw-wrkld.c
View file @
845594c7
...
...
@@ -63,8 +63,8 @@ int scala_trace_nw_workload_load(const char* params, int rank)
scala_trace_params
*
st_params
=
(
scala_trace_params
*
)
params
;
char
offset_file
[
MAX_
NAME_
LENGTH
];
char
wrkld_file
[
MAX_
NAME_
LENGTH
];
char
offset_file
[
MAX_LENGTH
];
char
wrkld_file
[
MAX_LENGTH
];
strcpy
(
offset_file
,
st_params
->
offset_file_name
);
strcpy
(
wrkld_file
,
st_params
->
nw_wrkld_file_name
);
...
...
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