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
26bce1f8
Commit
26bce1f8
authored
Nov 06, 2013
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates to codes-base: changing data structure from app_cf_info to codes_workload_info
parent
a95782bd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
12 deletions
+23
-12
codes/CodesKernelHelpers.h
codes/CodesKernelHelpers.h
+2
-1
codes/codes-workload.h
codes/codes-workload.h
+10
-0
src/iokernellang/CodesKernelHelpers.c
src/iokernellang/CodesKernelHelpers.c
+10
-10
src/workload/codes-bgp-io-wrkld.c
src/workload/codes-bgp-io-wrkld.c
+1
-1
No files found.
codes/CodesKernelHelpers.h
View file @
26bce1f8
...
...
@@ -20,6 +20,7 @@
#include "codes/CodesIOKernelTypes.h"
#include "codes/CodesIOKernelParser.h"
#include "codes/codeslexer.h"
#include "codes/codes-workload.h"
#define CL_INST_MAX_ARGS 10
...
...
@@ -61,7 +62,7 @@ int codes_kernel_helper_parse_input(CodesIOKernel_pstate * ps,
int
codes_kernel_helper_bootstrap
(
char
*
io_kernel_path
,
char
*
def_io_kernel_path
,
char
*
io_kernel_meta_path
,
int
rank
,
CodesIOKernelContext
*
c
,
CodesIOKernel_pstate
**
ps
,
app_cf_info_t
*
task_info
,
CodesIOKernel_pstate
**
ps
,
codes_workload_info
*
task_info
,
codeslang_inst
*
next_event
);
char
*
code_kernel_helpers_cleventToStr
(
int
inst
);
...
...
codes/codes-workload.h
View file @
26bce1f8
...
...
@@ -16,6 +16,7 @@
#define MAX_NAME_LENGTH 512
typedef
struct
bgp_params
bgp_params
;
typedef
struct
codes_workload_info
codes_workload_info
;
struct
bgp_params
{
...
...
@@ -26,6 +27,15 @@ struct bgp_params
char
io_kernel_def_path
[
MAX_NAME_LENGTH
];
};
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*/
};
/* supported I/O operations */
enum
codes_workload_op_type
{
...
...
src/iokernellang/CodesKernelHelpers.c
View file @
26bce1f8
...
...
@@ -104,7 +104,7 @@ static int convertKLInstToEvent(int inst)
}
static
void
codes_kernel_helper_parse_cf
(
char
*
io_kernel_path
,
char
*
io_kernel_def_path
,
char
*
io_kernel_meta_path
,
int
task_rank
,
app_cf_info_t
*
task_info
)
io_kernel_def_path
,
char
*
io_kernel_meta_path
,
int
task_rank
,
codes_workload_info
*
task_info
)
{
int
foundit
=
0
;
char
line
[
CK_LINE_LIMIT
];
...
...
@@ -160,10 +160,10 @@ static void codes_kernel_helper_parse_cf(char * io_kernel_path, char *
* file */
if
(
task_rank
>=
min
&&
task_rank
<=
max
)
{
task_info
->
gid
=
gid
;
task_info
->
min
=
min
;
task_info
->
max
=
max
;
task_info
->
lrank
=
task_rank
-
min
;
task_info
->
g
roup_
id
=
gid
;
task_info
->
min
_rank
=
min
;
task_info
->
max
_rank
=
max
;
task_info
->
l
ocal_
rank
=
task_rank
-
min
;
task_info
->
num_lrank
=
max
-
min
+
1
;
foundit
=
1
;
...
...
@@ -183,10 +183,10 @@ static void codes_kernel_helper_parse_cf(char * io_kernel_path, char *
/* default gid and task attrs */
/* TODO can we detect the gaps instead of -1 */
task_info
->
gid
=
CL_DEFAULT_GID
;
task_info
->
min
=
-
1
;
task_info
->
max
=
-
1
;
task_info
->
lrank
=
-
1
;
task_info
->
g
roup_
id
=
CL_DEFAULT_GID
;
task_info
->
min
_rank
=
-
1
;
task_info
->
max
_rank
=
-
1
;
task_info
->
l
ocal_
rank
=
-
1
;
task_info
->
num_lrank
=
-
1
;
}
...
...
@@ -285,7 +285,7 @@ int codes_kernel_helper_parse_input(CodesIOKernel_pstate * ps, CodesIOKernelCont
int
codes_kernel_helper_bootstrap
(
char
*
io_kernel_path
,
char
*
io_kernel_def_path
,
char
*
io_kernel_meta_path
,
int
rank
,
CodesIOKernelContext
*
c
,
CodesIOKernel_pstate
**
ps
,
app_cf_info_t
*
task_info
,
CodesIOKernel_pstate
**
ps
,
codes_workload_info
*
task_info
,
codeslang_inst
*
next_event
)
{
int
t
=
CL_NOOP
;
...
...
src/workload/codes-bgp-io-wrkld.c
View file @
26bce1f8
...
...
@@ -53,7 +53,7 @@ struct codes_bgp_wrkld_state_per_cn
CodesIOKernelContext
codes_context
;
CodesIOKernel_pstate
*
codes_pstate
;
codeslang_inst
next_event
;
app_cf_info_t
task_info
;
codes_workload_info
task_info
;
};
/* returns information that is used further by the BG/P model for running multiple jobs */
...
...
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