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
64e2c33e
Commit
64e2c33e
authored
Mar 12, 2015
by
Jonathan Jenkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
begone, unused bgp parameters
parent
436e5f8b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
26 deletions
+17
-26
codes/codes-workload.h
codes/codes-workload.h
+1
-1
src/iokernellang/CodesKernelHelpers.c
src/iokernellang/CodesKernelHelpers.c
+14
-20
src/iokernellang/CodesKernelHelpers.h
src/iokernellang/CodesKernelHelpers.h
+1
-1
src/workload/codes-workload-dump.c
src/workload/codes-workload-dump.c
+1
-1
src/workload/methods/codes-bgp-io-wrkld.c
src/workload/methods/codes-bgp-io-wrkld.c
+0
-1
tests/workload/codes-workload-mpi-replay.c
tests/workload/codes-workload-mpi-replay.c
+0
-1
tests/workload/codes-workload-test.c
tests/workload/codes-workload-test.c
+0
-1
No files found.
codes/codes-workload.h
View file @
64e2c33e
...
@@ -32,8 +32,8 @@ struct bgp_params
...
@@ -32,8 +32,8 @@ struct bgp_params
/* flag - use path to find kernel files relative to the metafile */
/* flag - use path to find kernel files relative to the metafile */
int
use_relpath
;
int
use_relpath
;
char
io_kernel_meta_path
[
MAX_NAME_LENGTH_WKLD
];
char
io_kernel_meta_path
[
MAX_NAME_LENGTH_WKLD
];
/* set by config in the metadata path */
char
io_kernel_path
[
MAX_NAME_LENGTH_WKLD
];
char
io_kernel_path
[
MAX_NAME_LENGTH_WKLD
];
char
io_kernel_def_path
[
MAX_NAME_LENGTH_WKLD
];
};
};
struct
darshan_params
struct
darshan_params
...
...
src/iokernellang/CodesKernelHelpers.c
View file @
64e2c33e
...
@@ -110,8 +110,9 @@ static int convertKLInstToEvent(int inst)
...
@@ -110,8 +110,9 @@ static int convertKLInstToEvent(int inst)
return
CL_UNKNOWN
;
return
CL_UNKNOWN
;
}
}
static
void
codes_kernel_helper_parse_cf
(
char
*
io_kernel_path
,
char
*
static
void
codes_kernel_helper_parse_cf
(
char
*
io_kernel_path
,
io_kernel_def_path
,
char
*
io_kernel_meta_path
,
int
task_rank
,
int
max_ranks_default
,
codes_workload_info
*
task_info
,
int
use_relpath
)
char
*
io_kernel_meta_path
,
int
task_rank
,
int
max_ranks_default
,
codes_workload_info
*
task_info
,
int
use_relpath
)
{
{
int
foundit
=
0
;
int
foundit
=
0
;
char
line
[
CK_LINE_LIMIT
];
char
line
[
CK_LINE_LIMIT
];
...
@@ -193,18 +194,12 @@ static void codes_kernel_helper_parse_cf(char * io_kernel_path, char *
...
@@ -193,18 +194,12 @@ static void codes_kernel_helper_parse_cf(char * io_kernel_path, char *
fclose
(
ikmp
);
fclose
(
ikmp
);
/* if we did not find the config file, set it to the default */
/* if we did not find the config file, set it to the default */
if
(
foundit
==
0
)
if
(
foundit
==
0
)
{
{
fprintf
(
stderr
,
/* default kernel */
"ERROR: Unable to find iolang workload file "
strcpy
(
io_kernel_path
,
io_kernel_def_path
);
"from given metadata file %s... exiting
\n
"
,
io_kernel_meta_path
);
/* default gid and task attrs */
exit
(
1
);
/* TODO can we detect the gaps instead of -1 */
task_info
->
group_id
=
CL_DEFAULT_GID
;
task_info
->
min_rank
=
-
1
;
task_info
->
max_rank
=
-
1
;
task_info
->
local_rank
=
-
1
;
task_info
->
num_lrank
=
-
1
;
}
}
return
;
return
;
...
@@ -301,11 +296,10 @@ int codes_kernel_helper_parse_input(CodesIOKernel_pstate * ps, CodesIOKernelCont
...
@@ -301,11 +296,10 @@ int codes_kernel_helper_parse_input(CodesIOKernel_pstate * ps, CodesIOKernelCont
return
codes_inst
;
return
codes_inst
;
}
}
int
codes_kernel_helper_bootstrap
(
char
*
io_kernel_path
,
char
*
int
codes_kernel_helper_bootstrap
(
char
*
io_kernel_path
,
io_kernel_def_path
,
char
*
io_kernel_meta_path
,
char
*
io_kernel_meta_path
,
int
rank
,
int
num_ranks
,
int
use_relpath
,
int
rank
,
int
num_ranks
,
int
use_relpath
,
CodesIOKernelContext
*
c
,
CodesIOKernelContext
*
c
,
CodesIOKernel_pstate
**
ps
,
CodesIOKernel_pstate
**
ps
,
codes_workload_info
*
task_info
,
codes_workload_info
*
task_info
,
codeslang_inst
*
next_event
)
codeslang_inst
*
next_event
)
{
{
int
t
=
CL_NOOP
;
int
t
=
CL_NOOP
;
int
ret
=
0
;
int
ret
=
0
;
...
@@ -316,7 +310,7 @@ int codes_kernel_helper_bootstrap(char * io_kernel_path, char *
...
@@ -316,7 +310,7 @@ int codes_kernel_helper_bootstrap(char * io_kernel_path, char *
temp_group_rank
=
rank
;
temp_group_rank
=
rank
;
/* get the kernel from the file */
/* get the kernel from the file */
codes_kernel_helper_parse_cf
(
io_kernel_path
,
io_kernel_def_path
,
codes_kernel_helper_parse_cf
(
io_kernel_path
,
io_kernel_meta_path
,
rank
,
num_ranks
,
task_info
,
use_relpath
);
io_kernel_meta_path
,
rank
,
num_ranks
,
task_info
,
use_relpath
);
temp_group_size
=
task_info
->
num_lrank
;
temp_group_size
=
task_info
->
num_lrank
;
/* stat the kernel file */
/* stat the kernel file */
...
...
src/iokernellang/CodesKernelHelpers.h
View file @
64e2c33e
...
@@ -61,7 +61,7 @@ typedef struct codeslang_inst
...
@@ -61,7 +61,7 @@ typedef struct codeslang_inst
int
codes_kernel_helper_parse_input
(
CodesIOKernel_pstate
*
ps
,
int
codes_kernel_helper_parse_input
(
CodesIOKernel_pstate
*
ps
,
CodesIOKernelContext
*
c
,
codeslang_inst
*
inst
);
CodesIOKernelContext
*
c
,
codeslang_inst
*
inst
);
int
codes_kernel_helper_bootstrap
(
char
*
io_kernel_path
,
char
*
def_io_kernel_path
,
int
codes_kernel_helper_bootstrap
(
char
*
io_kernel_path
,
char
*
io_kernel_meta_path
,
int
rank
,
int
num_ranks
,
int
use_relpath
,
CodesIOKernelContext
*
c
,
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
,
codes_workload_info
*
task_info
,
codeslang_inst
*
next_event
);
codeslang_inst
*
next_event
);
...
...
src/workload/codes-workload-dump.c
View file @
64e2c33e
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
static
char
type
[
128
]
=
{
'\0'
};
static
char
type
[
128
]
=
{
'\0'
};
static
darshan_params
d_params
=
{
""
,
0
};
static
darshan_params
d_params
=
{
""
,
0
};
static
bgp_params
b_params
=
{
0
,
0
,
""
,
""
,
""
};
static
bgp_params
b_params
=
{
0
,
0
,
""
,
""
};
static
recorder_params
r_params
=
{
""
,
0
};
static
recorder_params
r_params
=
{
""
,
0
};
static
int
n
=
-
1
;
static
int
n
=
-
1
;
...
...
src/workload/methods/codes-bgp-io-wrkld.c
View file @
64e2c33e
...
@@ -82,7 +82,6 @@ int bgp_io_workload_load(const char* params, int rank)
...
@@ -82,7 +82,6 @@ int bgp_io_workload_load(const char* params, int rank)
wrkld_per_rank
->
codes_pstate
=
CodesIOKernel_pstate_new
();
wrkld_per_rank
->
codes_pstate
=
CodesIOKernel_pstate_new
();
wrkld_per_rank
->
rank
=
rank
;
wrkld_per_rank
->
rank
=
rank
;
t
=
codes_kernel_helper_bootstrap
(
b_param
->
io_kernel_path
,
t
=
codes_kernel_helper_bootstrap
(
b_param
->
io_kernel_path
,
b_param
->
io_kernel_def_path
,
b_param
->
io_kernel_meta_path
,
b_param
->
io_kernel_meta_path
,
rank
,
rank
,
num_ranks
,
num_ranks
,
...
...
tests/workload/codes-workload-mpi-replay.c
View file @
64e2c33e
...
@@ -161,7 +161,6 @@ int load_workload(char *conf_path, int rank)
...
@@ -161,7 +161,6 @@ int load_workload(char *conf_path, int rank)
NULL
,
b_params
.
io_kernel_meta_path
,
MAX_NAME_LENGTH_WKLD
);
NULL
,
b_params
.
io_kernel_meta_path
,
MAX_NAME_LENGTH_WKLD
);
configuration_get_value
(
&
config
,
"PARAMS"
,
"rank_count"
,
NULL
,
rank_count
,
10
);
configuration_get_value
(
&
config
,
"PARAMS"
,
"rank_count"
,
NULL
,
rank_count
,
10
);
strcpy
(
b_params
.
io_kernel_path
,
""
);
strcpy
(
b_params
.
io_kernel_path
,
""
);
strcpy
(
b_params
.
io_kernel_def_path
,
""
);
b_params
.
num_cns
=
atoi
(
rank_count
);
b_params
.
num_cns
=
atoi
(
rank_count
);
b_params
.
use_relpath
=
1
;
b_params
.
use_relpath
=
1
;
...
...
tests/workload/codes-workload-test.c
View file @
64e2c33e
...
@@ -41,7 +41,6 @@ void workload_set_params()
...
@@ -41,7 +41,6 @@ void workload_set_params()
if
(
strcmp
(
workload_type
,
"bgp_io_workload"
)
==
0
)
if
(
strcmp
(
workload_type
,
"bgp_io_workload"
)
==
0
)
{
{
strcpy
(
bgparams
.
io_kernel_path
,
""
);
strcpy
(
bgparams
.
io_kernel_path
,
""
);
strcpy
(
bgparams
.
io_kernel_def_path
,
""
);
bgparams
.
num_cns
=
NUM_CLIENTS
;
bgparams
.
num_cns
=
NUM_CLIENTS
;
configuration_get_value
(
&
config
,
"PARAMS"
,
"io_kernel_meta_path"
,
NULL
,
io_kernel_meta_path
,
MAX_NAME_LENGTH_WKLD
);
configuration_get_value
(
&
config
,
"PARAMS"
,
"io_kernel_meta_path"
,
NULL
,
io_kernel_meta_path
,
MAX_NAME_LENGTH_WKLD
);
...
...
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