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
80932f5f
"...composable_kernel_rocm.git" did not exist on "a5fd974724f4f221c000fe819dd81cbf87e0c77b"
Commit
80932f5f
authored
Jun 06, 2019
by
Paul
Browse files
Formatting
parent
5e1f59eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/driver/argument_parser.hpp
src/driver/argument_parser.hpp
+8
-8
No files found.
src/driver/argument_parser.hpp
View file @
80932f5f
...
@@ -62,11 +62,11 @@ struct argument_parser
...
@@ -62,11 +62,11 @@ struct argument_parser
{
{
std
::
vector
<
std
::
string
>
flags
;
std
::
vector
<
std
::
string
>
flags
;
std
::
function
<
bool
(
argument_parser
&
,
const
std
::
vector
<
std
::
string
>&
)
>
action
{};
std
::
function
<
bool
(
argument_parser
&
,
const
std
::
vector
<
std
::
string
>&
)
>
action
{};
std
::
string
type
=
""
;
std
::
string
type
=
""
;
std
::
string
help
=
""
;
std
::
string
help
=
""
;
std
::
string
metavar
=
""
;
std
::
string
metavar
=
""
;
std
::
string
default_value
=
""
;
std
::
string
default_value
=
""
;
unsigned
nargs
=
1
;
unsigned
nargs
=
1
;
};
};
template
<
class
T
,
class
...
Fs
>
template
<
class
T
,
class
...
Fs
>
...
@@ -79,8 +79,8 @@ struct argument_parser
...
@@ -79,8 +79,8 @@ struct argument_parser
return
false
;
return
false
;
}});
}});
argument
&
arg
=
arguments
.
back
();
argument
&
arg
=
arguments
.
back
();
arg
.
type
=
migraphx
::
get_type_name
<
T
>
();
arg
.
type
=
migraphx
::
get_type_name
<
T
>
();
arg
.
default_value
=
to_string
(
x
);
arg
.
default_value
=
to_string
(
x
);
migraphx
::
each_args
([
&
](
auto
f
)
{
f
(
x
,
arg
);
},
fs
...);
migraphx
::
each_args
([
&
](
auto
f
)
{
f
(
x
,
arg
);
},
fs
...);
}
}
...
@@ -153,10 +153,10 @@ struct argument_parser
...
@@ -153,10 +153,10 @@ struct argument_parser
std
::
cout
<<
a
;
std
::
cout
<<
a
;
prefix
=
", "
;
prefix
=
", "
;
}
}
if
(
not
arg
.
type
.
empty
())
if
(
not
arg
.
type
.
empty
())
{
{
std
::
cout
<<
" ["
<<
arg
.
type
<<
"]"
;
std
::
cout
<<
" ["
<<
arg
.
type
<<
"]"
;
if
(
not
arg
.
default_value
.
empty
())
if
(
not
arg
.
default_value
.
empty
())
std
::
cout
<<
" (Default: "
<<
arg
.
default_value
<<
")"
;
std
::
cout
<<
" (Default: "
<<
arg
.
default_value
<<
")"
;
}
}
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
;
...
...
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