Skip to content

Commit

Permalink
add XSEDE HPC example
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunjiangZhu committed Jul 20, 2020
1 parent 5467067 commit 33747c6
Showing 1 changed file with 48 additions and 2 deletions.
50 changes: 48 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Welcome to Molecular Similarity Search Benchmark (MssBenchmark)!
# Welcome to Molecular Similarity Search Benchmark (MssBenchmark)!

A molecular similarity search benchmark.

Expand Down Expand Up @@ -162,7 +162,7 @@ Command Examples:

python plot.py --dataset=chembl-1024-jaccard -Y -x=range --rq --radius=0.4 -o=results/chembl-1024-jaccard-0_4

# Executions under an HPC environment
# Executions under an HPC environment (Example: UConn HPC)

1. Load anaconda module

Expand All @@ -186,8 +186,10 @@ An example "run.sh":

#!/bin/bash

#SBATCH --partition=HaswellPriority
#SBATCH --ntasks=1
#SBATCH --exclude=cn[65-69,71-136,325-343,345-353,355-358,360-364,369-398,400-401],gpu[07-10]
#SBATCH --exclusive

module load anaconda/5.1.0
Expand All @@ -202,6 +204,49 @@ An example "run.sh":


python run.py --dataset=chembl-1024-jaccard --algorithm='Hnsw(Nmslib)' --count=100 --sif-dir="./singularity"


# Executions under an HPC environment (Example: XSEDE Comet HPC)

1. Please download and install miniconda [1] [2] in your HOME directory on Comet

[1] https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html
[2] https://docs.conda.io/en/latest/miniconda.html

2. Create anaconda environment, and then install dependent libraries

conda create -c rdkit -n ann_env rdkit python=3.7.7

source activate ann_env

pip install -r singularity-install/requirements.txt

source deactivate ann_env

3. Run your algorithm scripts by SLURM shell

sbatch run.sh

An example "run.sh":

#!/bin/bash

#SBATCH --partition=compute
#SBATCH --no-requeue
#SBATCH --ntasks=1
#SBATCH --exclusive
#SBATCH -t 48:00:00

source activate ann_env

module purge

module load singularity/3.5


python run.py --dataset=chembl-1024-jaccard --algorithm='Hnsw(Nmslib)' --count=100 --sif-dir="./singularity"


Expand All @@ -214,6 +259,7 @@ An example "plot.sh":

#!/bin/bash

#SBATCH --partition=HaswellPriority
#SBATCH --ntasks=1
#SBATCH --exclude=cn[65-69,71-136,325-343,345-353,355-358,360-364,369-398,400-401],gpu[07-10]
Expand Down

0 comments on commit 33747c6

Please sign in to comment.