-
Notifications
You must be signed in to change notification settings - Fork 134
Turing WPI support #1335
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
Merged
+57
−1
Merged
Turing WPI support #1335
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
faa0693
add turing WPI modules and template
21e7bd3
Merge branch 'MFlowCode:master' into master
dgvacarevelo a10ab03
Switch to CPU-only mode since GPU support on Turing is still experime…
acdcb2f
No spaces in mail-type directive
91ae402
Merge branch 'MFlowCode:master' into master
dgvacarevelo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| <%namespace name="helpers" file="helpers.mako"/> | ||
|
|
||
| % if engine == 'batch': | ||
| #SBATCH --nodes=${nodes} | ||
| #SBATCH --ntasks-per-node=${tasks_per_node} | ||
| #SBATCH --cpus-per-task=1 | ||
| #SBATCH --job-name="${name}" | ||
| #SBATCH --time=${walltime} | ||
| % if partition: | ||
| #SBATCH --partition=${partition} | ||
| % endif | ||
| % if account: | ||
| #SBATCH --account="${account}" | ||
| % endif | ||
| #SBATCH --output="${name}.out" | ||
| #SBATCH --error="${name}.err" | ||
| #SBATCH --export=ALL | ||
| % if email: | ||
| #SBATCH --mail-user=${email} | ||
| #SBATCH --mail-type=BEGIN,END,FAIL | ||
| % endif | ||
| % endif | ||
|
|
||
| ${helpers.template_prologue()} | ||
|
|
||
| ok ":) Loading modules:\n" | ||
| cd "${MFC_ROOT_DIR}" | ||
| . ./mfc.sh load -c t -m ${'g' if gpu_enabled 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} \ | ||
| srun --mpi=pmi2 --ntasks=${nodes*tasks_per_node} \ | ||
| "${target.get_install_binpath(case)}") | ||
| % endif | ||
|
|
||
| ${helpers.run_epilogue(target)} | ||
|
|
||
| echo | ||
| % endfor | ||
|
|
||
| ${helpers.template_epilogue()} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
1. Gpu mode missing module set
🐞 Bug≡ CorrectnessAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation toolsThere 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.
The template and modules targets CPU-only simulations, as GPU support on Turing remains experimental and restricted to single-processor runs.