-
Notifications
You must be signed in to change notification settings - Fork 17
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
Question: how to set up environment to run batch script #289
Comments
@jhux2 I believe this should answer your question: https://psakievich.github.io/spack-manager/general/FAQ.html#how-do-i-use-the-executables-i-built-in-my-development-environment |
This is what I do on Summit for the exawind-driver for example:
|
We should be getting |
So if I understand, I should do
where But
returns
I feel that I'm missing something fundamental here. [EDIT] Btw, |
Ah yeah that should be the case @psakievich . Guess it's a habit. |
|
@jrood-nrel Thanks. I've launched a couple test jobs to see what effect |
My jobs failed with the same error as before:
After issuing |
@jhux2 spack should be handling all the right paths. # source $SPACK_MANAGER/start.sh has already occured in bashrc
quick-activate $SPACK_MANAGER/environments/jhubuild
spack load nalu-wind
srun [args] naluX -i [args] |
@psakievich Here's what I have in my batch script:
This is a script that I've used for a long time. (I did move the naluX executable to another location, but I assume that should be safe to do.) Where in the spack-manager tree can I find configure/build logs for Trilinos? I'd like to look over those logs to see if anything jumps out. |
|
@jhux2 where are you at on this? do you still need help? |
@psakievich Thanks for checking in. I haven't returned to this yet. The motivation was to see if building with spack-manager would help work around a Nalu-Wind runtime failure. It turns out there's a bug that affects both solver paths in the NGP code, so how nalu-wind gets built is moot. |
Once I've built naluX on Summit, it's unclear to me how to make sure a batch job has the correct environment to run that executable.
Normally, I'd load the same modules as were used for the build.
I did try
quick-activate $SPACK_MANAGER/environments/jhubuild
and then submitting a job. The job failed with an error indicating it could not find CUDA.The text was updated successfully, but these errors were encountered: