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
1e37d91b
Commit
1e37d91b
authored
Jul 07, 2010
by
Peter Eastman
Browse files
Workaround for bug in Nvidia's handling of constant memory
parent
e3142025
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
platforms/opencl/src/OpenCLKernels.cpp
platforms/opencl/src/OpenCLKernels.cpp
+2
-2
No files found.
platforms/opencl/src/OpenCLKernels.cpp
View file @
1e37d91b
...
...
@@ -2845,7 +2845,7 @@ void OpenCLCalcCustomHbondForceKernel::initialize(const System& system, const Cu
if
(
force
.
getNumFunctions
()
>
0
)
{
tabulatedFunctionParams
=
new
OpenCLArray
<
mm_float4
>
(
cl
,
tabulatedFunctionParamsVec
.
size
(),
"tabulatedFunctionParameters"
,
false
,
CL_MEM_READ_ONLY
);
tabulatedFunctionParams
->
upload
(
tabulatedFunctionParamsVec
);
tableArgs
<<
", __
constant
float4* functionParams"
;
tableArgs
<<
", __
global
float4* functionParams"
;
}
// Record information about parameters.
...
...
@@ -2947,7 +2947,7 @@ void OpenCLCalcCustomHbondForceKernel::initialize(const System& system, const Cu
// Next it needs to load parameters from global memory.
if
(
force
.
getNumGlobalParameters
()
>
0
)
extraArgs
<<
", __
constant
float* globals"
;
extraArgs
<<
", __
global
float* globals"
;
for
(
int
i
=
0
;
i
<
(
int
)
donorParams
->
getBuffers
().
size
();
i
++
)
{
const
OpenCLNonbondedUtilities
::
ParameterInfo
&
buffer
=
donorParams
->
getBuffers
()[
i
];
extraArgs
<<
", __global "
+
buffer
.
getType
()
+
"* donor"
+
buffer
.
getName
();
...
...
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