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

Server Submit & Setting Scripts #96

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions t3/settings/submit_zeus.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
"""
Submit scripts
"""

# Submission scripts stored as a dictionary with software as the primary key.
submit_scripts = {
# 'rmg': """#!/bin/bash -l
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove the commented out section, this is an example for a Slurm server, it's enough to have it in the general submit.py file

# #SBATCH -J {name}
# #SBATCH -t 05-00:00:00
# #SBATCH -o out.txt
# #SBATCH -e err.txt
# #SBATCH --ntasks={cpus}
# #SBATCH --mem-per-cpu={memory / cpus}
#
#
# export PYTHONPATH=$PYTHONPATH:~/Code/RMG-Py/
#
# conda activate rmg_env
#
# touch initial_time
#
# python-jl ~/Code/RMG-Py/rmg.py -n {cpus} input.py{max_iterations}
#
# touch final_time
#
# """,
# 'rmg': """Universe = vanilla
#
# +JobName = "{name}"
#
# log = job.log
# output = out.txt
# error = err.txt
#
# getenv = True
#
# should_transfer_files = no
#
# executable = job.sh
#
# request_cpus = {cpus}
# request_memory = {memory}MB
#
# queue
#
# """,
# 'rmg_job': """#!/bin/bash -l
#
# touch initial_time
#
# source /srv01/technion/$USER/.bashrc
#
# conda activate rmg_env
#
# python-jl /Local/ce_dana/Code/RMG-Py/rmg.py -n {cpus} input.py{max_iterations}
#
# touch final_time
#
# """,
'rmg': """#!/bin/bash -l

#PBS -N {name}
#PBS -q zeus_long_q
#PBS -l walltime=168:00:00
#PBS -l select=1:ncpus={cpus}
#PBS -o out.txt
#PBS -e err.txt

PBS_O_WORKDIR={workdir}
cd $PBS_O_WORKDIR

conda activate rmg_env

touch initial_time

python-jl ~/Code/RMG-Py/rmg.py -n {cpus} input.py{max_iterations}

touch final_time

""",
}