-
Notifications
You must be signed in to change notification settings - Fork 9
Update sapelo_programs.py #49
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
Open
cgbriggs99
wants to merge
8
commits into
master
Choose a base branch
from
cgbriggs99-patch-2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9fdc1fd
Update sapelo_programs.py
cgbriggs99 f0cce22
Update sapelo_programs.py
cgbriggs99 38a5739
Update sapelo_programs.py
cgbriggs99 4d6643b
Adds molpro_24 as separate option.
AlexHeide fb9ac67
Fixes submit script error. Use container for cfour. Add simple progra…
AlexHeide a811231
Add stored submit scripts for testing against
AlexHeide 9afcce4
Fixes molpro container name
AlexHeide 781d7be
Uses symlinks for both molpro verisons. Actually push test updates
AlexHeide 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,3 +127,5 @@ dmypy.json | |
| /vulcan_examples/ | ||
| examples | ||
| tests | ||
| !tests/sub_templates | ||
| !tests/templates | ||
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,77 @@ | ||
| #!/bin/bash | ||
| #SBATCH --job-name=STEP # Job name | ||
| #SBATCH --partition=batch # Partition (queue) name | ||
| #SBATCH --constraint=EPYC|Intel | ||
| #SBATCH --nodes=1 # Number of nodes | ||
| #SBATCH --ntasks=4 # Number of MPI ranks | ||
| #SBATCH --ntasks-per-node=4 # How many tasks on each node | ||
| #SBATCH --cpus-per-task=1 # Number of cores per MPI rank | ||
| #SBATCH --mem=32GB # Total Memory | ||
| #SBATCH --time=10:00:00 | ||
| #SBATCH --output="%x.%j".out # Standard output log | ||
| #SBATCH --error="%x.%j".err # Standard error log | ||
|
|
||
| cd $SLURM_SUBMIT_DIR | ||
| export NSLOTS=4 | ||
| export THREADS=1 | ||
|
|
||
| module=OpenMPI/4.1.1-GCC-11.2.0 # no cfour mpi by gacrc | ||
| scratch_dir=/scratch/$USER/tmp/$SLURM_JOB_ID | ||
| mkdir -p $scratch_dir | ||
|
|
||
| echo -e " $NSLOTS" > ./ncpu # CFour appears to just claim any and all cpus | ||
| echo -e " $NSLOTS" > $scratch_dir/ncpu | ||
|
|
||
| # make sure MRCC is around just in case | ||
| export PATH=$PATH:/work/jttlab/mrcc/2020/ | ||
| prefix=/apps/eb/$module/ | ||
| module load $module | ||
|
|
||
| # Copy job data | ||
| if [[ -e input.dat && ! -e ZMAT ]]; then | ||
| cp input.dat $scratch_dir/ZMAT | ||
| else | ||
| cp $SLURM_SUBMIT_DIR/ZMAT $scratch_dir | ||
| fi | ||
|
|
||
| cp $prefix/basis/GENBAS $scratch_dir | ||
| cp $prefix/basis/ECPDATA $scratch_dir | ||
| if [ -e JAINDX ]; then cp JAINDX $scratch_dir ; fi | ||
| if [ -e JOBARC ]; then cp JOBARC $scratch_dir ; fi | ||
| if [ -e FCMINT ]; then cp FCMINT $scratch_dir ; fi | ||
| if [ -e GENBAS ]; then cp GENBAS $scratch_dir ; fi | ||
| if [ -e ECPDATA ]; then cp ECPDATA $scratch_dir ; fi | ||
| if [ -e OPTARC ]; then cp OPTARC $scratch_dir ; fi | ||
| if [ -e ISOTOPES ]; then cp ISOTOPES $scratch_dir ; fi | ||
| if [ -e ISOMASS ]; then cp ISOMASS $scratch_dir ; fi | ||
| if [ -e initden.dat ]; then cp initden.dat $scratch_dir ; fi | ||
| if [ -e OLDMOS ]; then cp OLDMOS $scratch_dir ; fi | ||
|
|
||
| echo " Running cfour on `hostname`" | ||
| echo " Running calculation..." | ||
|
|
||
| cd $scratch_dir | ||
|
|
||
| # Silence all the IEEE signaling messages | ||
| export NO_STOP_MESSAGE=yes | ||
| # request devices (inifiniband) use openib BTL interface for openmpi 4 | ||
| export OMPI_MCA_btl_openib_allow_ib=true | ||
|
|
||
| apptainer exec /work/jttlab/containers/cfour-2.1-foss-ompi.sif xcfour >& $SLURM_SUBMIT_DIR/output.dat | ||
| apptainer exec /work/jttlab/containers/cfour-2.1-foss-ompi.sif xja2fja | ||
|
|
||
| echo " Saving data and cleaning up..." | ||
| if [ -e ZMATnew ]; then cp -f ZMATnew $SLURM_SUBMIT_DIR/ZMATnew ; fi | ||
| if [ -e GRD ]; then cp -f GRD $SLURM_SUBMIT_DIR/GRD ; fi | ||
| if [ -e FCMFINAL ]; then cp -f FCMFINAL $SLURM_SUBMIT_DIR/FCMFINAL ; fi | ||
|
|
||
| # Create a job data archive file | ||
| tar --transform "s,^,Job_Data_$SLURM_JOB_ID/," -vcf $SLURM_SUBMIT_DIR/Job_Data_$SLURM_JOB_ID.tar OPTARC FCMINT FCMFINAL ZMATnew JMOL.plot JOBARC JAINDX FJOBARC DIPDER HESSIAN MOLDEN NEWMOS den.dat | ||
| if [ -e zmat001 ]; then tar --transform "s,^,Job_Data_$SLURM_JOB_ID/," -vrf $SLURM_SUBMIT_DIR/Job_Data_$SLURM_JOB_ID.tar zmat* ; fi | ||
| gzip $SLURM_SUBMIT_DIR/Job_Data_$SLURM_JOB_ID.tar | ||
|
|
||
| echo " Job complete on `hostname`." | ||
|
|
||
| rm $scratch_dir -r | ||
|
|
||
| #ignored line -- do not remove |
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,69 @@ | ||
| #!/bin/bash | ||
| #SBATCH --partition=batch | ||
| #SBATCH --constraint="EPYC|Intel" | ||
| #SBATCH --job-name=STEP | ||
| #SBATCH --ntasks=1 | ||
| #SBATCH --cpus-per-task=4 | ||
| #SBATCH --time=10:00:00 | ||
| #SBATCH --mem=32GB | ||
| #SBATCH --output="%x.%j".out # Standard output log | ||
| #SBATCH --error="%x.%j".err # Standard error log | ||
|
|
||
| cd $SLURM_SUBMIT_DIR | ||
| export NSLOTS=4 | ||
|
|
||
| module=cfour/2.1-intel-2023a-serial | ||
| export OMP_NUM_THREADS=$NSLOTS | ||
|
|
||
| scratch_dir=/scratch/$USER/tmp/$SLURM_JOB_ID | ||
| mkdir -p $scratch_dir | ||
|
|
||
|
|
||
| # make sure MRCC is around just in case | ||
| export PATH=$PATH:/work/jttlab/mrcc/2020/ | ||
| prefix=/apps/eb/$module/ | ||
| module load $module | ||
|
|
||
| # Copy job data | ||
| if [[ -e input.dat && ! -e ZMAT ]]; then | ||
| cp input.dat $scratch_dir/ZMAT | ||
| else | ||
| cp $SLURM_SUBMIT_DIR/ZMAT $scratch_dir | ||
| fi | ||
|
|
||
| cp $prefix/basis/GENBAS $scratch_dir | ||
| cp $prefix/basis/ECPDATA $scratch_dir | ||
| if [ -e JAINDX ]; then cp JAINDX $scratch_dir ; fi | ||
| if [ -e JOBARC ]; then cp JOBARC $scratch_dir ; fi | ||
| if [ -e FCMINT ]; then cp FCMINT $scratch_dir ; fi | ||
| if [ -e GENBAS ]; then cp GENBAS $scratch_dir ; fi | ||
| if [ -e ECPDATA ]; then cp ECPDATA $scratch_dir ; fi | ||
| if [ -e OPTARC ]; then cp OPTARC $scratch_dir ; fi | ||
| if [ -e ISOTOPES ]; then cp ISOTOPES $scratch_dir ; fi | ||
| if [ -e ISOMASS ]; then cp ISOMASS $scratch_dir ; fi | ||
| if [ -e initden.dat ]; then cp initden.dat $scratch_dir ; fi | ||
| if [ -e OLDMOS ]; then cp OLDMOS $scratch_dir ; fi | ||
|
|
||
| echo " Running cfour on `hostname`" | ||
| echo " Running calculation..." | ||
|
|
||
| cd $scratch_dir | ||
|
|
||
| xcfour >& $SLURM_SUBMIT_DIR/output.dat | ||
| xja2fja | ||
|
|
||
| echo " Saving data and cleaning up..." | ||
| if [ -e ZMATnew ]; then cp -f ZMATnew $SLURM_SUBMIT_DIR/ZMATnew ; fi | ||
| if [ -e GRD ]; then cp -f GRD $SLURM_SUBMIT_DIR/GRD ; fi | ||
| if [ -e FCMFINAL ]; then cp -f FCMFINAL $SLURM_SUBMIT_DIR/FCMFINAL ; fi | ||
|
|
||
| # Create a job data archive file | ||
| tar --transform "s,^,Job_Data_$SLURM_JOB_ID/," -vcf $SLURM_SUBMIT_DIR/Job_Data_$SLURM_JOB_ID.tar OPTARC FCMINT FCMFINAL ZMATnew JMOL.plot JOBARC JAINDX FJOBARC DIPDER HESSIAN MOLDEN NEWMOS den.dat | ||
| if [ -e zmat001 ]; then tar --transform "s,^,Job_Data_$SLURM_JOB_ID/," -vrf $SLURM_SUBMIT_DIR/Job_Data_$SLURM_JOB_ID.tar zmat* ; fi | ||
| gzip $SLURM_SUBMIT_DIR/Job_Data_$SLURM_JOB_ID.tar | ||
|
|
||
| echo " Job complete on `hostname`." | ||
|
|
||
| rm $scratch_dir -r | ||
|
|
||
| # ignored line -- do not remove |
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.
Uh oh!
There was an error while loading. Please reload this page.