-
Notifications
You must be signed in to change notification settings - Fork 294
Allow the environment variable to override the default target #877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow the environment variable to override the default target #877
Conversation
84601b4 to
0956598
Compare
Command Bot: Processing... |
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good.
Command Bot: Processing... |
1 similar comment
Command Bot: Processing... |
-- Added an environment variable - CUDAQ_DEFAULT_SIMULATOR -- Check value against valid simulators -- Added basic tests
* Extend C++ test
environment variable isn't retained.
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
LinkedLibraryHolder constructor.
851ab99 to
530c300
Compare
Command Bot: Processing... |
e882edf to
88b7600
Compare
Command Bot: Processing... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Command Bot: Processing... |
Command Bot: Processing... |
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
Command Bot: Processing... |
Command Bot: Processing... |
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
Checklist:
Documentation will be addressed separately.
Description
If no target specified, and environment variable is not set or invalid value, then default target is 'qpp-cpu' for CPU-only systems and 'nvidia' for GPU enabled systems.
If no target specified on command line, and environment variable set to valid value, then that value is the default target.
If target specified on command line and '--emulate' flag is set, then the default target's simulator is used at runtime.