Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
7ed51ce4
Commit
7ed51ce4
authored
Dec 17, 2008
by
Mark Friedrichs
Browse files
Bonded forces ok
parent
08c2e027
Changes
24
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
256 additions
and
1721 deletions
+256
-1721
platforms/brook/src/OpenMMBrookInterface.h
platforms/brook/src/OpenMMBrookInterface.h
+36
-4
platforms/brook/src/gpu/kforce_CDLJ.br
platforms/brook/src/gpu/kforce_CDLJ.br
+192
-1716
platforms/brook/src/gpu/kinvmap_gather.br
platforms/brook/src/gpu/kinvmap_gather.br
+19
-1
platforms/brook/src/gpu/kinvmap_gather.h
platforms/brook/src/gpu/kinvmap_gather.h
+9
-0
No files found.
platforms/brook/src/OpenMMBrookInterface.h
View file @
7ed51ce4
...
...
@@ -99,6 +99,17 @@ class OpenMMBrookInterface {
int
getNumberOfParticles
(
void
)
const
;
/**
* Set number of particles
*
* @param numberOfParticles number of particles
*
* @return DefaultReturnValue
*
*/
int
setNumberOfParticles
(
int
numberOfParticles
);
/**
* Get particle stream width
*
...
...
@@ -166,10 +177,13 @@ class OpenMMBrookInterface {
* Compute energy
*
* @param context OpenMMContextImpl context
* @param system system reference
*
* @return potential energy
*
*/
double
computeEnergy
(
OpenMMContextImpl
&
context
);
double
computeEnergy
(
OpenMMContextImpl
&
context
,
System
&
system
);
/**
* Set trigger Force Kernel
...
...
@@ -207,6 +221,24 @@ class OpenMMBrookInterface {
void
*
getTriggerEnergyKernel
(
void
)
const
;
/**
* Get BrookNonBonded reference
*
* @return BrookNonBonded reference
*
*/
BrookNonBonded
&
getBrookNonBonded
(
void
);
/**
* Get BrookGbsa reference
*
* @return BrookGbsa reference
*
*/
BrookGbsa
&
getBrookGbsa
(
void
);
/**
* Get BrookBondParameters for harmonic bond force
*
...
...
@@ -392,9 +424,9 @@ class OpenMMBrookInterface {
// Brook bonded, nonbonded, Gbsa
BrookBonded
*
_brookBonded
;
BrookNonBonded
*
_brookNonBonded
;
BrookGbsa
*
_brookGbsa
;
BrookBonded
_brookBonded
;
BrookNonBonded
_brookNonBonded
;
BrookGbsa
_brookGbsa
;
void
*
_triggerForceKernel
;
void
*
_triggerEnergyKernel
;
...
...
platforms/brook/src/gpu/kforce_CDLJ.br
View file @
7ed51ce4
This diff is collapsed.
Click to expand it.
platforms/brook/src/gpu/kinvmap_gather.br
View file @
7ed51ce4
...
...
@@ -304,7 +304,6 @@ kernel void kinvmap_gather3_4(
outforce += do_gather_nobranch( strwidth, invmap4_4, forces4 );
}
//Takes three + five inverse maps
kernel void kinvmap_gather3_5(
float strwidth, //stream width of the dihedral forces
...
...
@@ -337,6 +336,25 @@ kernel void kinvmap_gather3_5(
}
//Takes one + one inverse maps
kernel void kinvmap_gather1_1(
float strwidth, //stream width of the dihedral forces
float4 invmap3_1[][], //indices into the dihedral forces
float3 forces3[][], //dihedral forces
float4 invmap5_1[][], //indices into the dihedral forces
float3 forces5[][], //dihedral forces
float3 inforce<>, //particle forces before
out float3 outforce<> //particle forces after
)
{
float2 idx = indexof(outforce);
outforce = inforce;
outforce += do_gather_nobranch( strwidth, invmap3_1[idx], forces3 );
outforce += do_gather_nobranch( strwidth, invmap5_1[idx], forces5 );
}
//Takes five + two inverse maps
kernel void kinvmap_gather5_2(
float strwidth, //stream width of the dihedral forces
...
...
platforms/brook/src/gpu/kinvmap_gather.h
View file @
7ed51ce4
...
...
@@ -121,6 +121,15 @@ void kinvmap_gather3_5 (const float strwidth,
::
brook
::
stream
outforce
);
void
kinvmap_gather1_1
(
const
float
strwidth
,
::
brook
::
stream
invmap3_1
,
::
brook
::
stream
forces3
,
::
brook
::
stream
invmap5_1
,
::
brook
::
stream
forces5
,
::
brook
::
stream
inforce
,
::
brook
::
stream
outforce
);
void
kinvmap_gather5_2
(
const
float
strwidth
,
::
brook
::
stream
invmap5_1
,
::
brook
::
stream
invmap5_2
,
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment