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
SWIFT
SWIFTsim
Commits
2a090ea5
Commit
2a090ea5
authored
Dec 17, 2018
by
Matthieu Schaller
Browse files
Fixes to enum->int conversion for the Intel compiler.
parent
9d545a60
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/scheduler.c
View file @
2a090ea5
...
...
@@ -365,7 +365,7 @@ void scheduler_write_dependencies(struct scheduler *s, int verbose) {
const
struct
task
*
ta
=
&
s
->
tasks
[
i
];
/* Current index */
int
ind
=
ta
->
type
*
task_subtype_count
+
ta
->
subtype
;
const
int
ind
=
ta
->
type
*
task_subtype_count
+
ta
->
subtype
;
struct
task_dependency
*
cur
=
&
task_dep
[
ind
];
...
...
@@ -389,7 +389,7 @@ void scheduler_write_dependencies(struct scheduler *s, int verbose) {
cur
->
implicit_out
[
k
]
=
tb
->
implicit
;
/* statistics */
int
count
=
scheduler_get_number_relation
(
s
,
ta
,
tb
);
const
int
count
=
scheduler_get_number_relation
(
s
,
ta
,
tb
);
cur
->
number_link
[
k
]
=
count
;
cur
->
number_rank
[
k
]
=
1
;
...
...
@@ -468,16 +468,16 @@ void scheduler_write_dependencies(struct scheduler *s, int verbose) {
}
/* Define a few variables */
int
ta_type
=
task_dep
[
i
].
type_in
;
int
ta_subtype
=
task_dep
[
i
].
subtype_in
;
int
ta_implicit
=
task_dep
[
i
].
implicit_in
;
const
int
ta_type
=
task_dep
[
i
].
type_in
;
const
int
ta_subtype
=
task_dep
[
i
].
subtype_in
;
const
int
ta_implicit
=
task_dep
[
i
].
implicit_in
;
int
tb_type
=
task_dep
[
i
].
type_out
[
j
];
int
tb_subtype
=
task_dep
[
i
].
subtype_out
[
j
];
int
tb_implicit
=
task_dep
[
i
].
implicit_out
[
j
];
const
int
tb_type
=
task_dep
[
i
].
type_out
[
j
];
const
int
tb_subtype
=
task_dep
[
i
].
subtype_out
[
j
];
const
int
tb_implicit
=
task_dep
[
i
].
implicit_out
[
j
];
int
count
=
task_dep
[
i
].
number_link
[
j
];
int
number_rank
=
task_dep
[
i
].
number_rank
[
j
];
const
int
count
=
task_dep
[
i
].
number_link
[
j
];
const
int
number_rank
=
task_dep
[
i
].
number_rank
[
j
];
/* text to write */
char
ta_name
[
200
];
...
...
src/task.c
View file @
2a090ea5
...
...
@@ -671,8 +671,7 @@ void task_get_group_name(int type, int subtype, char *cluster) {
* @param subtype The #task type.
* @param name (return) The formatted string
*/
void
task_get_full_name
(
enum
task_types
type
,
enum
task_subtypes
subtype
,
char
*
name
)
{
void
task_get_full_name
(
int
type
,
int
subtype
,
char
*
name
)
{
#ifdef SWIFT_DEBUG_CHECKS
/* Check input */
...
...
src/task.h
View file @
2a090ea5
...
...
@@ -203,8 +203,7 @@ float task_overlap(const struct task *ta, const struct task *tb);
int
task_lock
(
struct
task
*
t
);
void
task_do_rewait
(
struct
task
*
t
);
void
task_print
(
const
struct
task
*
t
);
void
task_get_full_name
(
enum
task_types
type
,
enum
task_subtypes
subtype
,
char
*
name
);
void
task_get_full_name
(
int
type
,
int
subtype
,
char
*
name
);
void
task_get_group_name
(
int
type
,
int
subtype
,
char
*
cluster
);
#ifdef WITH_MPI
...
...
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