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
3bb0ab74
Commit
3bb0ab74
authored
Feb 10, 2019
by
Paul
Browse files
Reenable the live_on_entry check
parent
a5c1c7f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/opt/memory_coloring_impl.cpp
src/opt/memory_coloring_impl.cpp
+2
-3
test/memory_coloring_test.cpp
test/memory_coloring_test.cpp
+1
-1
No files found.
src/opt/memory_coloring_impl.cpp
View file @
3bb0ab74
...
...
@@ -233,9 +233,8 @@ void memory_coloring_impl::verify()
if
(
segment
.
begin
==
invalid_offset
)
{
// TODO: This check breaks on the tests
// if(!interval.is_live_on_entry)
// MIGRAPHX_THROW("interval is not live on entry");
if
(
!
interval
.
is_live_on_entry
)
MIGRAPHX_THROW
(
"interval is not live on entry"
);
continue
;
}
...
...
test/memory_coloring_test.cpp
View file @
3bb0ab74
...
...
@@ -594,7 +594,7 @@ TEST_CASE(test38)
auto
p83
=
p
.
add_instruction
(
pass_op
{},
p78
,
p77
);
p
.
add_instruction
(
pass_op
{},
output
,
p83
,
p63
);
p
.
compile
(
memory_coloring_target
{});
CHECK
(
p
.
get_parameter_shape
(
"scratch"
).
bytes
()
==
7225344
);
CHECK
(
p
.
get_parameter_shape
(
"scratch"
).
bytes
()
==
7225344
);
// Optimal solution is 6422528
CHECK
(
no_allocate
(
p
));
}
...
...
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