install_third_party_dependencies.sh 1 KB
Newer Older
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
1
2
3
#!/bin/bash

# Download folding resources
Jennifer Wei's avatar
Jennifer Wei committed
4
wget -N --no-check-certificate -P openfold/resources \
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
5
6
    https://git.scicore.unibas.ch/schwede/openstructure/-/raw/7102c63615b64735c4941278d92b554ec94415f8/modules/mol/alg/src/stereo_chemical_props.txt

7
8
# Certain tests need access to this file
mkdir -p tests/test_data/alphafold/common
9
ln -rs openfold/resources/stereo_chemical_props.txt tests/test_data/alphafold/common
10

Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
11
# Decompress test data
12
gunzip -c tests/test_data/sample_feats.pickle.gz > tests/test_data/sample_feats.pickle
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
13

14
python setup.py install
Gustaf Ahdritz's avatar
Gustaf Ahdritz committed
15

16
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH
17
18
19
20
21

echo "Attempting to download CUTLASS, required for Deepspeed Evoformer attention kernel"
git clone https://github.com/NVIDIA/cutlass --depth 1
conda env config vars set CUTLASS_PATH=$PWD/cutlass

22
23
# This setting is used to fix a worker assignment issue during data loading
conda env config vars set KMP_AFFINITY=none
24
25
26

# Reactivate env so that the above environment variables take effect
conda activate $CONDA_PREFIX