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
06a98e93
"platforms/reference/tests/TestReferenceRGForce.cpp" did not exist on "f66c9b61847cfc8ba61e78999139864933c8bc0b"
Commit
06a98e93
authored
Oct 09, 2010
by
Peter Eastman
Browse files
Continuing efforts to fix compilation errors under Windows
parent
b8e12104
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
17 deletions
+21
-17
platforms/cuda/src/CudaForceInfo.h
platforms/cuda/src/CudaForceInfo.h
+7
-5
platforms/cuda/src/kernels/cudaCompact.cu
platforms/cuda/src/kernels/cudaCompact.cu
+3
-3
platforms/cuda/src/kernels/cudaCompact.h
platforms/cuda/src/kernels/cudaCompact.h
+5
-3
platforms/cuda/src/kernels/kCalculateObcGbsaBornSum.cu
platforms/cuda/src/kernels/kCalculateObcGbsaBornSum.cu
+2
-2
platforms/cuda/src/kernels/kCalculateObcGbsaForces2.cu
platforms/cuda/src/kernels/kCalculateObcGbsaForces2.cu
+1
-1
platforms/cuda/src/kernels/kForces.cu
platforms/cuda/src/kernels/kForces.cu
+3
-3
No files found.
platforms/cuda/src/CudaForceInfo.h
View file @
06a98e93
...
@@ -37,26 +37,28 @@ namespace OpenMM {
...
@@ -37,26 +37,28 @@ namespace OpenMM {
* about the behavior and requirements of that force.
* about the behavior and requirements of that force.
*/
*/
class
OPENMM_EXPORT
CudaForceInfo
{
class
CudaForceInfo
{
public:
public:
CudaForceInfo
()
{
CudaForceInfo
()
{
}
}
virtual
~
CudaForceInfo
()
{
}
/**
/**
* Get whether or not two particles have identical force field parameters.
* Get whether or not two particles have identical force field parameters.
*/
*/
virtual
bool
areParticlesIdentical
(
int
particle1
,
int
particle2
);
virtual
OPENMM_EXPORT
bool
areParticlesIdentical
(
int
particle1
,
int
particle2
);
/**
/**
* Get the number of particle groups defined by this force.
* Get the number of particle groups defined by this force.
*/
*/
virtual
int
getNumParticleGroups
();
virtual
OPENMM_EXPORT
int
getNumParticleGroups
();
/**
/**
* Get the list of particles in a particular group.
* Get the list of particles in a particular group.
*/
*/
virtual
void
getParticlesInGroup
(
int
index
,
std
::
vector
<
int
>&
particles
);
virtual
OPENMM_EXPORT
void
getParticlesInGroup
(
int
index
,
std
::
vector
<
int
>&
particles
);
/**
/**
* Get whether two particle groups are identical.
* Get whether two particle groups are identical.
*/
*/
virtual
bool
areGroupsIdentical
(
int
group1
,
int
group2
);
virtual
OPENMM_EXPORT
bool
areGroupsIdentical
(
int
group1
,
int
group2
);
};
};
}
// namespace OpenMM
}
// namespace OpenMM
...
...
platforms/cuda/src/kernels/cudaCompact.cu
View file @
06a98e93
...
@@ -183,7 +183,7 @@ __global__ void moveValidElementsScattered(const T* dgData,T* dgCompact,const un
...
@@ -183,7 +183,7 @@ __global__ void moveValidElementsScattered(const T* dgData,T* dgCompact,const un
}
}
}
}
void
planCompaction
(
compactionPlan
&
d
,
bool
stageOutput
)
{
void
OPENMMCUDA_EXPORT
planCompaction
(
compactionPlan
&
d
,
bool
stageOutput
)
{
int
device
;
int
device
;
cudaGetDevice
(
&
device
);
cudaGetDevice
(
&
device
);
cudaDeviceProp
deviceProp
;
cudaDeviceProp
deviceProp
;
...
@@ -195,11 +195,11 @@ void planCompaction(compactionPlan& d,bool stageOutput) {
...
@@ -195,11 +195,11 @@ void planCompaction(compactionPlan& d,bool stageOutput) {
d
.
valid
=
true
;
d
.
valid
=
true
;
}
}
void
destroyCompactionPlan
(
compactionPlan
&
d
)
{
void
OPENMMCUDA_EXPORT
destroyCompactionPlan
(
compactionPlan
&
d
)
{
if
(
d
.
valid
)
cudaFree
(
d
.
dgBlockCounts
);
if
(
d
.
valid
)
cudaFree
(
d
.
dgBlockCounts
);
}
}
int
compactStream
(
const
compactionPlan
&
d
,
T
*
dOut
,
const
T
*
dIn
,
const
unsigned
int
*
dValid
,
size_t
len
,
size_t
*
dNumValid
)
{
int
OPENMMCUDA_EXPORT
compactStream
(
const
compactionPlan
&
d
,
T
*
dOut
,
const
T
*
dIn
,
const
unsigned
int
*
dValid
,
size_t
len
,
size_t
*
dNumValid
)
{
if
(
!
d
.
valid
)
{
if
(
!
d
.
valid
)
{
return
-
1
;
return
-
1
;
}
}
...
...
platforms/cuda/src/kernels/cudaCompact.h
View file @
06a98e93
...
@@ -25,6 +25,8 @@
...
@@ -25,6 +25,8 @@
License: Public Domain
License: Public Domain
*/
*/
#include "windowsExportCuda.h"
struct
compactionPlan
{
struct
compactionPlan
{
bool
valid
;
bool
valid
;
unsigned
int
*
dgBlockCounts
;
unsigned
int
*
dgBlockCounts
;
...
@@ -33,12 +35,12 @@ struct compactionPlan {
...
@@ -33,12 +35,12 @@ struct compactionPlan {
};
};
extern
"C"
extern
"C"
void
planCompaction
(
compactionPlan
&
d
,
bool
stageOutput
=
true
);
void
OPENMMCUDA_EXPORT
planCompaction
(
compactionPlan
&
d
,
bool
stageOutput
=
true
);
extern
"C"
extern
"C"
void
destroyCompactionPlan
(
compactionPlan
&
d
);
void
OPENMMCUDA_EXPORT
destroyCompactionPlan
(
compactionPlan
&
d
);
extern
"C"
extern
"C"
int
compactStream
(
const
compactionPlan
&
d
,
unsigned
int
*
dOut
,
const
unsigned
int
*
dIn
,
const
unsigned
int
*
dValid
,
size_t
len
,
size_t
*
dNumValid
);
int
OPENMMCUDA_EXPORT
compactStream
(
const
compactionPlan
&
d
,
unsigned
int
*
dOut
,
const
unsigned
int
*
dIn
,
const
unsigned
int
*
dValid
,
size_t
len
,
size_t
*
dNumValid
);
#endif // __OPENMM_CUDACOMPACT_H__
#endif // __OPENMM_CUDACOMPACT_H__
platforms/cuda/src/kernels/kCalculateObcGbsaBornSum.cu
View file @
06a98e93
...
@@ -133,7 +133,7 @@ void kReduceObcGbsaBornSum_kernel()
...
@@ -133,7 +133,7 @@ void kReduceObcGbsaBornSum_kernel()
}
}
}
}
void
kReduceObcGbsaBornSum
(
gpuContext
gpu
)
void
OPENMMCUDA_EXPORT
kReduceObcGbsaBornSum
(
gpuContext
gpu
)
{
{
// printf("kReduceObcGbsaBornSum\n");
// printf("kReduceObcGbsaBornSum\n");
kReduceObcGbsaBornSum_kernel
<<<
gpu
->
sim
.
blocks
,
384
>>>
();
kReduceObcGbsaBornSum_kernel
<<<
gpu
->
sim
.
blocks
,
384
>>>
();
...
@@ -141,7 +141,7 @@ void kReduceObcGbsaBornSum(gpuContext gpu)
...
@@ -141,7 +141,7 @@ void kReduceObcGbsaBornSum(gpuContext gpu)
LAUNCHERROR
(
"kReduceObcGbsaBornSum"
);
LAUNCHERROR
(
"kReduceObcGbsaBornSum"
);
}
}
void
kCalculateObcGbsaBornSum
(
gpuContext
gpu
)
void
OPENMMCUDA_EXPORT
kCalculateObcGbsaBornSum
(
gpuContext
gpu
)
{
{
// printf("kCalculateObcgbsaBornSum\n");
// printf("kCalculateObcgbsaBornSum\n");
switch
(
gpu
->
sim
.
nonbondedMethod
)
switch
(
gpu
->
sim
.
nonbondedMethod
)
...
...
platforms/cuda/src/kernels/kCalculateObcGbsaForces2.cu
View file @
06a98e93
...
@@ -99,7 +99,7 @@ void GetCalculateObcGbsaForces2Sim(gpuContext gpu)
...
@@ -99,7 +99,7 @@ void GetCalculateObcGbsaForces2Sim(gpuContext gpu)
#define METHOD_NAME(a, b) a##PeriodicByWarp##b
#define METHOD_NAME(a, b) a##PeriodicByWarp##b
#include "kCalculateObcGbsaForces2.h"
#include "kCalculateObcGbsaForces2.h"
void
kCalculateObcGbsaForces2
(
gpuContext
gpu
)
void
OPENMMCUDA_EXPORT
kCalculateObcGbsaForces2
(
gpuContext
gpu
)
{
{
//printf("kCalculateObcGbsaForces2\n");
//printf("kCalculateObcGbsaForces2\n");
switch
(
gpu
->
sim
.
nonbondedMethod
)
switch
(
gpu
->
sim
.
nonbondedMethod
)
...
...
platforms/cuda/src/kernels/kForces.cu
View file @
06a98e93
...
@@ -39,7 +39,7 @@ using namespace std;
...
@@ -39,7 +39,7 @@ using namespace std;
static
__constant__
cudaGmxSimulation
cSim
;
static
__constant__
cudaGmxSimulation
cSim
;
void
SetForcesSim
(
gpuContext
gpu
)
void
OPENMMCUDA_EXPORT
SetForcesSim
(
gpuContext
gpu
)
{
{
cudaError_t
status
;
cudaError_t
status
;
status
=
cudaMemcpyToSymbol
(
cSim
,
&
gpu
->
sim
,
sizeof
(
cudaGmxSimulation
));
status
=
cudaMemcpyToSymbol
(
cSim
,
&
gpu
->
sim
,
sizeof
(
cudaGmxSimulation
));
...
@@ -65,7 +65,7 @@ void kClearForces_kernel()
...
@@ -65,7 +65,7 @@ void kClearForces_kernel()
}
}
}
}
void
kClearForces
(
gpuContext
gpu
)
void
OPENMMCUDA_EXPORT
kClearForces
(
gpuContext
gpu
)
{
{
// printf("kClearForces\n");
// printf("kClearForces\n");
kClearForces_kernel
<<<
gpu
->
sim
.
blocks
,
384
>>>
();
kClearForces_kernel
<<<
gpu
->
sim
.
blocks
,
384
>>>
();
...
@@ -279,7 +279,7 @@ void kReduceForces_kernel()
...
@@ -279,7 +279,7 @@ void kReduceForces_kernel()
}
}
}
}
void
kReduceForces
(
gpuContext
gpu
)
void
OPENMMCUDA_EXPORT
kReduceForces
(
gpuContext
gpu
)
{
{
// printf("kReduceForces\n");
// printf("kReduceForces\n");
kReduceForces_kernel
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
bsf_reduce_threads_per_block
>>>
();
kReduceForces_kernel
<<<
gpu
->
sim
.
blocks
,
gpu
->
sim
.
bsf_reduce_threads_per_block
>>>
();
...
...
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