Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuous Integration via Travis #110

Open
wants to merge 168 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 87 commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
cb27ecd
Adding opencl-install script from https://github.com/KhronosGroup/Syc…
L30nardoSV Nov 8, 2020
6911918
Adding a very preliminary Dockerfile version
L30nardoSV Nov 8, 2020
076daa2
Preliminary .travis.yml
L30nardoSV Nov 8, 2020
fd51b4a
Fixing syntax .travis.yml
L30nardoSV Nov 8, 2020
696bcd9
In .travis.yml: indicate to use Dockerfile in the local directory
L30nardoSV Nov 8, 2020
27f1e7b
Dockerfile: SHELL in JSON format + adding clang
L30nardoSV Nov 8, 2020
273e2bf
Dockerfile: commenting out SHELL (quick test)
L30nardoSV Nov 8, 2020
62fcbea
In .travis.yml: setting remote and branch for AutoDock-GPU project to…
L30nardoSV Nov 8, 2020
36c418d
Adding utils
L30nardoSV Nov 8, 2020
a8eeab5
Adding more utils
L30nardoSV Nov 8, 2020
b7799d8
Adding missing arg
L30nardoSV Nov 9, 2020
dc42baf
Only for temporary testing: comented-out intel opencl install
L30nardoSV Nov 9, 2020
4454859
Fixing docker build command
L30nardoSV Nov 9, 2020
b015590
Re-enabling install opencl
L30nardoSV Nov 9, 2020
f376ef6
Trying Dockerfile from SyclParallelSTL
L30nardoSV Nov 9, 2020
9116763
Trying command to compile and execute AutoDock-GPU
L30nardoSV Nov 9, 2020
e39b02f
Removing clang + removing conditional install for intel opencl + dock…
L30nardoSV Nov 9, 2020
f1f6a71
Creating two envs: one for Solis-Wets and another for ADADELTA
L30nardoSV Nov 9, 2020
3fa6f12
Passing var from ENV
L30nardoSV Nov 9, 2020
d450ada
Fixing .travis.yml
L30nardoSV Nov 9, 2020
4e1f43e
More tests on Docker and travis
L30nardoSV Nov 9, 2020
2481b05
More tests on travis
L30nardoSV Nov 9, 2020
69700ba
More tests on travis
L30nardoSV Nov 9, 2020
209ff79
More tests on travis
L30nardoSV Nov 9, 2020
3e58346
Add clinfo
L30nardoSV Nov 9, 2020
15ff4e0
Trying to add nrun as parameter
L30nardoSV Nov 9, 2020
9a3d080
Updating repository to check via travis
L30nardoSV Nov 12, 2020
d84d06c
Reverting back temporarily as this repository is only one currently w…
L30nardoSV Nov 12, 2020
9f966d4
Simplication as g++ is the only compiler supported in AutoDock-GPU so…
L30nardoSV Nov 12, 2020
dbaa9b9
Removing unused ARG from Dockerfile
L30nardoSV Nov 12, 2020
01c0c04
Printing last 20 lines of produced .dlg
L30nardoSV Nov 12, 2020
56ee3f0
Adding new line
L30nardoSV Nov 12, 2020
0381bb0
Adding missing &&
L30nardoSV Nov 12, 2020
50a754f
Increasing number of last .dlg lines being printed
L30nardoSV Nov 12, 2020
af7ef31
Remove astex target from Makefile.OpenCL
L30nardoSV Nov 12, 2020
8bb3980
Remove astex target from Makefile.Cuda
L30nardoSV Nov 12, 2020
d27a41b
Adding travis ENV: ngen
L30nardoSV Nov 12, 2020
11e907f
Adding corner cases to .travis.yml (NRUN=1, NGEN=1)
L30nardoSV Nov 12, 2020
7fc0e60
Removing commented-out lines not informative/useful anymore
L30nardoSV Nov 12, 2020
11032b6
Adding NUMWI configuration from .travis.yml
L30nardoSV Nov 12, 2020
6585139
Adding NUMWI=1 case for ADADELTA
L30nardoSV Nov 12, 2020
d164526
Minor variant
L30nardoSV Nov 12, 2020
8aa2e23
Adding more test cases for NUMWI
L30nardoSV Nov 13, 2020
d0b80f5
Renaming TESTLS to lsmet, to have uniform names overall
L30nardoSV Nov 13, 2020
412d7f1
Adding osx (requires testing)
L30nardoSV Nov 14, 2020
2356810
Commented osx (for the moment, requires more documentation review)
L30nardoSV Nov 14, 2020
a0836a2
Adding jobs for testing multiple Linux distributions
L30nardoSV Nov 14, 2020
9a1f5bc
Re-organizing OS config
L30nardoSV Nov 14, 2020
65a30d8
Adding preliminary longer tests in Makefile.OpenCL
L30nardoSV Nov 14, 2020
089d675
Printing last 30 lines of *.dlg in Makefile's eval_multiple
L30nardoSV Nov 14, 2020
340cd4e
Minor addition to print seconds in RESNAME
L30nardoSV Nov 14, 2020
83f45dc
Minor fix but requires a date-fix
L30nardoSV Nov 14, 2020
48b1f52
Removing test target from Makefile.OpenCL (will be likely a bash script)
L30nardoSV Nov 14, 2020
078d323
Changes to include other envs + restoring target test_single_exec in …
L30nardoSV Nov 14, 2020
f2beb04
Adding missing parameter
L30nardoSV Nov 14, 2020
c329c44
Adding missing linebreak
L30nardoSV Nov 14, 2020
e7982d6
Fixing wrong var name
L30nardoSV Nov 14, 2020
1ad0167
More fixes
L30nardoSV Nov 14, 2020
7181056
Moving lsmet env config from .travis.yml to a for-loop in Dockerfile
L30nardoSV Nov 14, 2020
d3b2418
Missing lsmet ENV in Dockerfile
L30nardoSV Nov 14, 2020
876091c
Trying to fix for-loop in Dockerfile
L30nardoSV Nov 14, 2020
7165c9b
Trying to fix for-loop in Dockerfile (again)
L30nardoSV Nov 14, 2020
6e0465c
Trying to fix for-loop in Dockerfile (once again)
L30nardoSV Nov 14, 2020
7d27b20
Trying to fix for-loop in Dockerfile (once again and again)
L30nardoSV Nov 14, 2020
367f4a9
Trying to fix for-loop in Dockerfile (ongoing)
L30nardoSV Nov 14, 2020
c30b0aa
slightly different approach for running
L30nardoSV Nov 14, 2020
0bd49ff
Removing seq
L30nardoSV Nov 14, 2020
6e860a9
List only resulting *.dlg files
L30nardoSV Nov 14, 2020
4549b21
Adding data to resnam filenames
L30nardoSV Nov 14, 2020
eb71078
Seems date is yet not passed as expected to resnam
L30nardoSV Nov 14, 2020
39cc93c
Adding bash script to run tests
L30nardoSV Nov 14, 2020
e016526
Removing target that will be replaced by ./travis/run_test.sh bash sc…
L30nardoSV Nov 14, 2020
9bdc01c
Correction of RUN install-opencl + replacing CMD with bash script .tr…
L30nardoSV Nov 14, 2020
583788f
Adapting AutoDock-GPU path for travis CI
L30nardoSV Nov 14, 2020
6bde922
Sourcing test script
L30nardoSV Nov 14, 2020
2039e51
Trying to fix source in docker CMD
L30nardoSV Nov 14, 2020
f32d799
Removing env vars not used anymore (as these have been moved into ./t…
L30nardoSV Nov 14, 2020
f9e68d9
Removing NUMWI from run_test.sh so it receives value from Dockerfile CMD
L30nardoSV Nov 14, 2020
693e10e
Trying to fix NUMWI value-passing to test script
L30nardoSV Nov 14, 2020
e3e88f2
Again trying to fix NUMWI-passing from .travis.yml to run_test.sh
L30nardoSV Nov 14, 2020
41c3336
In .travis.yml: moving NUMWI env into jobs
L30nardoSV Nov 14, 2020
bbaaf3e
Use right capitalization of vars
L30nardoSV Nov 14, 2020
945e5e7
More details in names for dlgs
L30nardoSV Nov 14, 2020
2ad158c
Explanatory comments into scripts
L30nardoSV Nov 14, 2020
5c82b93
Adding comments to be enabled on ccsb-scripps side
L30nardoSV Nov 15, 2020
e23fa5f
Minor renaming in Makefiles (to have similar names to travis and dock…
L30nardoSV Nov 15, 2020
2da8556
Adding testcases NUMWI=32 and NUMWI=64
L30nardoSV Nov 17, 2020
4ed3d5c
Preliminary YAML file.
L30nardoSV Dec 26, 2021
12ed3be
Extra commands.
L30nardoSV Dec 26, 2021
6835466
Adding uses to YAML file.
L30nardoSV Dec 26, 2021
23b0ffe
More testing commands.
L30nardoSV Dec 26, 2021
8e01d47
Fixing syntax.
L30nardoSV Dec 26, 2021
959683a
Temporal fix this time ?
L30nardoSV Dec 26, 2021
faec2c7
Testing extra commands.
L30nardoSV Dec 26, 2021
52fda51
More commands.
L30nardoSV Dec 26, 2021
b6cc94a
Changing workflow name + job name.
L30nardoSV Dec 26, 2021
7e3e6c7
Triggering execution of custom script.
L30nardoSV Dec 26, 2021
35c06bb
Switching to another branch.
L30nardoSV Dec 26, 2021
f1bc294
Listing more details of files.
L30nardoSV Dec 26, 2021
b55eef4
Fixing paths.
L30nardoSV Dec 26, 2021
1532c50
Sourcing script as indicated during execution.
L30nardoSV Dec 26, 2021
3a316fc
Adding missing step: installation of OpenCL runtime.
L30nardoSV Dec 26, 2021
a322347
Installing package with sudo.
L30nardoSV Dec 26, 2021
e341754
Installing package with sudo.
L30nardoSV Dec 26, 2021
9dab4fe
Selecting more recent OpenCL driver.
L30nardoSV Dec 26, 2021
0d1c65d
Setting to Ubuntu 18.04.
L30nardoSV Dec 26, 2021
03c43b1
Attempt to use Dockerfile.
L30nardoSV Dec 28, 2021
3a9686d
Fixing syntax.
L30nardoSV Dec 28, 2021
e6b8cb1
Specifying missing input variable.
L30nardoSV Dec 28, 2021
8ddc731
Fixing syntax.
L30nardoSV Dec 28, 2021
e9f860c
Fixing syntax.
L30nardoSV Dec 28, 2021
31536fe
Updating actions names.
L30nardoSV Dec 28, 2021
c65550b
Fixing uses.
L30nardoSV Dec 28, 2021
ba864a4
Updating Dockerfile.
L30nardoSV Dec 28, 2021
75d06cd
Copying current files into Docker container.
L30nardoSV Dec 28, 2021
a20d2c0
Adding commands to see if files were copies correctly into docker con…
L30nardoSV Dec 28, 2021
3f6bf7c
Fixing syntax.
L30nardoSV Dec 28, 2021
e5ef023
Fixing command syntax.
L30nardoSV Dec 28, 2021
c7be88d
Trying to fix paths.
L30nardoSV Dec 28, 2021
93fb6cf
Removing <sudo> based on GitHub actions (console logs).
L30nardoSV Dec 28, 2021
d3dbb65
Fixes based on GitHub Actions console logs.
L30nardoSV Dec 28, 2021
9b2b36b
Test code from ccsb-scripps repository.
L30nardoSV Dec 29, 2021
38db16f
Cleaning up code.
L30nardoSV Dec 29, 2021
306db0f
Cleaning up.
L30nardoSV Dec 29, 2021
a641952
Passing args to Dockerfile.
L30nardoSV Dec 29, 2021
fade050
Trying to fix args passing.
L30nardoSV Dec 29, 2021
5bd58c1
Fixing <build_args>.
L30nardoSV Dec 29, 2021
9a3188d
Fixing syntax.
L30nardoSV Dec 29, 2021
171d2c5
Fixing syntax.
L30nardoSV Dec 29, 2021
6380e64
Another attempt to fix syntax.
L30nardoSV Dec 29, 2021
0069da6
Adding environmental variables.
L30nardoSV Dec 29, 2021
77b60ba
Printing args passed to Dockerfile.
L30nardoSV Dec 29, 2021
b55841f
Minor change.
L30nardoSV Dec 29, 2021
e805c54
Temporal fix.
L30nardoSV Dec 29, 2021
f8272f5
Correcting parsing error by leaving only actions under the <.github/w…
L30nardoSV Dec 29, 2021
e984868
Relocating files.
L30nardoSV Dec 29, 2021
256a847
Explicit commands.
L30nardoSV Dec 29, 2021
1563ad0
Temporal clean up.
L30nardoSV Dec 29, 2021
40bbeb4
Building docker image explicitly.
L30nardoSV Dec 29, 2021
ac3aa69
Temporarily reducing duration of test.
L30nardoSV Dec 29, 2021
cc161a3
Fixing path for Dockerfile.
L30nardoSV Dec 29, 2021
d422490
Fixing path.
L30nardoSV Dec 29, 2021
7f30af5
Configuring environment variables.
L30nardoSV Dec 29, 2021
337b0bb
Building docker image.
L30nardoSV Dec 29, 2021
410d169
Checking out repository.
L30nardoSV Dec 29, 2021
81d5dbd
Testing home path.
L30nardoSV Dec 29, 2021
741a330
Minor fixes.
L30nardoSV Dec 29, 2021
f74f9dc
Cleaning up.
L30nardoSV Dec 29, 2021
aaae7f8
Cleaning.
L30nardoSV Dec 29, 2021
6b61306
Testing other actions.
L30nardoSV Dec 29, 2021
493c0b4
More experiments with <docker build> command.
L30nardoSV Dec 29, 2021
dce372b
More tests.
L30nardoSV Dec 29, 2021
3814b05
More tests.
L30nardoSV Dec 29, 2021
26800b4
Fixing yml file.
L30nardoSV Dec 29, 2021
4180755
Fixing yml file.
L30nardoSV Dec 29, 2021
34cc101
Fixing yml file.
L30nardoSV Dec 29, 2021
be771aa
Adding run test.
L30nardoSV Dec 29, 2021
484ac30
Trying passing args to Dockerfile.
L30nardoSV Dec 29, 2021
61da1de
Trying passing args to Dockerfile.
L30nardoSV Dec 29, 2021
0ca63f2
Passing args to Dockerfile.
L30nardoSV Dec 29, 2021
bd12480
Further improvements.
L30nardoSV Dec 29, 2021
f6c1629
Removing unnecessary file for GitHub actions.
L30nardoSV Dec 29, 2021
5b414f6
Moving scripts into <docker_scripts> folder.
L30nardoSV Dec 29, 2021
d7bb712
Testing <ubuntu:latest> in Dockerfile.
L30nardoSV Dec 29, 2021
414a082
Configuring docker files to Ubuntu 18.
L30nardoSV Dec 29, 2021
ec581b6
Increasing back the number of test cases + minor fixes.
L30nardoSV Dec 30, 2021
888c97f
Adding new line at end of file.
L30nardoSV Jan 4, 2022
7ac3b40
Cleanup.
L30nardoSV Jan 4, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
language: cpp

services:
- docker

jobs:
include:
- os: linux
dist: focal
sudo: required
env: NUMWI=1
- os: linux
dist: focal
sudo: required
env: NUMWI=4
- os: linux
dist: focal
sudo: required
env: NUMWI=8
- os: linux
dist: focal
sudo: required
env: NUMWI=16
- os: linux
dist: focal
sudo: required
env: NUMWI=32
- os: linux
dist: focal
sudo: required
env: NUMWI=64
- os: linux
dist: bionic
sudo: required
env: NUMWI=16
- os: linux
dist: xenial
sudo: required
env: NUMWI=16

before_install:
- export GIT_BRANCH=docker
- export GIT_SLUG=L30nardoSV/AutoDock-GPU
#- export GIT_BRANCH=develop
#- export GIT_SLUG=ccsb-scripps/AutoDock-GPU
- docker build --build-arg git_branch=${GIT_BRANCH} --build-arg git_slug=${GIT_SLUG} -t adgpu .

script:
- export numwi=${NUMWI}
- docker run -e numwi adgpu
22 changes: 22 additions & 0 deletions .travis/install_intel_opencl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

set -ev

###########################
# Get Intel OpenCL Runtime
###########################

# Code taken from here:
# https://github.com/KhronosGroup/SyclParallelSTL/blob/master/.travis/install_intel_opencl.sh
#
# Intel OpenCL drivers available here:
# https://software.intel.com/en-us/articles/opencl-drivers#latest_CPU_runtime

PACKAGE_URL=http://registrationcenter-download.intel.com/akdlm/irc_nas/12556/opencl_runtime_16.1.2_x64_rh_6.4.0.37.tgz
PACKAGE_NAME=opencl_runtime_16.1.2_x64_rh_6.4.0.37

wget -q ${PACKAGE_URL} -O /tmp/opencl_runtime.tgz
tar -xzf /tmp/opencl_runtime.tgz -C /tmp
sed 's/decline/accept/g' -i /tmp/${PACKAGE_NAME}/silent.cfg
apt-get install -yq cpio
/tmp/${PACKAGE_NAME}/install.sh -s /tmp/${PACKAGE_NAME}/silent.cfg
90 changes: 90 additions & 0 deletions .travis/run_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
#!/bin/bash

set -o xtrace

###########################
# Run test
###########################

# This script is invoked from the Dockerfile,
# but can also be invoked independently (for local tests).
# E.g.: source .travis/run_test.sh 4
# The argument "4" passes the NUMWI value.

info="[INFO]"
asterix_line="========================================================================"

function verify_sourced_script() {
echo " "
echo "${lines}"
echo "${info}: Verifying if script is being sourced"
echo "${lines}"
echo " "
if [[ ${BASH_SOURCE[0]} != $0 ]]; then
echo "${info}: OK. Script "${BASH_SOURCE[0]}" is sourced"
else
echo "${info}: Run \"source ${BASH_SOURCE[0]}\" instead!"
echo "Terminating!" && exit 1
fi
}

function run_clinfo() {
echo " "
echo "${asterix_line}"
echo "${info}: Running clinfo"
echo "${asterix_line}"
echo " "
clinfo
}

#ADGPU_DIR=~/Desktop/AutoDock-GPU
ADGPU_DIR=/AutoDock-GPU
BIN_DIR=${ADGPU_DIR}/bin
DEVICE=CPU

function compile_adgpu() {
echo " "
echo "${asterix_line}"
echo "${info}: Compiling AutoDock-GPU"
echo "${asterix_line}"
echo " "
cd ${ADGPU_DIR}
make DEVICE=${DEVICE} NUMWI=${1}
ls -asl ${BIN_DIR}
}

function run_test() {
echo " "
echo "${asterix_line}"
echo "${info}: Running automated test"
echo "${asterix_line}"
echo " "
for pdb in "3ce3" "1stp"; do
for lsmet in "sw" "ad"; do
for nrun in 1 10; do
for ngen in 10 100; do
for psize in 10 50; do
${BIN_DIR}/autodock_cpu_${1}wi \
-ffile ./input/${pdb}/derived/${pdb}_protein.maps.fld \
-lfile ./input/${pdb}/derived/${pdb}_ligand.pdbqt \
-lsmet ${lsmet} \
-nrun ${nrun} \
-ngen ${ngen} \
-psize ${psize} \
-resnam ${pdb}-${lsmet}-${nrun}-${ngen}-${psize}-"`date +"%Y-%m-%d-%H:%M:%S"`" \
-xmloutput 0
echo " "
tail -30 ${pdb}-${lsmet}-${nrun}-${ngen}-${psize}-*.dlg
done
done
done
done
done
echo " "
ls -asl *.dlg
}

verify_sourced_script
run_clinfo
compile_adgpu ${1}
run_test ${1}
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM ubuntu:bionic

# Build arguments
ARG git_branch
ARG git_slug

# Execution arguments
ENV numwi 16

# Utilities
RUN apt-get -yq update

RUN apt-get install -yq --allow-downgrades --allow-remove-essential \
--allow-change-held-packages git wget apt-utils cmake unzip clinfo \
g++ gcc clang libboost-all-dev software-properties-common

RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test

RUN apt-get -yq update

# OpenCL ICD Loader
RUN apt-get install -yq --allow-downgrades --allow-remove-essential \
--allow-change-held-packages ocl-icd-opencl-dev ocl-icd-dev opencl-headers

# AutoDock-GPU
RUN git clone https://github.com/${git_slug}.git -b ${git_branch} /AutoDock-GPU

# Intel OpenCL Runtime
RUN bash /AutoDock-GPU/.travis/install_intel_opencl.sh

CMD bash -c "source /AutoDock-GPU/.travis/run_test.sh ${numwi}"
36 changes: 9 additions & 27 deletions Makefile.Cuda
Original file line number Diff line number Diff line change
Expand Up @@ -190,46 +190,28 @@ odock: check-env-all kernels $(SRC)
-o$(BIN_DIR)/$(TARGET) \
$(DEV) $(NWI) $(PIPELINE) $(OPT) $(DD) $(REP) $(KFLAGS)

# Example
# 1ac8: for testing gradients of translation and rotation genes
# 7cpa: for testing gradients of torsion genes (15 torsions)
# 3tmn: for testing gradients of torsion genes (1 torsion)
# ------------------------------------------------------

PDB := 3ce3
NRUN := 100
NGEN := 27000
POPSIZE := 150
TESTNAME := test
TESTLS := sw
PSIZE := 150
RESNAM := test
LSMET := sw

test: odock
$(BIN_DIR)/$(TARGET) \
-ffile ./input/$(PDB)/derived/$(PDB)_protein.maps.fld \
-lfile ./input/$(PDB)/derived/$(PDB)_ligand.pdbqt \
-lsmet $(LSMET) \
-nrun $(NRUN) \
-ngen $(NGEN) \
-psize $(POPSIZE) \
-resnam $(TESTNAME) \
-psize $(PSIZE) \
-resnam $(RESNAM) \
-gfpop 0 \
-lsmet $(TESTLS)

ASTEX_PDB := 2bsm
ASTEX_NRUN:= 10
ASTEX_POPSIZE := 10
ASTEX_TESTNAME := test_astex
ASTEX_LS := sw
-xmloutput 0

astex: odock
$(BIN_DIR)/$(TARGET) \
-ffile ./input_tsri/search-set-astex/$(ASTEX_PDB)/protein.maps.fld \
-lfile ./input_tsri/search-set-astex/$(ASTEX_PDB)/flex-xray.pdbqt \
-nrun $(ASTEX_NRUN) \
-psize $(ASTEX_POPSIZE) \
-resnam $(ASTEX_TESTNAME) \
-gfpop 1 \
-lsmet $(ASTEX_LS)

# $(BIN_DIR)/$(TARGET) -ffile ./input_tsri/search-set-astex/$(ASTEX_PDB)/protein.maps.fld -lfile ./input_tsri/search-set-astex/$(ASTEX_PDB)/flex-xray.pdbqt -nrun $(ASTEX_NRUN) -psize $(ASTEX_POPSIZE) -resnam $(ASTEX_TESTNAME) -gfpop 1 | tee ./input_tsri/search-set-astex/intrapairs/$(ASTEX_PDB)_intrapair.txt
# ------------------------------------------------------

clean:
rm -f $(BIN_DIR)/* initpop.txt $(HOST_INC_DIR)/performdocking.h $(HOST_SRC_DIR)/performdocking.cpp
36 changes: 9 additions & 27 deletions Makefile.OpenCL
Original file line number Diff line number Diff line change
Expand Up @@ -250,46 +250,28 @@ odock: check-env-all stringify $(SRC)
-o$(BIN_DIR)/$(TARGET) \
$(DEV) $(NWI) $(PIPELINE) $(OPT) $(DD) $(REP) $(KFLAGS)

# Example
# 1ac8: for testing gradients of translation and rotation genes
# 7cpa: for testing gradients of torsion genes (15 torsions)
# 3tmn: for testing gradients of torsion genes (1 torsion)
# ------------------------------------------------------

PDB := 3ce3
NRUN := 100
NGEN := 27000
POPSIZE := 150
TESTNAME := test
TESTLS := sw
PSIZE := 150
RESNAM := test
LSMET := sw

test: odock
$(BIN_DIR)/$(TARGET) \
-ffile ./input/$(PDB)/derived/$(PDB)_protein.maps.fld \
-lfile ./input/$(PDB)/derived/$(PDB)_ligand.pdbqt \
-lsmet $(LSMET) \
-nrun $(NRUN) \
-ngen $(NGEN) \
-psize $(POPSIZE) \
-resnam $(TESTNAME) \
-psize $(PSIZE) \
-resnam $(RESNAM) \
-gfpop 0 \
-lsmet $(TESTLS)

ASTEX_PDB := 2bsm
ASTEX_NRUN:= 10
ASTEX_POPSIZE := 10
ASTEX_TESTNAME := test_astex
ASTEX_LS := sw
-xmloutput 0

astex: odock
$(BIN_DIR)/$(TARGET) \
-ffile ./input_tsri/search-set-astex/$(ASTEX_PDB)/protein.maps.fld \
-lfile ./input_tsri/search-set-astex/$(ASTEX_PDB)/flex-xray.pdbqt \
-nrun $(ASTEX_NRUN) \
-psize $(ASTEX_POPSIZE) \
-resnam $(ASTEX_TESTNAME) \
-gfpop 1 \
-lsmet $(ASTEX_LS)

# $(BIN_DIR)/$(TARGET) -ffile ./input_tsri/search-set-astex/$(ASTEX_PDB)/protein.maps.fld -lfile ./input_tsri/search-set-astex/$(ASTEX_PDB)/flex-xray.pdbqt -nrun $(ASTEX_NRUN) -psize $(ASTEX_POPSIZE) -resnam $(ASTEX_TESTNAME) -gfpop 1 | tee ./input_tsri/search-set-astex/intrapairs/$(ASTEX_PDB)_intrapair.txt
# ------------------------------------------------------

clean:
rm -f $(BIN_DIR)/* initpop.txt $(HOST_INC_DIR)/performdocking.h $(HOST_SRC_DIR)/performdocking.cpp