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
45cbddce
"vscode:/vscode.git/clone" did not exist on "d17a00e02bc34423728038096d025131d1e99245"
Commit
45cbddce
authored
Nov 12, 2009
by
Mark Friedrichs
Browse files
gpuSetObcSoftcoreParameters was not returning GpuObcGbsaSoftcore reference
parent
1e52c490
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
plugins/freeEnergy/platforms/cuda/src/CudaFreeEnergyKernels.cpp
...s/freeEnergy/platforms/cuda/src/CudaFreeEnergyKernels.cpp
+1
-0
plugins/freeEnergy/platforms/cuda/src/kernels/GpuObcGbsaSoftcore.cpp
...eEnergy/platforms/cuda/src/kernels/GpuObcGbsaSoftcore.cpp
+1
-1
plugins/freeEnergy/platforms/cuda/src/kernels/kCalculateObcGbsaSoftcoreBornSum.cu
...orms/cuda/src/kernels/kCalculateObcGbsaSoftcoreBornSum.cu
+6
-3
No files found.
plugins/freeEnergy/platforms/cuda/src/CudaFreeEnergyKernels.cpp
View file @
45cbddce
...
@@ -527,6 +527,7 @@ void CudaFreeEnergyCalcGBSAOBCSoftcoreForceKernel::executeForces(ContextImpl& co
...
@@ -527,6 +527,7 @@ void CudaFreeEnergyCalcGBSAOBCSoftcoreForceKernel::executeForces(ContextImpl& co
// ---------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
_gpuContext
*
gpu
=
data
.
gpu
;
_gpuContext
*
gpu
=
data
.
gpu
;
int
debug
=
1
;
int
debug
=
1
;
static
int
call
=
0
;
static
int
call
=
0
;
...
...
plugins/freeEnergy/platforms/cuda/src/kernels/GpuObcGbsaSoftcore.cpp
View file @
45cbddce
...
@@ -40,7 +40,7 @@ GpuObcGbsaSoftcore::~GpuObcGbsaSoftcore( ){
...
@@ -40,7 +40,7 @@ GpuObcGbsaSoftcore::~GpuObcGbsaSoftcore( ){
// initialize NonPolarScalingFactors array
// initialize NonPolarScalingFactors array
int
GpuObcGbsaSoftcore
::
initializeNonPolarScalingFactors
(
unsigned
int
numberOfParticles
){
int
GpuObcGbsaSoftcore
::
initializeNonPolarScalingFactors
(
unsigned
int
numberOfParticles
){
_psNonPolarScalingFactors
=
new
CUDAStream
<
float
>
(
numberOfParticles
,
1
,
"ObcSoftcoreNonPolarScaling
Factors
"
);
_psNonPolarScalingFactors
=
new
CUDAStream
<
float
>
(
numberOfParticles
,
1
,
"ObcSoftcoreNonPolarScaling"
);
for
(
unsigned
int
ii
=
0
;
ii
<
numberOfParticles
;
ii
++
){
for
(
unsigned
int
ii
=
0
;
ii
<
numberOfParticles
;
ii
++
){
(
*
_psNonPolarScalingFactors
)[
ii
]
=
1.0
f
;
(
*
_psNonPolarScalingFactors
)[
ii
]
=
1.0
f
;
}
}
...
...
plugins/freeEnergy/platforms/cuda/src/kernels/kCalculateObcGbsaSoftcoreBornSum.cu
View file @
45cbddce
...
@@ -244,9 +244,9 @@ void kReduceObcGbsaBornSum(gpuContext gpu)
...
@@ -244,9 +244,9 @@ void kReduceObcGbsaBornSum(gpuContext gpu)
*/
*/
extern
"C"
extern
"C"
void
gpuSetObcSoftcoreParameters
(
gpuContext
gpu
,
float
innerDielectric
,
float
solventDielectric
,
float
nonPolarPrefactor
,
GpuObcGbsaSoftcore
*
gpuSetObcSoftcoreParameters
(
gpuContext
gpu
,
float
innerDielectric
,
float
solventDielectric
,
float
nonPolarPrefactor
,
const
std
::
vector
<
float
>&
radius
,
const
std
::
vector
<
float
>&
scale
,
const
std
::
vector
<
float
>&
radius
,
const
std
::
vector
<
float
>&
scale
,
const
std
::
vector
<
float
>&
charge
,
const
std
::
vector
<
float
>&
nonPolarScalingFactors
)
const
std
::
vector
<
float
>&
charge
,
const
std
::
vector
<
float
>&
nonPolarScalingFactors
)
{
{
// ---------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------
...
@@ -264,6 +264,7 @@ void gpuSetObcSoftcoreParameters(gpuContext gpu, float innerDielectric, float so
...
@@ -264,6 +264,7 @@ void gpuSetObcSoftcoreParameters(gpuContext gpu, float innerDielectric, float so
// gpu->bIncludeGBSA = true;
// gpu->bIncludeGBSA = true;
GpuObcGbsaSoftcore
*
gpuObcGbsaSoftcore
=
new
GpuObcGbsaSoftcore
();
GpuObcGbsaSoftcore
*
gpuObcGbsaSoftcore
=
new
GpuObcGbsaSoftcore
();
gpuObcGbsaSoftcore
->
initializeNonPolarScalingFactors
(
gpu
->
sim
.
paddedNumberOfAtoms
);
gpuObcGbsaSoftcore
->
initializeNonPolarScalingFactors
(
gpu
->
sim
.
paddedNumberOfAtoms
);
gpu
->
sim
.
surfaceAreaFactor
=
-
6.0
f
*
PI
*
4.0
f
*
nonPolarPrefactor
*
1000.0
f
*
0.4184
f
;
gpu
->
sim
.
surfaceAreaFactor
=
-
6.0
f
*
PI
*
4.0
f
*
nonPolarPrefactor
*
1000.0
f
*
0.4184
f
;
for
(
unsigned
int
i
=
0
;
i
<
atoms
;
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
atoms
;
i
++
)
{
{
...
@@ -301,6 +302,8 @@ void gpuSetObcSoftcoreParameters(gpuContext gpu, float innerDielectric, float so
...
@@ -301,6 +302,8 @@ void gpuSetObcSoftcoreParameters(gpuContext gpu, float innerDielectric, float so
gpu
->
psPosq4
->
Upload
();
gpu
->
psPosq4
->
Upload
();
gpu
->
sim
.
preFactor
=
2.0
f
*
electricConstant
*
((
1.0
f
/
innerDielectric
)
-
(
1.0
f
/
solventDielectric
))
*
gpu
->
sim
.
forceConversionFactor
;
gpu
->
sim
.
preFactor
=
2.0
f
*
electricConstant
*
((
1.0
f
/
innerDielectric
)
-
(
1.0
f
/
solventDielectric
))
*
gpu
->
sim
.
forceConversionFactor
;
return
gpuObcGbsaSoftcore
;
}
}
void
kCalculateObcGbsaSoftcoreBornSum
(
gpuContext
gpu
)
void
kCalculateObcGbsaSoftcoreBornSum
(
gpuContext
gpu
)
...
...
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