Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
d2afd9d4
Commit
d2afd9d4
authored
Feb 13, 2019
by
mei-ye
Browse files
remove event methods from context for unit tests. Also a format change to suit the odd taste
parent
8e015bd0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
14 deletions
+2
-14
src/opt/dom_info.cpp
src/opt/dom_info.cpp
+2
-6
test/const_eval_test.cpp
test/const_eval_test.cpp
+0
-4
test/eval_test.cpp
test/eval_test.cpp
+0
-4
No files found.
src/opt/dom_info.cpp
View file @
d2afd9d4
...
@@ -156,9 +156,7 @@ bool dom_info::is_split_point(instruction_ref ins)
...
@@ -156,9 +156,7 @@ bool dom_info::is_split_point(instruction_ref ins)
if
(
arg_stream
>=
0
)
if
(
arg_stream
>=
0
)
stream_set
.
insert
(
arg_stream
);
stream_set
.
insert
(
arg_stream
);
}
}
if
(
stream_set
.
size
()
>
1
)
return
(
stream_set
.
size
()
>
1
)
?
true
:
false
;
return
true
;
return
false
;
}
}
// Identify merge points. A merge point has more than one
// Identify merge points. A merge point has more than one
...
@@ -172,9 +170,7 @@ bool dom_info::is_merge_point(instruction_ref ins)
...
@@ -172,9 +170,7 @@ bool dom_info::is_merge_point(instruction_ref ins)
if
(
arg_stream
>=
0
)
if
(
arg_stream
>=
0
)
stream_set
.
insert
(
arg_stream
);
stream_set
.
insert
(
arg_stream
);
}
}
if
(
stream_set
.
size
()
>
1
)
return
(
stream_set
.
size
()
>
1
)
?
true
:
false
;
return
true
;
return
false
;
}
}
// Propagate split points through the graph and identify concurrent instructions.
// Propagate split points through the graph and identify concurrent instructions.
...
...
test/const_eval_test.cpp
View file @
d2afd9d4
...
@@ -47,10 +47,6 @@ struct non_computable_cf
...
@@ -47,10 +47,6 @@ struct non_computable_cf
struct
test_context
struct
test_context
{
{
void
finish
()
const
{}
void
finish
()
const
{}
void
set_stream
(
int
)
{}
void
create_events
(
int
)
{}
void
record_event
(
int
)
{}
void
wait_event
(
int
)
{}
};
};
TEST_CASE
(
literal_test
)
TEST_CASE
(
literal_test
)
...
...
test/eval_test.cpp
View file @
d2afd9d4
...
@@ -11,10 +11,6 @@ struct id_target
...
@@ -11,10 +11,6 @@ struct id_target
struct
context
struct
context
{
{
void
finish
()
const
{}
void
finish
()
const
{}
void
set_stream
(
int
)
{}
void
create_events
(
int
)
{}
void
record_event
(
int
)
{}
void
wait_event
(
int
)
{}
};
};
migraphx
::
context
ctx
=
context
{};
migraphx
::
context
ctx
=
context
{};
std
::
string
name
()
const
{
return
"id"
;
}
std
::
string
name
()
const
{
return
"id"
;
}
...
...
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