Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
97 changed files
with
36,533 additions
and
1,253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,6 @@ build*/* | |
|
||
# vi | ||
*.swp | ||
|
||
# gdb | ||
*.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
echo ################################################################ | ||
echo Joint Amber-CHARMM Benchmark on Dihydrofolate Reductase in Water | ||
echo 23558 Atoms, 62.23 Ang Cube, 9 Ang Nonbond Cutoffs, 64x64x64 PME | ||
echo ################################################################ | ||
|
||
parameters ../params/amoebabio09 | ||
neighbor-list | ||
a-axis 62.23 | ||
vdw-cutoff 12.0 | ||
ewald | ||
ewald-cutoff 7.0 | ||
pme-grid 64 64 64 | ||
pme-order 5 | ||
polarization MUTUAL | ||
polar-eps 0.00001 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef TINKER_ACC_ADD_H_ | ||
#define TINKER_ACC_ADD_H_ | ||
|
||
#include "macro.h" | ||
#include <type_traits> | ||
|
||
TINKER_NAMESPACE_BEGIN | ||
/** | ||
* @brief | ||
* add @c value to @c buffer[@c offset] atomically | ||
*/ | ||
#pragma acc routine seq | ||
template <class T> | ||
inline void atomic_add_value(T value, T* buffer, int offset = 0) { | ||
#pragma acc atomic update | ||
buffer[offset] += value; | ||
} | ||
|
||
/** | ||
* @brief | ||
* add @c value to @c buffer[@c offset] atomically via fixed-point arithmetic | ||
* | ||
* @tparam T | ||
* must be a floating point type | ||
*/ | ||
#pragma acc routine seq | ||
template < | ||
class T, | ||
class = typename std::enable_if<std::is_floating_point<T>::value>::type> | ||
inline void atomic_add_value(T value, unsigned long long* buffer, | ||
int offset = 0) { | ||
#pragma acc atomic update | ||
buffer[offset] += static_cast<unsigned long long>( | ||
static_cast<long long>(value * fixed_point)); | ||
} | ||
TINKER_NAMESPACE_END | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef TINKER_ACC_IMAGE_H_ | ||
#define TINKER_ACC_IMAGE_H_ | ||
|
||
#include "box.h" | ||
|
||
TINKER_NAMESPACE_BEGIN | ||
/** | ||
* @brief | ||
* apply periodic boundary conditions to displacement (@c xr, @c yr, @c zr) and | ||
* preserve the correct signs | ||
*/ | ||
#pragma acc routine seq | ||
void image(real& __restrict__ xr, real& __restrict__ yr, real& __restrict__ zr, | ||
const Box* __restrict__ pb); | ||
|
||
/** | ||
* @brief | ||
* apply periodic boundary conditions to displacement (@c xr, @c yr, @c zr) but | ||
* only guarantee the lengths are correct | ||
*/ | ||
#pragma acc routine seq | ||
void imagen(real& __restrict__ xr, real& __restrict__ yr, real& __restrict__ zr, | ||
const Box* __restrict__ pb); | ||
TINKER_NAMESPACE_END | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef TINKER_ACC_MATHFUNC_H_ | ||
#define TINKER_ACC_MATHFUNC_H_ | ||
|
||
#include "mathfunc.h" | ||
|
||
#pragma acc routine(abs) seq | ||
|
||
#pragma acc routine(sqrt) seq | ||
#pragma acc routine(exp) seq | ||
#pragma acc routine(floor) seq | ||
#pragma acc routine(fabs) seq | ||
#pragma acc routine(pow) seq | ||
#pragma acc routine(cos) seq | ||
#pragma acc routine(sin) seq | ||
#pragma acc routine(acos) seq | ||
#pragma acc routine(asin) seq | ||
#pragma acc routine(erf) seq | ||
#pragma acc routine(erfc) seq | ||
#pragma acc routine(fmin) seq | ||
#pragma acc routine(fmax) seq | ||
#pragma acc routine(copysign) seq | ||
|
||
#pragma acc routine(sqrtf) seq | ||
#pragma acc routine(expf) seq | ||
#pragma acc routine(floorf) seq | ||
#pragma acc routine(fabsf) seq | ||
#pragma acc routine(powf) seq | ||
#pragma acc routine(cosf) seq | ||
#pragma acc routine(sinf) seq | ||
#pragma acc routine(acosf) seq | ||
#pragma acc routine(asinf) seq | ||
#pragma acc routine(erff) seq | ||
#pragma acc routine(erfcf) seq | ||
#pragma acc routine(fminf) seq | ||
#pragma acc routine(fmaxf) seq | ||
#pragma acc routine(copysignf) seq | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#ifndef TINKER_ACC_SWITCH_H_ | ||
#define TINKER_ACC_SWITCH_H_ | ||
|
||
#include "macro.h" | ||
|
||
TINKER_NAMESPACE_BEGIN | ||
/** | ||
* @brief | ||
* second order smooth step function | ||
* @f[ | ||
* f: [cut,off]\rightarrow[1,0] | ||
* @f] | ||
* | ||
* deriving from | ||
* @f[ S_2: [0,1]\rightarrow[0,1] @f] | ||
* @f[ S_2(x) = 6 x^5 - 15 x^4 + 10 x^3 @f] | ||
* | ||
* @param[in] rik | ||
* distance | ||
* | ||
* @param[in] cut | ||
* distance at which switching of the potential begins | ||
* | ||
* @param[out] off | ||
* distance at which the potential energy goes to zero | ||
* | ||
* @param[out] taper | ||
* @f$ f @f$ value | ||
* | ||
* @param[out] dtaper | ||
* @f$ df/dx @f$ value | ||
* | ||
* @tparam DO_DTAPER | ||
* if @c false, @c dtaper will not be calculated | ||
*/ | ||
#pragma acc routine seq | ||
template <int DO_DTAPER> | ||
inline void switch_taper5(real rik, real cut, real off, | ||
real& __restrict__ taper, real& __restrict__ dtaper) { | ||
real _1_ab = REAL_RECIP(cut - off); | ||
real x = (rik - off) * _1_ab; | ||
real x2 = x * x; | ||
real x3 = x2 * x; | ||
taper = x3 * (6 * x2 - 15 * x + 10); | ||
if_constexpr(DO_DTAPER) { dtaper = 30 * REAL_SQ(x * (1 - x)) * _1_ab; } | ||
} | ||
TINKER_NAMESPACE_END | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.