-
Notifications
You must be signed in to change notification settings - Fork 106
Support for DoD Carpenter #475
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
sbryngelson marked this conversation as resolved.
Show resolved
Hide resolved
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. did you test that this works in both interactive and batch mode? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Batch mode works great but interactive mode does not. In the interactive mode, I got some warning messages. Fortunately, the simulation results from two modes are same. But I don't still understand why this error arises.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not entirely sure There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please reference the other There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Carpenter is down right now for unknown reasons. I will try to fix this when Carpenter comes back online. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if it doesn't work in interactive mode then you won't be able to use it to run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh actually I do not know if those test cases show warnings. The results looks fine though. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/env bash | ||
|
||
<%namespace name="helpers" file="helpers.mako"/> | ||
|
||
% if engine == 'batch': | ||
#PBS -l select=${nodes}:ncpus=192:mpiprocs=${tasks_per_node} | ||
#PBS -N "${name}" | ||
#PBS -l walltime=${walltime} | ||
% if partition: | ||
#PBS -q ${partition} | ||
% endif | ||
% if account: | ||
#PBS -A ${account} | ||
% endif | ||
% if email: | ||
#PBS -M ${email} | ||
#PBS -m abe | ||
% endif | ||
#PBS -o "${name}.out" | ||
#PBS -e "${name}.err" | ||
#PBS -V | ||
% endif | ||
|
||
${helpers.template_prologue()} | ||
|
||
ok ":) Loading modules:\n" | ||
cd "${MFC_ROOTDIR}" | ||
. ./mfc.sh load -c c -m ${'g' if gpu else 'c'} | ||
cd - > /dev/null | ||
echo | ||
|
||
|
||
% for target in targets: | ||
${helpers.run_prologue(target)} | ||
|
||
% if not mpi: | ||
(set -x; ${profiler} "${target.get_install_binpath(case)}") | ||
% else: | ||
(set -x; ${profiler} \ | ||
mpirun -np ${nodes*tasks_per_node} \ | ||
"${target.get_install_binpath(case)}") | ||
% endif | ||
|
||
${helpers.run_epilogue(target)} | ||
|
||
echo | ||
% endfor | ||
|
||
${helpers.template_epilogue()} |
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.
I'm curious of the cause of this. I think it may have to do with bash version.
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.
I'm also curious about this. Can you share the output of
$SHELL --version
?$SHELL
should expand to the path to your default shell.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.
@henryleberre
$SHELL --version
output iszsh 5.6 (x86_64-suse-linux-gnu)
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.
even though it is
zsh
it gets invoked as./mfc.sh
and there is a/bin/bash
shebang in all of the relevant scriptsThere 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.
Astute observation @sbryngelson. @lee-hyeoksu can you share why you added the quotes around the
==
signs?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.
@henryleberre because Carpenter does not recognize
==
as==
, which leads to the error./mfc.sh:25: = not found
. It seems like Carpenter thinks whatever comes after=
is a command. So, for example, if I put a line of code'echo =load
, it shows error./mfc.sh:25: load not found
.But when I add the quotes (
'=='
), it works. That's why I added the quotes.