Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xin Wang
codes-dev
Commits
e908dd07
Commit
e908dd07
authored
Mar 26, 2015
by
Jonathan Jenkins
Browse files
casts for c++ broke compiling in c mode
parent
b5332aff
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/util/lp-io.c
View file @
e908dd07
...
...
@@ -48,7 +48,7 @@ int lp_io_write(tw_lpid gid, char* identifier, int size, void* buffer)
return
(
-
1
);
}
buf
=
(
io_buffer
*
)
malloc
(
sizeof
(
*
buf
));
buf
=
(
struct
io_buffer
*
)
malloc
(
sizeof
(
*
buf
));
if
(
!
buf
)
return
(
-
1
);
...
...
src/workload/codes-workload.c
View file @
e908dd07
...
...
@@ -96,7 +96,7 @@ int codes_workload_load(const char* type, const char* params, int rank)
}
if
(
tmp
==
NULL
)
{
tmp
=
(
rank_queue
*
)
malloc
(
sizeof
(
*
tmp
));
tmp
=
(
struct
rank_queue
*
)
malloc
(
sizeof
(
*
tmp
));
assert
(
tmp
);
tmp
->
rank
=
rank
;
tmp
->
lifo
=
NULL
;
...
...
src/workload/methods/codes-iolang-wrkld.c
View file @
e908dd07
...
...
@@ -58,7 +58,7 @@ struct codes_iolang_wrkld_state_per_rank
int
iolang_io_workload_load
(
const
char
*
params
,
int
rank
)
{
int
t
=
-
1
;
iolang_params
*
i_param
=
(
iolang_params
*
)
params
;
iolang_params
*
i_param
=
(
struct
iolang_params
*
)
params
;
/* we have to get the number of compute nodes/ranks from the bg/p model parameters
* because the number of ranks are specified in the iolang config file not the
...
...
@@ -75,7 +75,7 @@ int iolang_io_workload_load(const char* params, int rank)
return
-
1
;
}
}
wrkld_per_rank
=
(
codes_
bgp
_wrkld_state_per_rank
*
)
malloc
(
sizeof
(
*
wrkld_per_rank
));
wrkld_per_rank
=
(
codes_
iolang
_wrkld_state_per_rank
*
)
malloc
(
sizeof
(
*
wrkld_per_rank
));
if
(
!
wrkld_per_rank
)
return
-
1
;
...
...
@@ -141,7 +141,7 @@ void iolang_io_workload_get_next(int rank, struct codes_workload_op *op)
next_wrkld
=
qhash_entry
(
hash_link
,
struct
codes_iolang_wrkld_state_per_rank
,
hash_link
);
int
type
=
codes_kernel_helper_parse_input
(
next_wrkld
->
codes_pstate
,
&
(
next_wrkld
->
codes_context
),
&
(
next_wrkld
->
next_event
));
op
->
op_type
=
(
codes_workload_op_type
)
convertTypes
(
type
);
op
->
op_type
=
(
enum
codes_workload_op_type
)
convertTypes
(
type
);
if
(
op
->
op_type
==
CODES_WK_IGNORE
)
return
;
switch
(
op
->
op_type
)
...
...
src/workload/methods/test-workload-method.c
View file @
e908dd07
...
...
@@ -45,7 +45,7 @@ static int test_workload_load(const char* params, int rank)
*/
struct
wkload_stream_state
*
newv
;
newv
=
(
wkload_stream_state
*
)
malloc
(
sizeof
(
*
newv
));
newv
=
(
struct
wkload_stream_state
*
)
malloc
(
sizeof
(
*
newv
));
if
(
!
newv
)
return
(
-
1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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