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
3b859566
"platforms/opencl/vscode:/vscode.git/clone" did not exist on "12046dc59d3547745735151b63adc321eeae8057"
Commit
3b859566
authored
Mar 14, 2011
by
Peter Eastman
Browse files
Fixed compilation errors in debug mode
parent
1db8640d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
platforms/opencl/src/OpenCLContext.cpp
platforms/opencl/src/OpenCLContext.cpp
+3
-0
platforms/opencl/src/OpenCLContext.h
platforms/opencl/src/OpenCLContext.h
+2
-2
No files found.
platforms/opencl/src/OpenCLContext.cpp
View file @
3b859566
...
@@ -49,6 +49,9 @@ using namespace std;
...
@@ -49,6 +49,9 @@ using namespace std;
#define CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV 0x4000
#define CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV 0x4000
#endif
#endif
const
int
OpenCLContext
::
ThreadBlockSize
=
64
;
const
int
OpenCLContext
::
TileSize
=
32
;
OpenCLContext
::
OpenCLContext
(
int
numParticles
,
int
deviceIndex
)
:
time
(
0.0
),
stepCount
(
0
),
computeForceCount
(
0
),
posq
(
NULL
),
velm
(
NULL
),
OpenCLContext
::
OpenCLContext
(
int
numParticles
,
int
deviceIndex
)
:
time
(
0.0
),
stepCount
(
0
),
computeForceCount
(
0
),
posq
(
NULL
),
velm
(
NULL
),
forceBuffers
(
NULL
),
energyBuffer
(
NULL
),
atomIndex
(
NULL
),
integration
(
NULL
),
nonbonded
(
NULL
)
{
forceBuffers
(
NULL
),
energyBuffer
(
NULL
),
atomIndex
(
NULL
),
integration
(
NULL
),
nonbonded
(
NULL
)
{
try
{
try
{
...
...
platforms/opencl/src/OpenCLContext.h
View file @
3b859566
...
@@ -130,8 +130,8 @@ struct mm_int16 {
...
@@ -130,8 +130,8 @@ struct mm_int16 {
class
OPENMM_EXPORT
OpenCLContext
{
class
OPENMM_EXPORT
OpenCLContext
{
public:
public:
static
const
int
ThreadBlockSize
=
64
;
static
const
int
ThreadBlockSize
;
static
const
int
TileSize
=
32
;
static
const
int
TileSize
;
OpenCLContext
(
int
numParticles
,
int
deviceIndex
);
OpenCLContext
(
int
numParticles
,
int
deviceIndex
);
~
OpenCLContext
();
~
OpenCLContext
();
/**
/**
...
...
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