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

runcuda.sh overwrites environment variables #284

Open
lilyminium opened this issue Jun 14, 2023 · 3 comments
Open

runcuda.sh overwrites environment variables #284

lilyminium opened this issue Jun 14, 2023 · 3 comments

Comments

@lilyminium
Copy link

Targets involving workqueue seem to wrap commands in data/runcuda.sh. This unfortunately overwrites variables in the local environment, trying to load quite an old version of CUDA (4/5), if the hostname matches some patterns. I think it would be easier for users to configure their own environments, and easier to debug issues.

The variables configured include:

  • CUDA_HOME
  • PATH
  • LD_LIBRARY_PATH
  • INCLUDE
  • BAK
  • CUDA_CACHE_PATH
  • OPENMM_CUDA_COMPILER
  • OPENMM_PLUGIN_DIR

I'm using forcebalance 1.9.5.

@leeping
Copy link
Owner

leeping commented Jun 14, 2023 via email

@lilyminium
Copy link
Author

Thanks for the suggestion! I did just comment out that block for my own use -- I've also written my own submission script that loads up the necessary environment for each worker, so I'm not sure FB needs to handle it at all (unless I missed an existing facility to handle workqueue workers!)

And yes, I bumped into this with the Liquid_SMIRNOFF target that subclasses Liquid :)

@leeping
Copy link
Owner

leeping commented Jun 15, 2023

I think if someone uses a single WQ job submission script (on a cluster) but uses WQ for different types of jobs (such as distributing QM calculations, or running FB Liquid simulations), it could be helpful for the applications to change the environment variables. We can probably comment out all of the code blocks leaving them as examples for any user who wants to customize their worker's environment, and then FB can default to not loading anything.

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