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
cd68d024
Commit
cd68d024
authored
Jan 04, 2023
by
Paul
Browse files
Format
parent
28a2ebd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
test/verify/test_math.cpp
test/verify/test_math.cpp
+2
-3
test/verify/verify_program.hpp
test/verify/verify_program.hpp
+1
-1
No files found.
test/verify/test_math.cpp
View file @
cd68d024
...
@@ -44,7 +44,7 @@ struct test_unary_math : verify_programs<test_unary_math>
...
@@ -44,7 +44,7 @@ struct test_unary_math : verify_programs<test_unary_math>
}
}
std
::
string
section
()
const
{
return
"test_math"
;
};
std
::
string
section
()
const
{
return
"test_math"
;
};
programs
get_programs
()
const
programs
get_programs
()
const
{
{
programs
ps
;
programs
ps
;
...
@@ -78,7 +78,7 @@ struct test_unary_math : verify_programs<test_unary_math>
...
@@ -78,7 +78,7 @@ struct test_unary_math : verify_programs<test_unary_math>
{
{
if
(
migraphx
::
contains
({
migraphx
::
shape
::
bool_type
,
migraphx
::
shape
::
tuple_type
},
t
))
if
(
migraphx
::
contains
({
migraphx
::
shape
::
bool_type
,
migraphx
::
shape
::
tuple_type
},
t
))
continue
;
continue
;
for
(
const
auto
&
name
:
names
)
for
(
const
auto
&
name
:
names
)
{
{
std
::
string
test_name
=
"test_math_"
+
name
+
"_"
+
migraphx
::
shape
::
cpp_type
(
t
);
std
::
string
test_name
=
"test_math_"
+
name
+
"_"
+
migraphx
::
shape
::
cpp_type
(
t
);
ps
.
push_back
(
std
::
make_pair
(
test_name
,
generate_program
(
name
,
t
)));
ps
.
push_back
(
std
::
make_pair
(
test_name
,
generate_program
(
name
,
t
)));
...
@@ -86,5 +86,4 @@ struct test_unary_math : verify_programs<test_unary_math>
...
@@ -86,5 +86,4 @@ struct test_unary_math : verify_programs<test_unary_math>
}
}
return
ps
;
return
ps
;
}
}
};
};
test/verify/verify_program.hpp
View file @
cd68d024
...
@@ -58,7 +58,7 @@ struct register_verify_programs_action
...
@@ -58,7 +58,7 @@ struct register_verify_programs_action
static
void
apply
()
static
void
apply
()
{
{
T
x
;
T
x
;
for
(
auto
&&
p
:
x
.
get_programs
())
for
(
auto
&&
p
:
x
.
get_programs
())
{
{
program_info
pi
;
program_info
pi
;
pi
.
name
=
p
.
first
;
pi
.
name
=
p
.
first
;
...
...
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