Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
xacc
Commits
57043bdc
Commit
57043bdc
authored
Feb 14, 2018
by
Mccaskey, Alex
Browse files
uploading fix to log queue
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
31169c9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
xacc/XACC.cpp
View file @
57043bdc
...
...
@@ -299,6 +299,7 @@ void clearOptions() {
* be called after using the XACC API.
*/
void
Finalize
()
{
XACCLogger
::
instance
()
->
dumpQueue
();
info
(
""
);
info
(
"[xacc::plugins] Cleaning up Plugin Registry."
);
xacc
::
ServiceRegistry
::
instance
()
->
destroy
();
...
...
xacc/utils/CLIParser.hpp
View file @
57043bdc
...
...
@@ -84,6 +84,7 @@ public:
variables_map
clArgs
;
store
(
parse_command_line
(
argc
,
argv
,
*
xaccOptions
.
get
()),
clArgs
);
if
(
clArgs
.
count
(
"help"
))
{
XACCLogger
::
instance
()
->
dumpQueue
();
std
::
cout
<<
*
xaccOptions
.
get
()
<<
"
\n
"
;
XACCLogger
::
instance
()
->
info
(
"
\n
[xacc] XACC Finalizing
\n
[xacc::compiler] Cleaning up Compiler Registry."
...
...
@@ -118,6 +119,7 @@ public:
}
if
(
listTypes
)
{
XACCLogger
::
instance
()
->
dumpQueue
();
XACCLogger
::
instance
()
->
info
(
"
\n
[xacc] XACC Finalizing
\n
[xacc::compiler] Cleaning up Compiler Registry."
"
\n
[xacc::accelerator] Cleaning up Accelerator Registry."
);
...
...
@@ -126,6 +128,7 @@ public:
auto
exitRequested
=
ServiceRegistry
::
instance
()
->
handleOptions
(
clArgs
);
if
(
exitRequested
)
{
XACCLogger
::
instance
()
->
dumpQueue
();
XACCLogger
::
instance
()
->
info
(
"
\n
[xacc] XACC Finalizing
\n
[xacc::compiler] Cleaning up Compiler Registry."
"
\n
[xacc::accelerator] Cleaning up Accelerator Registry."
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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