-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e198e2c
commit 30c0a22
Showing
3 changed files
with
77 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
#SBATCH --job-name=cdindex-multi | ||
#SBATCH --output=cdindex-multi.out | ||
#SBATCH --error=cdindex-multi.err | ||
#SBATCH --nodes=1 | ||
#SBATCH --ntasks=1 | ||
#SBATCH --cpus-per-task=40 | ||
#SBATCH --mem=256G | ||
#SBATCH --time=40:00:00 | ||
#SBATCH --partition=fat | ||
#SBATCH --account=pa240702 | ||
|
||
# Calculate the CD index up to 2023 | ||
|
||
set -eu | ||
|
||
# On ARIS cdindex-db can be compiled as follows: | ||
# module load intel/18 | ||
# module load gnu/13 | ||
# SQLITE_DIR=$HOME/src/sqlite-amalgamation-3460000/ make cdindex-db | ||
|
||
# /tmp is 2GB; redirect it here for 64GB | ||
export TMP=$(mktemp -d /dev/shm/csmake.XXXXXX) | ||
export TMPDIR="$TMP" | ||
|
||
time ./cdindex-db cdindex.db rolap.db | ||
|
||
rm -rf "$TMP" |
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,19 @@ | ||
#!/bin/bash | ||
|
||
#SBATCH --job-name=cdindex-compress | ||
#SBATCH --output=cdindex-compress.out | ||
#SBATCH --error=cdindex-compress.err | ||
#SBATCH --nodes=1 | ||
#SBATCH --ntasks=1 | ||
#SBATCH --cpus-per-task=8 | ||
#SBATCH --mem=16G | ||
#SBATCH --time=40:00:00 | ||
#SBATCH --partition=compute | ||
#SBATCH --account=pa240702 | ||
|
||
# Compress the reports | ||
|
||
set -eu | ||
|
||
cd reports | ||
xz --threads=8 --keep --verbose cd5index-all.txt |
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,29 @@ | ||
#!/bin/bash | ||
|
||
#SBATCH --job-name=cdindex-make | ||
#SBATCH --output=cdindex-make.out | ||
#SBATCH --error=cdindex-make.err | ||
#SBATCH --nodes=1 | ||
#SBATCH --ntasks=1 | ||
#SBATCH --cpus-per-task=2 | ||
#SBATCH --mem=16G | ||
#SBATCH --time=40:00:00 | ||
#SBATCH --partition=compute | ||
#SBATCH --account=pa240702 | ||
|
||
# Run make to compute the yearly cdindex | ||
|
||
set -eu | ||
|
||
# On ARIS cdindex-db can be compiled as follows: | ||
# module load intel/18 | ||
# module load gnu/13 | ||
# SQLITE_DIR=$HOME/src/sqlite-amalgamation-3460000/ make cdindex-db | ||
|
||
# /tmp is 2GB; redirect it here for 64GB | ||
export TMP=$(mktemp -d /dev/shm/csmake.XXXXXX) | ||
export TMPDIR="$TMP" | ||
|
||
time make | ||
|
||
rm -rf "$TMP" |