-
Notifications
You must be signed in to change notification settings - Fork 37
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
Support for site-provided dependencies #182
Conversation
If the SMARTSIM_DEP_PATH environment variable has been set. Base some of the SmartSim dependencies on that variable instead of the locally installed libraries.
Create a separate build method for users who have a site-managed SmartSim installation since most dependencies and libraries will be handled by the site administrator.
d7756de
to
63a6a51
Compare
Including a printer for Versioner would require tabulate as an additional dependency. For now, this functionality has been removed to avoid errors when installing via pip.
63a6a51
to
7f9cff0
Compare
Codecov Report
@@ Coverage Diff @@
## develop #182 +/- ##
========================================
Coverage 81.73% 81.74%
========================================
Files 57 57
Lines 2973 2974 +1
========================================
+ Hits 2430 2431 +1
Misses 543 543
|
Replace the sitebuild functionality with a `--only_python_packages` variant of `smart build`. This will also issue a warning for a case where a user might accidentally omit the device flag (which defaults to cpu) and not install the GPU variant of torch.
In cases where SmartSim dependencies are provided by the system, allow Builder objects to detect those locations.
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.
couple comments. Will do another pass after looking through the site install PR
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.
Approving and should be merged once other PR is merged.
Support for site-provided dependencies Include an optional argument`--only_python_packages` to to `smart build`. This will also issue a warning for a case where a user might accidentally omit the device flag (which defaults to cpu) and not install the GPU variant of torch. The config can now also detect whether dependencies are available elsewhere on the platform. If so, those libraries and executables are not built installed within the user's conda environment. Reviewed by @Spartee
Includes a new function in the
smart
CLI to aid users whose site admins provide most of the packages. Additionally, if the appropriate environment variables are set, SmartSim will be configured to acknowledge the sitewide package installations.