Skip to content

Commit

Permalink
Sync with French version: update for StdEnv/2023
Browse files Browse the repository at this point in the history
  • Loading branch information
ofisette committed Nov 1, 2024
1 parent f7dd732 commit 1343fcf
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion 2-resources.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"#SBATCH --mem-per-cpu=1000M\n",
"#SBATCH --time=0-00:10\n",
"\n",
"module load gcc/9.3.0 &> /dev/null\n",
"module load StdEnv/2023 gcc/12.3\n",
"\n",
"mpirun printenv HOSTNAME OMPI_COMM_WORLD_RANK OMPI_COMM_WORLD_SIZE\n",
"```\n",
Expand Down
2 changes: 1 addition & 1 deletion 90-exercises.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"* Analyse avec Python, Pandas et Numpy dans le script [`scripts/inv-mat-pred.py`](https://github.com/calculquebec/cip201-serveurs-calcul/blob/main/scripts/inv-mat-pred.py) :\n",
"\n",
"```Bash\n",
"module load gcc python scipy-stack\n",
"module load StdEnv/2023 gcc/12.3 python/3.11 scipy-stack\n",
"\n",
"cat scripts/inv-mat-pred.py\n",
"python scripts/inv-mat-pred.py temps_inv.csv\n",
Expand Down
2 changes: 1 addition & 1 deletion extra/estimer-mem.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
" * **8 octets** : ~18 trillions de valeurs de 0 à $(2^{64}-1)$ ou de $-(2^{63}-1)$ à $(2^{63}-1)$\n",
"\n",
"```Bash\n",
"module load python scipy-stack\n",
"module load StdEnv/2023 python/3.11 scipy-stack\n",
"python\n",
"```\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion scripts/blastn-array.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ "$(basename $PWD)" = "scripts" ]; then
fi
cd data

module load gcc/9.3.0 blast+/2.12.0 seqkit/0.15.0
module load StdEnv/2023 gcc/12.3 blast+/2.14.1 seqkit/2.5.1

UNKNOWNS=(M N O P Q R)
UNK_X="${UNKNOWNS[$SLURM_ARRAY_TASK_ID]}"
Expand Down
2 changes: 1 addition & 1 deletion scripts/blastn-gen-seq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#SBATCH --mem-per-cpu=1000M
#SBATCH --time=0-00:10

module load gcc/9.3.0 python/3.8.10 blast+/2.12.0 seqkit/0.15.0
module load StdEnv/2023 gcc/12.3 python/3.11 blast+/2.14.1 seqkit/2.5.1

if [ "$(basename $PWD)" = "scripts" ]; then
cd ..
Expand Down
2 changes: 1 addition & 1 deletion scripts/blastn-glost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ "$(basename $PWD)" = "scripts" ]; then
fi
cd donnees

module load gcc/9.3.0 blast+/2.12.0 seqkit/0.15.0 glost/0.3.1
module load StdEnv/2023 gcc/12.3 blast+/2.14.1 seqkit/2.5.1 glost/0.3.1

mkdir -p $SCRATCH/res_glost

Expand Down
2 changes: 1 addition & 1 deletion scripts/blastn-meta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#SBATCH --mem-per-cpu=2000M
#SBATCH --time=0-00:20

module load gcc/9.3.0 blast+/2.12.0 seqkit/0.15.0 glost/0.3.1 meta-farm/1.0.2
module load StdEnv/2023 gcc/12.3 blast+/2.14.1 seqkit/2.5.1 glost/0.3.1 meta-farm/1.0.2

mkdir -p $SCRATCH/res_meta

Expand Down
2 changes: 1 addition & 1 deletion scripts/blastn-parallel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ "$(basename $PWD)" = "scripts" ]; then
fi
cd data

module load gcc/9.3.0 blast+/2.12.0 seqkit/0.15.0
module load StdEnv/2023 gcc/12.3 blast+/2.14.1 seqkit/2.5.1

mkdir -p res_prll

Expand Down
4 changes: 2 additions & 2 deletions scripts/crunch-sbatch-1gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
#SBATCH --time=0:9:0
#SBATCH --gres=gpu:1

module load gcc/9.3.0 cuda/11.4 python/3.8.10
module load StdEnv/2023 gcc/12.3 cuda/12.2 python/3.11

virtualenv --no-download $SLURM_TMPDIR/venv_cupy
source $SLURM_TMPDIR/venv_cupy/bin/activate
pip install --no-index numpy==1.24.2 cupy==11.2.0
pip install --no-index numpy==1.26.4 cupy==12.2.0

time -p python scripts/crunch.py -n 672 --gpu > tg.log &
sleep 2
Expand Down
8 changes: 4 additions & 4 deletions scripts/crunch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ if [ "$1" = '--cpu' ]; then
exit
fi

