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
3855b681
Commit
3855b681
authored
Apr 23, 2019
by
Shucai Xiao
Browse files
refine the adjust_allocation pass.
parent
6c1a08f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test/gpu/adjust_allocation.cpp
test/gpu/adjust_allocation.cpp
+3
-3
No files found.
test/gpu/adjust_allocation.cpp
View file @
3855b681
...
@@ -47,7 +47,7 @@ TEST_CASE(tanh_shape)
...
@@ -47,7 +47,7 @@ TEST_CASE(tanh_shape)
EXPECT
(
p1
==
p2
);
EXPECT
(
p1
==
p2
);
p1
.
compile
(
lowering_target
{});
p1
.
compile
(
lowering_target
{});
p2
.
compile
(
lowering_target
{}
);
p2
.
compile
(
lowering_target
()
);
EXPECT
(
p1
==
p2
);
EXPECT
(
p1
==
p2
);
...
@@ -55,13 +55,13 @@ TEST_CASE(tanh_shape)
...
@@ -55,13 +55,13 @@ TEST_CASE(tanh_shape)
{
{
if
(
ins
->
name
()
==
"hip::allocate"
)
if
(
ins
->
name
()
==
"hip::allocate"
)
{
{
migraphx
::
shape
wrong_s
{
migraphx
::
shape
::
float_type
,
{
2
,
2
}};
migraphx
::
shape
wrong_s
{
migraphx
::
shape
::
float_type
,
{
3
,
2
},
{
1
,
3
}};
ins
->
replace
(
wrong_s
);
ins
->
replace
(
wrong_s
);
}
}
}
}
EXPECT
(
p1
!=
p2
);
EXPECT
(
p1
!=
p2
);
migraphx
::
run_passes
(
p
1
,
migraphx
::
run_passes
(
p
2
,
{
migraphx
::
gpu
::
adjust_allocation
{},
migraphx
::
dead_code_elimination
{}});
{
migraphx
::
gpu
::
adjust_allocation
{},
migraphx
::
dead_code_elimination
{}});
EXPECT
(
p1
==
p2
);
EXPECT
(
p1
==
p2
);
}
}
...
...
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