Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
Update MAX_NUM_OF_LIG_TORSION and MAX_NUM_OF_ATOMS constants
Browse files Browse the repository at this point in the history
  • Loading branch information
ysyecust committed Feb 26, 2024
1 parent dc81760 commit 13ca15a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions unidock/src/cuda/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ void check(T result, char const *const func, const char *const file, int const l
MAX_M_DATA_MI *MAX_M_DATA_MJ *MAX_M_DATA_MK *MAX_NUM_OF_EVERY_M_DATA_ELEMENT

// kernel2 macros
#define MAX_NUM_OF_LIG_TORSION 16
#define MAX_NUM_OF_LIG_TORSION 36
#define MAX_NUM_OF_FLEX_TORSION 1
#define MAX_NUM_OF_RIGID 24
#define MAX_NUM_OF_ATOMS 80
#define MAX_NUM_OF_ATOMS 120
#define SIZE_OF_MOLEC_STRUC \
((3 + 4 + MAX_NUM_OF_LIG_TORSION + MAX_NUM_OF_FLEX_TORSION + 1) * sizeof(float))
#define SIZE_OF_CHANGE_STRUC \
Expand Down Expand Up @@ -96,7 +96,7 @@ static constexpr size_t MAX_THREAD_ = 41700000 ; // modified for vina1.2, to cal
static constexpr size_t MAX_LIGAND_NUM_ = 10250;
};
struct SmallConfig {
static constexpr size_t MAX_NUM_OF_LIG_TORSION_ = 10;
static constexpr size_t MAX_NUM_OF_LIG_TORSION_ = 14;
static constexpr size_t MAX_NUM_OF_FLEX_TORSION_ = 1;
static constexpr size_t MAX_NUM_OF_RIGID_ = 8;
static constexpr size_t MAX_NUM_OF_ATOMS_ = 80;
Expand Down Expand Up @@ -132,7 +132,7 @@ static constexpr size_t MAX_THREAD_ = 41700000 ; // modified for vina1.2, to cal
static constexpr size_t MAX_LIGAND_NUM_ = 10250;
};
struct MediumConfig {
static constexpr size_t MAX_NUM_OF_LIG_TORSION_ = 12;
static constexpr size_t MAX_NUM_OF_LIG_TORSION_ = 18;
static constexpr size_t MAX_NUM_OF_FLEX_TORSION_ = 1;
static constexpr size_t MAX_NUM_OF_RIGID_ = 12;
static constexpr size_t MAX_NUM_OF_ATOMS_ = 80;
Expand Down Expand Up @@ -168,7 +168,7 @@ static constexpr size_t MAX_THREAD_ = 41700000 ; // modified for vina1.2, to cal
static constexpr size_t MAX_LIGAND_NUM_ = 10250;
};
struct LargeConfig {
static constexpr size_t MAX_NUM_OF_LIG_TORSION_ = 14;
static constexpr size_t MAX_NUM_OF_LIG_TORSION_ = 24;
static constexpr size_t MAX_NUM_OF_FLEX_TORSION_ = 1;
static constexpr size_t MAX_NUM_OF_RIGID_ = 14;
static constexpr size_t MAX_NUM_OF_ATOMS_ = 80;
Expand Down Expand Up @@ -204,10 +204,10 @@ static constexpr size_t MAX_THREAD_ = 41700000 ; // modified for vina1.2, to cal
static constexpr size_t MAX_LIGAND_NUM_ = 10250;
};
struct ExtraLargeConfig {
static constexpr size_t MAX_NUM_OF_LIG_TORSION_ = 16;
static constexpr size_t MAX_NUM_OF_LIG_TORSION_ = 36;
static constexpr size_t MAX_NUM_OF_FLEX_TORSION_ = 1;
static constexpr size_t MAX_NUM_OF_RIGID_ = 24;
static constexpr size_t MAX_NUM_OF_ATOMS_ = 100;
static constexpr size_t MAX_NUM_OF_ATOMS_ = 120;
static constexpr size_t SIZE_OF_MOLEC_STRUC_ =
((3 + 4 + MAX_NUM_OF_LIG_TORSION_ + MAX_NUM_OF_FLEX_TORSION_ + 1) * sizeof(float));
static constexpr size_t SIZE_OF_CHANGE_STRUC_ =
Expand Down

0 comments on commit 13ca15a

Please sign in to comment.