module load gcc/9.3.0 python/3.8.10 &> /dev/null
module load StdEnv/2023 gcc/12.3 python/3.11

virtualenv --no-download $SLURM_TMPDIR/venv_numpy
source $SLURM_TMPDIR/venv_numpy/bin/activate
pip install --no-index numpy==1.24.2
pip install --no-index numpy==1.26.4

export OMP_NUM_THREADS=$2
time -p python $(dirname $0)/crunch.py -n 672 --cpu > t$2.log &
echo "It is running!"

elif [ "$1" = '--gpu' ]; then
module load gcc/9.3.0 cuda/11.4 python/3.8.10 &> /dev/null
module load StdEnv/2023 gcc/12.3 cuda/12.2 python/3.11

virtualenv --no-download $SLURM_TMPDIR/venv_cupy
source $SLURM_TMPDIR/venv_cupy/bin/activate
pip install --no-index numpy==1.24.2 cupy==11.2.0
pip install --no-index numpy==1.26.4 cupy==12.2.0

time -p python $(dirname $0)/crunch.py -n 672 --gpu > tg.log &
echo "It is running!"
Expand Down
2 changes: 1 addition & 1 deletion scripts/extra/b5D-glost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#SBATCH --mem-per-cpu=2000M
#SBATCH --time=0-00:20

module load gcc/9.3.0 &> /dev/null
module load StdEnv/2023 gcc/12.3

cd $SLURM_TMPDIR
cp $HOME/cq-formation-benchmark5D/solutions/b5D.omp ./
Expand Down
2 changes: 1 addition & 1 deletion scripts/extra/b5D-parallel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#SBATCH
#SBATCH --time=0-00:20

module load gcc/9.3.0 &> /dev/null
module load StdEnv/2023 gcc/12.3

cd $SLURM_TMPDIR
cp $HOME/cq-formation-benchmark5D/solutions/b5D.omp ./
Expand Down
2 changes: 1 addition & 1 deletion scripts/extra/cuda-matmul.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#SBATCH --mem-per-cpu=2000M
#SBATCH --time=0-00:10

module load gcc cuda
module load StdEnv/2023 gcc/12.3 cuda/12.4

export Dim=5760

Expand Down
2 changes: 1 addition & 1 deletion scripts/extra/nbody-openmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#SBATCH --mem-per-cpu=2000M
#SBATCH --time=0-00:10

module load gcc
module load StdEnv/2023 gcc/12.3

cd $SLURM_TMPDIR
cp $HOME/cq-formation-nbody/solutions/openmp/{nbody_omp,parameters.txt} ./
Expand Down
2 changes: 1 addition & 1 deletion scripts/installer/b5D.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ if [ ! -d cq-formation-benchmark5D ]; then
fi
cd cq-formation-benchmark5D/solutions

module load gcc/9.3.0
module load StdEnv/2023 gcc/12.3
make
4 changes: 2 additions & 2 deletions scripts/installer/cuda-samples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

cd $HOME

VERSION="11.0"
VERSION="12.1"
TAR_GZ="v${VERSION}.tar.gz"
DOSSIER="cuda-samples-${VERSION}"

Expand All @@ -21,6 +21,6 @@ fi

cd ${DOSSIER}

module load gcc/9.3.0 cuda/11.4
module load StdEnv/2023 gcc/12.3 cuda/12.2
export PROJECTS=Samples/matrixMul/Makefile
make
2 changes: 1 addition & 1 deletion scripts/installer/nbody.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ if [ ! -d cq-formation-nbody ]; then
fi
cd cq-formation-nbody/solutions/openmp

module load gcc/9.3.0
module load StdEnv/2023 gcc/12.3
sed -i 's/ -march=native//g' Makefile
make
4 changes: 2 additions & 2 deletions scripts/inv-mat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
#SBATCH --mem-per-cpu=2000M
#SBATCH --time=0-00:10

module load gcc/9.3.0 python/3.8.10
module load StdEnv/2023 gcc/12.3 python/3.11

virtualenv --no-download $SLURM_TMPDIR/venv_numpy
source $SLURM_TMPDIR/venv_numpy/bin/activate
pip install --no-index numpy==1.24.2
pip install --no-index numpy==1.26.4

if [ "$(basename $PWD)" = "scripts" ]; then
cd ..
Expand Down
2 changes: 1 addition & 1 deletion scripts/mpi-hello.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
#SBATCH --mem-per-cpu=1000M
#SBATCH --time=0-00:10

module load gcc/9.3.0 &> /dev/null
module load StdEnv/2023 gcc/12.3

mpirun printenv HOSTNAME OMPI_COMM_WORLD_RANK OMPI_COMM_WORLD_SIZE

0 comments on commit 1343fcf

Please sign in to comment.