Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
d37d59ab
Commit
d37d59ab
authored
Jun 17, 2015
by
Jonathan Jenkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor iolang-specfic stuff out of codes-workload.h
parent
40a3950d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
14 deletions
+15
-14
codes-workload.h
codes/codes-workload.h
+0
-10
CodesKernelHelpers.c
src/iokernellang/CodesKernelHelpers.c
+2
-2
CodesKernelHelpers.h
src/iokernellang/CodesKernelHelpers.h
+12
-1
codes-iolang-wrkld.c
src/workload/methods/codes-iolang-wrkld.c
+1
-1
No files found.
codes/codes-workload.h
View file @
d37d59ab
...
...
@@ -18,7 +18,6 @@
typedef
struct
iolang_params
iolang_params
;
typedef
struct
darshan_params
darshan_params
;
typedef
struct
recorder_params
recorder_params
;
typedef
struct
codes_workload_info
codes_workload_info
;
/* struct to hold the actual data from a single MPI event*/
typedef
struct
scala_trace_params
scala_trace_params
;
...
...
@@ -49,15 +48,6 @@ struct recorder_params
};
struct
codes_workload_info
{
int
group_id
;
/* group id */
int
min_rank
;
/* minimum rank in the collective operation */
int
max_rank
;
/* maximum rank in the collective operation */
int
local_rank
;
/* local rank? never being used in the bg/p model */
int
num_lrank
;
/* number of ranks participating in the collective operation*/
};
struct
scala_trace_params
{
char
offset_file_name
[
MAX_NAME_LENGTH_WKLD
];
char
nw_wrkld_file_name
[
MAX_NAME_LENGTH_WKLD
];
...
...
src/iokernellang/CodesKernelHelpers.c
View file @
d37d59ab
...
...
@@ -112,7 +112,7 @@ static int convertKLInstToEvent(int inst)
static
void
codes_kernel_helper_parse_cf
(
char
*
io_kernel_path
,
char
*
io_kernel_meta_path
,
int
task_rank
,
int
max_ranks_default
,
codes
_workload_info
*
task_info
,
int
use_relpath
)
iolang
_workload_info
*
task_info
,
int
use_relpath
)
{
int
foundit
=
0
;
char
line
[
CK_LINE_LIMIT
];
...
...
@@ -299,7 +299,7 @@ int codes_kernel_helper_parse_input(CodesIOKernel_pstate * ps, CodesIOKernelCont
int
codes_kernel_helper_bootstrap
(
char
*
io_kernel_path
,
char
*
io_kernel_meta_path
,
int
rank
,
int
num_ranks
,
int
use_relpath
,
CodesIOKernelContext
*
c
,
CodesIOKernel_pstate
**
ps
,
codes
_workload_info
*
task_info
,
codeslang_inst
*
next_event
)
iolang
_workload_info
*
task_info
,
codeslang_inst
*
next_event
)
{
int
t
=
CL_NOOP
;
int
ret
=
0
;
...
...
src/iokernellang/CodesKernelHelpers.h
View file @
d37d59ab
...
...
@@ -24,6 +24,17 @@
#define CL_INST_MAX_ARGS 10
struct
iolang_workload_info
{
int
group_id
;
/* group id */
int
min_rank
;
/* minimum rank in the collective operation */
int
max_rank
;
/* maximum rank in the collective operation */
int
local_rank
;
/* local rank? never being used in the bg/p model */
int
num_lrank
;
/* number of ranks participating in the collective operation*/
};
typedef
struct
iolang_workload_info
iolang_workload_info
;
enum
cl_event_t
{
CL_GETSIZE
=
1
,
...
...
@@ -63,7 +74,7 @@ int codes_kernel_helper_parse_input(CodesIOKernel_pstate * ps,
int
codes_kernel_helper_bootstrap
(
char
*
io_kernel_path
,
char
*
io_kernel_meta_path
,
int
rank
,
int
num_ranks
,
int
use_relpath
,
CodesIOKernelContext
*
c
,
CodesIOKernel_pstate
**
ps
,
codes
_workload_info
*
task_info
,
CodesIOKernel_pstate
**
ps
,
iolang
_workload_info
*
task_info
,
codeslang_inst
*
next_event
);
char
*
code_kernel_helpers_cleventToStr
(
int
inst
);
...
...
src/workload/methods/codes-iolang-wrkld.c
View file @
d37d59ab
...
...
@@ -51,7 +51,7 @@ struct codes_iolang_wrkld_state_per_rank
CodesIOKernel_pstate
*
codes_pstate
;
codeslang_inst
next_event
;
struct
qhash_head
hash_link
;
codes
_workload_info
task_info
;
iolang
_workload_info
task_info
;
};
/* loads the workload file for each simulated MPI rank/ compute node LP */
...
...
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