-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* buffered writing * build pbs scripts * timings when building * update requirements pbs * fix formatting
- Loading branch information
Showing
4 changed files
with
94 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
######################################################################################################### | ||
### This script is designed to run on the Ghent university HPC ### | ||
### ### | ||
### how to use: ### | ||
### 1) Swap to the high-memory gallade cluster by executing `module swap cluster/gallade` ### | ||
### 2) Navigate the to root of the project ### | ||
### 3) Submit the job to the queue with `qsub sa-builder/build-compressed.pbs` ### | ||
######################################################################################################### | ||
|
||
# go to cluster with high memory | ||
module swap cluster/gallade | ||
|
||
# define requested memory, cpu resources and email notifications | ||
#PBS -m abe | ||
#PBS -l walltime=6:00:00 | ||
#PBS -l mem=750gb | ||
# ask for 1 node, 1 cpu (not more needed since we don't have parallelism) | ||
#PBS -l nodes=1:ppn=all | ||
#PBS -N suffix_array_construction_uniprot | ||
|
||
# define output and error files | ||
#PBS -o stdout.$PBS_JOBID | ||
#PBS -e stderr.$PBS_JOBID | ||
|
||
prefix="/kyukon/data/gent/vo/000/gvo00038/suffix-array" | ||
|
||
# load Rust | ||
module load Rust/1.75.0-GCCcore-12.3.0 | ||
module load Clang/16.0.6-GCCcore-12.3.0 # needed to build the bindings from Rust to C | ||
module load CMake/3.26.3-GCCcore-12.3.0 | ||
|
||
# go to current working dir and execute | ||
cd $PBS_O_WORKDIR | ||
|
||
# compile | ||
cargo build --release | ||
|
||
# execute | ||
./target/release/sa-builder -d "$prefix"/proteins.tsv -t "$prefix"/taxons.tsv -o "$prefix"/sa_sparse3_compressed.bin -s 3 -a lib-div-suf-sort -c |
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