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
f079b678
"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "faef89ae9e49cebc35608c5d8a3078f8a10c1447"
Commit
f079b678
authored
Sep 07, 2023
by
umang yadav
Browse files
remove comments
parent
56c4736a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
test/multi_target/multitarget_test.cpp
test/multi_target/multitarget_test.cpp
+0
-2
No files found.
test/multi_target/multitarget_test.cpp
View file @
f079b678
...
@@ -245,14 +245,12 @@ TEST_CASE(multitarget_compile_if_then_else)
...
@@ -245,14 +245,12 @@ TEST_CASE(multitarget_compile_if_then_else)
auto
*
then_mod
=
p
.
create_module
(
"if_gpu_mod"
);
auto
*
then_mod
=
p
.
create_module
(
"if_gpu_mod"
);
std
::
vector
<
float
>
data1
(
ds
.
elements
(),
1
);
std
::
vector
<
float
>
data1
(
ds
.
elements
(),
1
);
auto
l1
=
then_mod
->
add_literal
(
migraphx
::
literal
(
ds
,
data1
));
auto
l1
=
then_mod
->
add_literal
(
migraphx
::
literal
(
ds
,
data1
));
// auto gpu_x = then_mod->add_parameter("gpu_x", ds);
auto
a1
=
then_mod
->
add_instruction
(
migraphx
::
make_op
(
"add"
),
x
,
l1
);
auto
a1
=
then_mod
->
add_instruction
(
migraphx
::
make_op
(
"add"
),
x
,
l1
);
then_mod
->
add_return
({
a1
});
then_mod
->
add_return
({
a1
});
auto
*
else_mod
=
p
.
create_module
(
"else_cpu_mod"
);
auto
*
else_mod
=
p
.
create_module
(
"else_cpu_mod"
);
std
::
vector
<
float
>
data2
(
ds
.
elements
(),
2
);
std
::
vector
<
float
>
data2
(
ds
.
elements
(),
2
);
auto
l2
=
else_mod
->
add_literal
(
migraphx
::
literal
(
ds
,
data2
));
auto
l2
=
else_mod
->
add_literal
(
migraphx
::
literal
(
ds
,
data2
));
// auto cpu_y = else_mod->add_parameter("cpu_y", ds);
auto
a2
=
else_mod
->
add_instruction
(
migraphx
::
make_op
(
"mul"
),
y
,
l2
);
auto
a2
=
else_mod
->
add_instruction
(
migraphx
::
make_op
(
"mul"
),
y
,
l2
);
else_mod
->
add_return
({
a2
});
else_mod
->
add_return
({
a2
});
...
...
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