Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ravi Tripathi
software_build_scripts
Commits
acf2234c
Commit
acf2234c
authored
Mar 17, 2016
by
Ravi Tripathi
Browse files
Adding a script for rc-build user to build softwares through an input file
parent
664df8ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/build_software_rc-build_user
0 → 100755
View file @
acf2234c
# This script builds the softwares listed in ebinput.txt by
# creating a slurm script for it's build using EasyBuild.
# This also creates a general directory structure for the project
#!/bin/bash
cd ../..
for software in `cat $1`
do
mkdir `echo "$software" | awk -F'-' '{print $1}'`
cd `echo "$software" | awk -F'-' '{print $1}'`
cat > build-$software.job <<EOF
#!/bin/bash
#SBATCH --share
#SBATCH --partition=medium
#SBATCH --job-name=build-`echo "$software" | awk -F'-' '{print $1}'`
#SBATCH --output=out.txt
#SBATCH --error=`echo "$software" | awk -F'-' '{print $1}'`.err
#SBATCH --ntasks=4
#SBATCH --time=08:00:00
#SBATCH --mem-per-cpu=1024
#SBATCH --mail-type=END
#SBATCH --mail-type=FAIL
#SBATCH --mail-user=rc-build@vo.uabgrid.uab.edu
eb $software -r >> `echo "$software" | awk -F'-' '{print $1}'`.out
EOF
sbatch build-$software.job
cd ..
done
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment