Skip to content

Commit

Permalink
updated preamble and changed name to AutoDock-GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomart committed Jul 12, 2019
1 parent 1954fb7 commit 89c9a2e
Show file tree
Hide file tree
Showing 54 changed files with 33 additions and 1,040 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
# OCLADock specific files # AutoDock-GPU specific files
initpop.txt initpop.txt
*.dlg *.dlg
*.xml *.xml
Expand Down
8 changes: 6 additions & 2 deletions LICENSE
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -290,8 +290,12 @@ to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found. the "copyright" line and a pointer to where the full notice is found.


ocladock AutoDock-GPU, an OpenCL implementation of AutoDock 4.2 running a Lamarckian Genetic Algorithm
Copyright (C) 2017 docking Copyright (C) 2017 TU Darmstadt, Embedded Systems and Applications Group, Germany. All rights reserved.
For some of the code, Copyright (C) 2019 Computational Structural Biology Center, the Scripps Research Institute.

AutoDock is a Trade Mark of the Scripps Research Institute.



This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ K_NAMES=-DK1=$(K1_NAME) -DK2=$(K2_NAME) -DK3=$(K3_NAME) -DK4=$(K4_NAME) -DK5=$(K
# Kernel flags # Kernel flags
KFLAGS=-DKRNL_SOURCE=$(KRNL_DIR)/$(KRNL_MAIN) -DKRNL_DIRECTORY=$(KRNL_DIR) -DKCMN_DIRECTORY=$(KCMN_DIR) $(K_NAMES) KFLAGS=-DKRNL_SOURCE=$(KRNL_DIR)/$(KRNL_MAIN) -DKRNL_DIRECTORY=$(KRNL_DIR) -DKCMN_DIRECTORY=$(KCMN_DIR) $(K_NAMES)


TARGET := ocladock TARGET := autodock
ifeq ($(DEVICE), CPU) ifeq ($(DEVICE), CPU)
TARGET:=$(TARGET)_cpu TARGET:=$(TARGET)_cpu
else ifeq ($(DEVICE), GPU) else ifeq ($(DEVICE), GPU)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ make DEVICE=<TYPE> NUMWI=<NWI>
| `<NWI>` | OpenCL work-group size | `16`, `32`, `64`, `128`, `256` | | `<NWI>` | OpenCL work-group size | `16`, `32`, `64`, `128`, `256` |




After successful compilation, the host binary **ocladock_&lt;type&gt;_&lt;N&gt;wi** is placed under [bin](./bin). After successful compilation, the host binary **autodock_&lt;type&gt;_&lt;N&gt;wi** is placed under [bin](./bin).


| Binary-name portion | Description | Values | | Binary-name portion | Description | Values |
|:-------------------:|:----------------------:|:------------------------------:| |:-------------------:|:----------------------:|:------------------------------:|
Expand All @@ -41,7 +41,7 @@ After successful compilation, the host binary **ocladock_&lt;type&gt;_&lt;N&gt;w


## Basic command ## Basic command
```zsh ```zsh
./bin/ocladock_<type>_<N>wi \ ./bin/autodock_<type>_<N>wi \
-ffile <protein>.maps.fld \ -ffile <protein>.maps.fld \
-lfile <ligand>.pdbqt \ -lfile <ligand>.pdbqt \
-nrun <nruns> -nrun <nruns>
Expand All @@ -54,7 +54,7 @@ After successful compilation, the host binary **ocladock_&lt;type&gt;_&lt;N&gt;w


## Example ## Example
```zsh ```zsh
./bin/ocladock_gpu_64wi \ ./bin/autodock_gpu_64wi \
-ffile ./input/1stp/derived/1stp_protein.maps.fld \ -ffile ./input/1stp/derived/1stp_protein.maps.fld \
-lfile ./input/1stp/derived/1stp_ligand.pdbqt \ -lfile ./input/1stp/derived/1stp_ligand.pdbqt \
-nrun 10 -nrun 10
Expand Down
22 changes: 0 additions & 22 deletions common/calcenergy_basic.h
Original file line number Original file line Diff line number Diff line change
@@ -1,25 +1,3 @@
/*
OCLADock, an OpenCL implementation of AutoDock 4.2 running a Lamarckian Genetic Algorithm
Copyright (C) 2017 TU Darmstadt, Embedded Systems and Applications Group, Germany. All rights reserved.
AutoDock is a Trade Mark of the Scripps Research Institute.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/




#ifndef CALCENERGY_BASIC_H_ #ifndef CALCENERGY_BASIC_H_
Expand Down
22 changes: 0 additions & 22 deletions common/defines.h
Original file line number Original file line Diff line number Diff line change
@@ -1,25 +1,3 @@
/*
OCLADock, an OpenCL implementation of AutoDock 4.2 running a Lamarckian Genetic Algorithm
Copyright (C) 2017 TU Darmstadt, Embedded Systems and Applications Group, Germany. All rights reserved.
AutoDock is a Trade Mark of the Scripps Research Institute.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/




#ifndef DEFINES_H_ #ifndef DEFINES_H_
Expand Down
22 changes: 0 additions & 22 deletions device/auxiliary_genetic.cl
Original file line number Original file line Diff line number Diff line change
@@ -1,25 +1,3 @@
/*
OCLADock, an OpenCL implementation of AutoDock 4.2 running a Lamarckian Genetic Algorithm
Copyright (C) 2017 TU Darmstadt, Embedded Systems and Applications Group, Germany. All rights reserved.
AutoDock is a Trade Mark of the Scripps Research Institute.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/




// ------------------------------------------------------- // -------------------------------------------------------
Expand Down
26 changes: 2 additions & 24 deletions device/calcMergedEneGra.cl
Original file line number Original file line Diff line number Diff line change
@@ -1,25 +1,3 @@
/*
OCLADock, an OpenCL implementation of AutoDock 4.2 running a Lamarckian Genetic Algorithm
Copyright (C) 2017 TU Darmstadt, Embedded Systems and Applications Group, Germany. All rights reserved.
AutoDock is a Trade Mark of the Scripps Research Institute.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/


// IMPORTANT: The following block contains definitions // IMPORTANT: The following block contains definitions
// already made either in energy or gradient calculation files. // already made either in energy or gradient calculation files.
Expand Down Expand Up @@ -508,7 +486,7 @@ partial_interE[get_local_id(0)] += TRILININTERPOL(cube, weights);


// ------------------------------------------------------------------- // -------------------------------------------------------------------
// Deltas dx, dy, dz are already normalized // Deltas dx, dy, dz are already normalized
// (by host/src/getparameters.cpp) in OCLaDock. // (by host/src/getparameters.cpp) in AutoDock-GPU.
// The correspondance between vertices in xyz axes is: // The correspondance between vertices in xyz axes is:
// 0, 1, 2, 3, 4, 5, 6, 7 and 000, 100, 010, 001, 101, 110, 011, 111 // 0, 1, 2, 3, 4, 5, 6, 7 and 000, 100, 010, 001, 101, 110, 011, 111
// ------------------------------------------------------------------- // -------------------------------------------------------------------
Expand Down Expand Up @@ -1039,7 +1017,7 @@ barrier(CLK_LOCAL_MEM_FENCE);
// Scaling gradient for translational genes as // Scaling gradient for translational genes as
// their corresponding gradients were calculated in the space // their corresponding gradients were calculated in the space
// where these genes are in Angstrom, // where these genes are in Angstrom,
// but OCLaDock translational genes are within in grids // but AutoDock-GPU translational genes are within in grids
gradient_genotype[0] *= dockpars_grid_spacing; gradient_genotype[0] *= dockpars_grid_spacing;
gradient_genotype[1] *= dockpars_grid_spacing; gradient_genotype[1] *= dockpars_grid_spacing;
gradient_genotype[2] *= dockpars_grid_spacing; gradient_genotype[2] *= dockpars_grid_spacing;
Expand Down
22 changes: 0 additions & 22 deletions device/calcenergy.cl
Original file line number Original file line Diff line number Diff line change
@@ -1,25 +1,3 @@
/*
OCLADock, an OpenCL implementation of AutoDock 4.2 running a Lamarckian Genetic Algorithm
Copyright (C) 2017 TU Darmstadt, Embedded Systems and Applications Group, Germany. All rights reserved.
AutoDock is a Trade Mark of the Scripps Research Institute.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/


//#define DEBUG_ENERGY_KERNEL //#define DEBUG_ENERGY_KERNEL


Expand Down
26 changes: 2 additions & 24 deletions device/calcgradient.cl
Original file line number Original file line Diff line number Diff line change
@@ -1,25 +1,3 @@
/*
OCLADock, an OpenCL implementation of AutoDock 4.2 running a Lamarckian Genetic Algorithm
Copyright (C) 2017 TU Darmstadt, Embedded Systems and Applications Group, Germany. All rights reserved.
AutoDock is a Trade Mark of the Scripps Research Institute.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/


/* /*
#include "calcenergy_basic.h" #include "calcenergy_basic.h"
Expand Down Expand Up @@ -434,7 +412,7 @@ void gpu_calc_gradient(


// ------------------------------------------------------------------- // -------------------------------------------------------------------
// Deltas dx, dy, dz are already normalized // Deltas dx, dy, dz are already normalized
// (by host/src/getparameters.cpp) in OCLaDock. // (by host/src/getparameters.cpp) in AutoDock-GPU.
// The correspondance between vertices in xyz axes is: // The correspondance between vertices in xyz axes is:
// 0, 1, 2, 3, 4, 5, 6, 7 and 000, 100, 010, 001, 101, 110, 011, 111 // 0, 1, 2, 3, 4, 5, 6, 7 and 000, 100, 010, 001, 101, 110, 011, 111
// ------------------------------------------------------------------- // -------------------------------------------------------------------
Expand Down Expand Up @@ -851,7 +829,7 @@ void gpu_calc_gradient(
// Scaling gradient for translational genes as // Scaling gradient for translational genes as
// their corresponding gradients were calculated in the space // their corresponding gradients were calculated in the space
// where these genes are in Angstrom, // where these genes are in Angstrom,
// but OCLaDock translational genes are within in grids // but AutoDock-GPU translational genes are within in grids
gradient_genotype[0] *= dockpars_grid_spacing; gradient_genotype[0] *= dockpars_grid_spacing;
gradient_genotype[1] *= dockpars_grid_spacing; gradient_genotype[1] *= dockpars_grid_spacing;
gradient_genotype[2] *= dockpars_grid_spacing; gradient_genotype[2] *= dockpars_grid_spacing;
Expand Down
22 changes: 0 additions & 22 deletions device/kernel1.cl
Original file line number Original file line Diff line number Diff line change
@@ -1,25 +1,3 @@
/*
OCLADock, an OpenCL implementation of AutoDock 4.2 running a Lamarckian Genetic Algorithm
Copyright (C) 2017 TU Darmstadt, Embedded Systems and Applications Group, Germany. All rights reserved.
AutoDock is a Trade Mark of the Scripps Research Institute.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/


//#define DEBUG_ENERGY_KERNEL1 //#define DEBUG_ENERGY_KERNEL1


Expand Down
22 changes: 0 additions & 22 deletions device/kernel2.cl
Original file line number Original file line Diff line number Diff line change
@@ -1,25 +1,3 @@
/*
OCLADock, an OpenCL implementation of AutoDock 4.2 running a Lamarckian Genetic Algorithm
Copyright (C) 2017 TU Darmstadt, Embedded Systems and Applications Group, Germany. All rights reserved.
AutoDock is a Trade Mark of the Scripps Research Institute.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/




__kernel void __attribute__ ((reqd_work_group_size(NUM_OF_THREADS_PER_BLOCK,1,1))) __kernel void __attribute__ ((reqd_work_group_size(NUM_OF_THREADS_PER_BLOCK,1,1)))
Expand Down
22 changes: 0 additions & 22 deletions device/kernel3.cl
Original file line number Original file line Diff line number Diff line change
@@ -1,25 +1,3 @@
/*
OCLADock, an OpenCL implementation of AutoDock 4.2 running a Lamarckian Genetic Algorithm
Copyright (C) 2017 TU Darmstadt, Embedded Systems and Applications Group, Germany. All rights reserved.
AutoDock is a Trade Mark of the Scripps Research Institute.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/




__kernel void __attribute__ ((reqd_work_group_size(NUM_OF_THREADS_PER_BLOCK,1,1))) __kernel void __attribute__ ((reqd_work_group_size(NUM_OF_THREADS_PER_BLOCK,1,1)))
Expand Down
22 changes: 0 additions & 22 deletions device/kernel4.cl
Original file line number Original file line Diff line number Diff line change
@@ -1,25 +1,3 @@
/*
OCLADock, an OpenCL implementation of AutoDock 4.2 running a Lamarckian Genetic Algorithm
Copyright (C) 2017 TU Darmstadt, Embedded Systems and Applications Group, Germany. All rights reserved.
AutoDock is a Trade Mark of the Scripps Research Institute.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/


//#define DEBUG_ENERGY_KERNEL4 //#define DEBUG_ENERGY_KERNEL4


Expand Down
2 changes: 1 addition & 1 deletion device/kernel_sd.cl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ gradient_minSD(
do { do {
#if 0 #if 0
// Specific input genotypes for a ligand with no rotatable bonds (1ac8). // Specific input genotypes for a ligand with no rotatable bonds (1ac8).
// Translation genes must be expressed in grids in OCLADock (genotype [0|1|2]). // Translation genes must be expressed in grids in AutoDock-GPU (genotype [0|1|2]).
// However, for testing purposes, // However, for testing purposes,
// we start using translation values in real space (Angstrom): {31.79575, 93.743875, 47.699875} // we start using translation values in real space (Angstrom): {31.79575, 93.743875, 47.699875}
// Rotation genes are expresed in the Shoemake space: genotype [3|4|5] // Rotation genes are expresed in the Shoemake space: genotype [3|4|5]
Expand Down
4 changes: 2 additions & 2 deletions doc/readme/readme_users.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ For more details, go to the [developers section](readme_developers.md#to-keep-in


## Basic ## Basic
```zsh ```zsh
./bin/ocladock_<type>_<N>wi -ffile <protein>.maps.fld -lfile <ligand>.pdbqt -nrun <nruns> ./bin/autodock_<type>_<N>wi -ffile <protein>.maps.fld -lfile <ligand>.pdbqt -nrun <nruns>
``` ```
| Mandatory options | Description | Value | | Mandatory options | Description | Value |
|:-----------------:|:-------------:|:-------------------------:| |:-----------------:|:-------------:|:-------------------------:|
Expand All @@ -46,7 +46,7 @@ For more details, go to the [developers section](readme_developers.md#to-keep-in


## Example ## Example
```zsh ```zsh
./bin/ocladock_gpu_64wi -ffile ./input/1stp/derived/1stp_protein.maps.fld -lfile ./input/1stp/derived/1stp_ligand.pdbqt -nrun 10 ./bin/autodock_gpu_64wi -ffile ./input/1stp/derived/1stp_protein.maps.fld -lfile ./input/1stp/derived/1stp_ligand.pdbqt -nrun 10


Kernel source file: ./device/calcenergy.cl Kernel source file: ./device/calcenergy.cl
Kernel compilation flags: -I ./device -I ./common -DN64WI Kernel compilation flags: -I ./device -I ./common -DN64WI
Expand Down
Loading

0 comments on commit 89c9a2e

Please sign in to comment.