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
1535e7b2
Commit
1535e7b2
authored
Apr 07, 2022
by
umangyadav
Browse files
fix tidy
parent
5ad42259
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
src/driver/verify.cpp
src/driver/verify.cpp
+3
-3
src/driver/verify.hpp
src/driver/verify.hpp
+2
-2
src/include/migraphx/program.hpp
src/include/migraphx/program.hpp
+1
-1
src/program.cpp
src/program.cpp
+1
-1
No files found.
src/driver/verify.cpp
View file @
1535e7b2
...
@@ -67,7 +67,7 @@ void verify_program(const std::string& name,
...
@@ -67,7 +67,7 @@ void verify_program(const std::string& name,
void
verify_instructions
(
const
program
&
prog
,
void
verify_instructions
(
const
program
&
prog
,
const
target
&
t
,
const
target
&
t
,
compile_options
options
,
const
compile_options
&
options
,
precision
quantize
,
precision
quantize
,
double
tolerance
)
double
tolerance
)
{
{
...
@@ -114,7 +114,7 @@ void verify_instructions(const program& prog,
...
@@ -114,7 +114,7 @@ void verify_instructions(const program& prog,
void
verify_reduced
(
program
p
,
void
verify_reduced
(
program
p
,
int
n
,
int
n
,
const
target
&
t
,
const
target
&
t
,
compile_options
options
,
const
compile_options
&
options
,
precision
quantize
,
precision
quantize
,
const
parameter_map
&
inputs
,
const
parameter_map
&
inputs
,
double
tolerance
)
double
tolerance
)
...
@@ -129,7 +129,7 @@ void verify_reduced(program p,
...
@@ -129,7 +129,7 @@ void verify_reduced(program p,
void
verify_reduced_program
(
const
program
&
p
,
void
verify_reduced_program
(
const
program
&
p
,
const
target
&
t
,
const
target
&
t
,
compile_options
options
,
const
compile_options
&
options
,
precision
quantize
,
precision
quantize
,
const
parameter_map
&
inputs
,
const
parameter_map
&
inputs
,
double
tolerance
)
double
tolerance
)
...
...
src/driver/verify.hpp
View file @
1535e7b2
...
@@ -17,12 +17,12 @@ void verify_program(const std::string& name,
...
@@ -17,12 +17,12 @@ void verify_program(const std::string& name,
double
tolerance
=
100
);
double
tolerance
=
100
);
void
verify_instructions
(
const
program
&
prog
,
void
verify_instructions
(
const
program
&
prog
,
const
target
&
t
,
const
target
&
t
,
compile_options
options
=
compile_options
{},
const
compile_options
&
options
=
compile_options
{},
precision
quantize
=
precision
::
fp32
,
precision
quantize
=
precision
::
fp32
,
double
tolerance
=
80
);
double
tolerance
=
80
);
void
verify_reduced_program
(
const
program
&
p
,
void
verify_reduced_program
(
const
program
&
p
,
const
target
&
t
,
const
target
&
t
,
compile_options
options
=
compile_options
{},
const
compile_options
&
options
=
compile_options
{},
precision
quantize
=
precision
::
fp32
,
precision
quantize
=
precision
::
fp32
,
const
parameter_map
&
inputs
=
{},
const
parameter_map
&
inputs
=
{},
double
tolerance
=
80
);
double
tolerance
=
80
);
...
...
src/include/migraphx/program.hpp
View file @
1535e7b2
...
@@ -63,7 +63,7 @@ struct program
...
@@ -63,7 +63,7 @@ struct program
void
compile
(
const
target
&
t
,
void
compile
(
const
target
&
t
,
compile_options
options
=
compile_options
{},
compile_options
options
=
compile_options
{},
std
::
string
ir_dump_path
=
"passes"
);
const
std
::
string
&
ir_dump_path
=
"passes"
);
bool
is_compiled
()
const
;
bool
is_compiled
()
const
;
...
...
src/program.cpp
View file @
1535e7b2
...
@@ -138,7 +138,7 @@ instruction_ref program::validate() const
...
@@ -138,7 +138,7 @@ instruction_ref program::validate() const
bool
program
::
is_compiled
()
const
{
return
not
this
->
impl
->
target_name
.
empty
();
}
bool
program
::
is_compiled
()
const
{
return
not
this
->
impl
->
target_name
.
empty
();
}
void
program
::
compile
(
const
target
&
t
,
compile_options
options
,
std
::
string
ir_dump_path
)
void
program
::
compile
(
const
target
&
t
,
compile_options
options
,
const
std
::
string
&
ir_dump_path
)
{
{
assert
(
not
this
->
is_compiled
());
assert
(
not
this
->
is_compiled
());
this
->
impl
->
target_name
=
t
.
name
();
this
->
impl
->
target_name
=
t
.
name
();
...
...
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