install_third_party_dependencies.sh 965 Bytes
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
echo "Download CUTLASS, required for Deepspeed Evoformer attention kernel"
17
18
19
git clone https://github.com/NVIDIA/cutlass --depth 1
conda env config vars set CUTLASS_PATH=$PWD/cutlass

20
21
# This setting is used to fix a worker assignment issue during data loading
conda env config vars set KMP_AFFINITY=none
22

23
24
export LIBRARY_PATH=$CONDA_PREFIX/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH