-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Knowledge-Graph-Hub/merge_slurm_script
add slurm script
- Loading branch information
Showing
6 changed files
with
108 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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 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 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,32 @@ | ||
#!/bin/bash | ||
#SBATCH --account=m4689 | ||
#SBATCH --qos=regular | ||
#SBATCH --constraint=cpu | ||
#SBATCH --time=360 | ||
#SBATCH --ntasks=1 | ||
#SBATCH --mem=425GB | ||
#SBATCH --job-name=parallel_merge | ||
#SBATCH --output=parallel_merge_%A_%a.out | ||
#SBATCH --error=parallel_merge_%A_%a.err | ||
#SBATCH --array=0-3 | ||
#SBATCH -N 1 | ||
|
||
module load python/3.10 | ||
cd kg-microbe-merge | ||
python -m venv venv-merge | ||
source venv-merge/bin/activate | ||
pip install poetry | ||
poetry install | ||
|
||
# Array of merged graph names | ||
merges=( | ||
kg-microbe-core | ||
kg-microbe-biomedical | ||
) | ||
|
||
# Get the merge for this job array task | ||
merge=${merges[$SLURM_ARRAY_TASK_ID]} | ||
|
||
echo "Starting $merge" | ||
time poetry run make $merge | ||
echo "Finished $merge" |
This file contains 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,33 @@ | ||
#!/bin/bash | ||
#SBATCH --account=m4689 | ||
#SBATCH --qos=regular | ||
#SBATCH --constraint=cpu | ||
#SBATCH --time=360 | ||
#SBATCH --ntasks=1 | ||
#SBATCH --mem=425GB | ||
#SBATCH --job-name=parallel_merge | ||
#SBATCH --output=parallel_merge_%A_%a.out | ||
#SBATCH --error=parallel_merge_%A_%a.err | ||
#SBATCH --array=0 | ||
#SBATCH -N 1 | ||
#SBATCH --mail-type=BEGIN,END | ||
#SBATCH [email protected] | ||
|
||
module load python/3.10 | ||
cd kg-microbe-merge | ||
python -m venv venv-merge | ||
source venv-merge/bin/activate | ||
pip install poetry | ||
poetry install | ||
|
||
# Array of merged graph names | ||
merges=( | ||
kg-microbe-biomedical-function | ||
) | ||
|
||
# Get the merge for this job array task | ||
merge=${merges[$SLURM_ARRAY_TASK_ID]} | ||
|
||
echo "Starting $merge" | ||
time poetry run make $merge | ||
echo "Finished $merge" |
This file contains 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,33 @@ | ||
#!/bin/bash | ||
#SBATCH --account=m4689 | ||
#SBATCH --qos=regular | ||
#SBATCH --constraint=cpu | ||
#SBATCH --time=360 | ||
#SBATCH --ntasks=1 | ||
#SBATCH --mem=425GB | ||
#SBATCH --job-name=parallel_merge | ||
#SBATCH --output=parallel_merge_%A_%a.out | ||
#SBATCH --error=parallel_merge_%A_%a.err | ||
#SBATCH --array=0 | ||
#SBATCH -N 1 | ||
#SBATCH --mail-type=BEGIN,END | ||
#SBATCH [email protected] | ||
|
||
module load python/3.10 | ||
cd kg-microbe-merge | ||
python -m venv venv-merge | ||
source venv-merge/bin/activate | ||
pip install poetry | ||
poetry install | ||
|
||
# Array of merged graph names | ||
merges=( | ||
kg-microbe-function | ||
) | ||
|
||
# Get the merge for this job array task | ||
merge=${merges[$SLURM_ARRAY_TASK_ID]} | ||
|
||
echo "Starting $merge" | ||
time poetry run make $merge | ||
echo "Finished $merge" |
This file contains 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