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
596be80f
Commit
596be80f
authored
Jan 23, 2019
by
Peter Eastman
Browse files
Fixed error using tabulated functions with a CustomGBForce
parent
30592159
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
platforms/cuda/src/CudaKernels.cpp
platforms/cuda/src/CudaKernels.cpp
+2
-0
platforms/opencl/src/OpenCLKernels.cpp
platforms/opencl/src/OpenCLKernels.cpp
+2
-0
No files found.
platforms/cuda/src/CudaKernels.cpp
View file @
596be80f
...
...
@@ -4100,6 +4100,8 @@ double CudaCalcCustomGBForceKernel::execute(ContextImpl& context, bool includeFo
for
(
auto
&
buffer
:
d
->
getBuffers
())
gradientChainRuleArgs
.
push_back
(
&
buffer
.
getMemory
());
}
for
(
auto
&
function
:
tabulatedFunctions
)
gradientChainRuleArgs
.
push_back
(
&
function
.
getDevicePointer
());
}
}
if
(
globals
.
isInitialized
())
{
...
...
platforms/opencl/src/OpenCLKernels.cpp
View file @
596be80f
...
...
@@ -4365,6 +4365,8 @@ double OpenCLCalcCustomGBForceKernel::execute(ContextImpl& context, bool include
for (auto& buffer : d->getBuffers())
gradientChainRuleKernel.setArg<cl::Memory>(index++, buffer.getMemory());
}
for (auto& function : tabulatedFunctions)
gradientChainRuleKernel.setArg<cl::Buffer>(index++, function.getDeviceBuffer());
}
}
if (globals.isInitialized()) {
...
...
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