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
d9528ead
"test/gemm/gemm_dl_fp32.cpp" did not exist on "d91f9f119c167ac5f3974e78f09bdd007f5dfd4a"
Commit
d9528ead
authored
Oct 13, 2023
by
Umang Yadav
Browse files
add comments
parent
9b3a9a9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
test/generate_root_modules.cpp
test/generate_root_modules.cpp
+34
-0
No files found.
test/generate_root_modules.cpp
View file @
d9528ead
...
@@ -46,6 +46,15 @@
...
@@ -46,6 +46,15 @@
TEST_CASE
(
fork_case
)
TEST_CASE
(
fork_case
)
{
{
/*
Add (tid = 0)
|
----------------
| |
Mul Identity
(tid = 0) (tid = 1)
*/
auto
s
=
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
8
}};
auto
s
=
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
8
}};
migraphx
::
target_assignments
tass
;
migraphx
::
target_assignments
tass
;
migraphx
::
program
p1
;
migraphx
::
program
p1
;
...
@@ -62,12 +71,22 @@ TEST_CASE(fork_case)
...
@@ -62,12 +71,22 @@ TEST_CASE(fork_case)
tass
.
insert
(
tass
.
begin
(),
std
::
make_pair
(
mul_ins
,
0
));
tass
.
insert
(
tass
.
begin
(),
std
::
make_pair
(
mul_ins
,
0
));
tass
.
insert
(
tass
.
begin
(),
std
::
make_pair
(
identity_ins
,
1
));
tass
.
insert
(
tass
.
begin
(),
std
::
make_pair
(
identity_ins
,
1
));
}
}
migraphx
::
generate_root_modules
(
p1
,
tass
);
migraphx
::
generate_root_modules
(
p1
,
tass
);
p1
.
debug_print
();
p1
.
debug_print
();
};
};
TEST_CASE
(
merge_case
)
TEST_CASE
(
merge_case
)
{
{
/*
Add Identity
(tid = 0) (tid = 1)
| |
-----------------
|
Mul (tid = 0)
*/
migraphx
::
target_assignments
tass
;
migraphx
::
target_assignments
tass
;
auto
s
=
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
8
}};
auto
s
=
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
8
}};
migraphx
::
program
p1
;
migraphx
::
program
p1
;
...
@@ -90,6 +109,21 @@ TEST_CASE(merge_case)
...
@@ -90,6 +109,21 @@ TEST_CASE(merge_case)
TEST_CASE
(
fork_and_merge_case
)
TEST_CASE
(
fork_and_merge_case
)
{
{
/*
Add (tid = 0)
|
----------------
| |
Mul Identity
(tid = 0) (tid = 1)
| |
----------------
|
Sub
(tid = 0)
*/
auto
s
=
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
8
}};
auto
s
=
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
8
}};
migraphx
::
target_assignments
tass
;
migraphx
::
target_assignments
tass
;
migraphx
::
program
p1
;
migraphx
::
program
p1
;
...
...
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