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
a175f14c
Commit
a175f14c
authored
Feb 09, 2022
by
Shucai Xiao
Browse files
Merge branch 'develop' of github.com:ROCmSoftwarePlatform/AMDMIGraphX into print_matmul_perf_flops
parents
5496a55d
c7419a9c
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
test/serialize_program.cpp
test/serialize_program.cpp
+1
-1
test/verify/run_verify.cpp
test/verify/run_verify.cpp
+1
-1
test/verify/test_sub_int.cpp
test/verify/test_sub_int.cpp
+21
-0
No files found.
test/serialize_program.cpp
View file @
a175f14c
...
...
@@ -48,7 +48,7 @@ TEST_CASE(as_json)
TEST_CASE
(
as_file
)
{
std
::
string
filename
=
"migraphx_program.
dat
"
;
std
::
string
filename
=
"migraphx_program.
mxr
"
;
migraphx
::
program
p1
=
create_program
();
migraphx
::
save
(
p1
,
filename
);
migraphx
::
program
p2
=
migraphx
::
load
(
filename
);
...
...
test/verify/run_verify.cpp
View file @
a175f14c
...
...
@@ -128,7 +128,7 @@ void run_verify::verify(const std::string& name, const migraphx::program& p) con
std
::
future
<
std
::
pair
<
migraphx
::
program
,
std
::
vector
<
migraphx
::
argument
>>>
;
auto_print
::
set_terminate_handler
(
name
);
if
(
migraphx
::
enabled
(
MIGRAPHX_DUMP_TEST
{}))
migraphx
::
save
(
p
,
name
+
".mx"
);
migraphx
::
save
(
p
,
name
+
".mx
r
"
);
std
::
vector
<
std
::
pair
<
std
::
string
,
result_future
>>
results
;
std
::
vector
<
std
::
string
>
target_names
;
for
(
const
auto
&
tname
:
migraphx
::
get_targets
())
...
...
test/verify/test_sub_int.cpp
0 → 100644
View file @
a175f14c
#include "verify_program.hpp"
#include <migraphx/program.hpp>
#include <migraphx/generate.hpp>
#include <migraphx/make_op.hpp>
struct
test_sub_int
:
verify_program
<
test_sub_int
>
{
migraphx
::
program
create_program
()
const
{
migraphx
::
program
p
;
auto
*
mm
=
p
.
get_main_module
();
migraphx
::
shape
s
{
migraphx
::
shape
::
float_type
,
{
3
}};
auto
x
=
mm
->
add_parameter
(
"x"
,
{
migraphx
::
shape
::
int16_type
,
{
4
,
5
}});
auto
y
=
mm
->
add_parameter
(
"y"
,
{
migraphx
::
shape
::
int16_type
,
{
2
,
3
,
4
,
5
}});
auto
xb
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"multibroadcast"
,
{{
"out_lens"
,
{
2
,
3
,
4
,
5
}}}),
x
);
auto
diff
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"sub"
),
y
,
xb
);
mm
->
add_return
({
diff
});
return
p
;
}
};
Prev
1
2
Next
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