Skip to content
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

cause plugin path specified in configure step to be automatically added to the netcdf plugin path #3025

Open
edwardhartnett opened this issue Sep 15, 2024 · 2 comments

Comments

@edwardhartnett
Copy link
Contributor

With the very helpful #3024 , we can now more easily approach the problem of what to do with the plugin path that the users specified in the configure step.

On library initialization, that path should be added to the plugin path.

This will cause everything to work out of the box for all users. Advanced users, thanks to #3024, will easily have the ability to take charge of the plugin path, and get full control. All other users will use the plugin path specified at configure time, and will not even have to know about it.

On HPC systems, sysadmins can build and install netCDF, and set whatever plugin directory they want, and users will get everything working out of the box without an environment variable, or even knowing anything about plugins or plugin paths.

This will reduce support requests to netCDF, because a plugin path problem will be perceived as a netCDF bug. Making it work out of the box without user involvement allows scientists to get right at their data without messing around with settings.

@edwardhartnett edwardhartnett changed the title cause plugin path specified in configure step to be automatically added to the plugin path cause plugin path specified in configure step to be automatically added to the netcdf plugin path Sep 15, 2024
@DennisHeimbigner
Copy link
Collaborator

Ed, you don't get off the hook that easily :-)
We also need to take into account the mechanisms of HDF5 and what is already in place.
Specifically, we have the following info to deal with:

  1. HDF5_PLUGIN_PATH at build time
  2. HDF5_PLUGIN_PATH at run time
  3. --with-plugin-dir option

There is probably little use of No. 4, but there is almost certainly use of No. 3.

@edwardhartnett
Copy link
Contributor Author

HDF5_PLUGIN_PATH plays no role at build time. We should not care what it is at build time.

At run time, HDF5_PLUGIN_PATH is used by HDF5, not by netCDF. I would suggest we do nothing with HDF5_PLUGIN_PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants