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
b2d24121
Commit
b2d24121
authored
Jun 30, 2015
by
Robert McGibbon
Browse files
Build with Intel compilers
parent
bca01957
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
6 deletions
+8
-6
platforms/opencl/src/cl.hpp
platforms/opencl/src/cl.hpp
+1
-0
platforms/opencl/tests/TestOpenCLVirtualSites.cpp
platforms/opencl/tests/TestOpenCLVirtualSites.cpp
+2
-2
plugins/cpupme/src/CpuPmeKernels.cpp
plugins/cpupme/src/CpuPmeKernels.cpp
+1
-0
plugins/rpmd/platforms/opencl/tests/TestOpenCLRpmd.cpp
plugins/rpmd/platforms/opencl/tests/TestOpenCLRpmd.cpp
+2
-2
plugins/rpmd/platforms/reference/tests/TestReferenceRpmd.cpp
plugins/rpmd/platforms/reference/tests/TestReferenceRpmd.cpp
+2
-2
No files found.
platforms/opencl/src/cl.hpp
View file @
b2d24121
...
@@ -143,6 +143,7 @@
...
@@ -143,6 +143,7 @@
*/
*/
#ifndef CL_HPP_
#ifndef CL_HPP_
#define CL_HPP_
#define CL_HPP_
#define CL_USE_DEPRECATED_OPENCL_2_0_APIS
#ifdef _WIN32
#ifdef _WIN32
...
...
platforms/opencl/tests/TestOpenCLVirtualSites.cpp
View file @
b2d24121
...
@@ -80,8 +80,8 @@ void testMasslessParticle() {
...
@@ -80,8 +80,8 @@ void testMasslessParticle() {
for
(
int
i
=
0
;
i
<
1000
;
++
i
)
{
for
(
int
i
=
0
;
i
<
1000
;
++
i
)
{
State
state
=
context
.
getState
(
State
::
Positions
|
State
::
Velocities
|
State
::
Forces
);
State
state
=
context
.
getState
(
State
::
Positions
|
State
::
Velocities
|
State
::
Forces
);
double
time
=
state
.
getTime
();
double
time
=
state
.
getTime
();
ASSERT_EQUAL_VEC
(
Vec3
(),
state
.
getPositions
()[
0
],
0.0
);
ASSERT_EQUAL_VEC
(
Vec3
(
0
,
0
,
0
),
state
.
getPositions
()[
0
],
0.0
);
ASSERT_EQUAL_VEC
(
Vec3
(),
state
.
getVelocities
()[
0
],
0.0
);
ASSERT_EQUAL_VEC
(
Vec3
(
0
,
0
,
0
),
state
.
getVelocities
()[
0
],
0.0
);
ASSERT_EQUAL_VEC
(
Vec3
(
cos
(
time
),
sin
(
time
),
0
),
state
.
getPositions
()[
1
],
0.01
);
ASSERT_EQUAL_VEC
(
Vec3
(
cos
(
time
),
sin
(
time
),
0
),
state
.
getPositions
()[
1
],
0.01
);
ASSERT_EQUAL_VEC
(
Vec3
(
-
sin
(
time
),
cos
(
time
),
0
),
state
.
getVelocities
()[
1
],
0.01
);
ASSERT_EQUAL_VEC
(
Vec3
(
-
sin
(
time
),
cos
(
time
),
0
),
state
.
getVelocities
()[
1
],
0.01
);
integrator
.
step
(
1
);
integrator
.
step
(
1
);
...
...
plugins/cpupme/src/CpuPmeKernels.cpp
View file @
b2d24121
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
#include <cmath>
#include <cmath>
#include <cstring>
#include <cstring>
#include <sstream>
#include <sstream>
#include <cstdlib>
using
namespace
OpenMM
;
using
namespace
OpenMM
;
using
namespace
std
;
using
namespace
std
;
...
...
plugins/rpmd/platforms/opencl/tests/TestOpenCLRpmd.cpp
View file @
b2d24121
...
@@ -194,7 +194,7 @@ void testParaHydrogen() {
...
@@ -194,7 +194,7 @@ void testParaHydrogen() {
// Calculate the quantum contribution to the kinetic energy.
// Calculate the quantum contribution to the kinetic energy.
vector
<
Vec3
>
centroids
(
numParticles
,
Vec3
());
vector
<
Vec3
>
centroids
(
numParticles
,
Vec3
(
0
,
0
,
0
));
for
(
int
i
=
0
;
i
<
numCopies
;
i
++
)
{
for
(
int
i
=
0
;
i
<
numCopies
;
i
++
)
{
const
vector
<
Vec3
>&
pos
=
states
[
i
].
getPositions
();
const
vector
<
Vec3
>&
pos
=
states
[
i
].
getPositions
();
for
(
int
j
=
0
;
j
<
numParticles
;
j
++
)
for
(
int
j
=
0
;
j
<
numParticles
;
j
++
)
...
@@ -272,7 +272,7 @@ void testCMMotionRemoval() {
...
@@ -272,7 +272,7 @@ void testCMMotionRemoval() {
pos
+=
calcCM
(
state
.
getPositions
(),
system
);
pos
+=
calcCM
(
state
.
getPositions
(),
system
);
}
}
pos
*=
1.0
/
numCopies
;
pos
*=
1.0
/
numCopies
;
ASSERT_EQUAL_VEC
(
Vec3
(),
pos
,
0.5
);
ASSERT_EQUAL_VEC
(
Vec3
(
0
,
0
,
0
),
pos
,
0.5
);
}
}
}
}
...
...
plugins/rpmd/platforms/reference/tests/TestReferenceRpmd.cpp
View file @
b2d24121
...
@@ -155,7 +155,7 @@ void testCMMotionRemoval() {
...
@@ -155,7 +155,7 @@ void testCMMotionRemoval() {
pos
+=
calcCM
(
state
.
getPositions
(),
system
);
pos
+=
calcCM
(
state
.
getPositions
(),
system
);
}
}
pos
*=
1.0
/
numCopies
;
pos
*=
1.0
/
numCopies
;
ASSERT_EQUAL_VEC
(
Vec3
(),
pos
,
0.5
);
ASSERT_EQUAL_VEC
(
Vec3
(
0
,
0
,
0
),
pos
,
0.5
);
}
}
}
}
...
@@ -206,7 +206,7 @@ void testVirtualSites() {
...
@@ -206,7 +206,7 @@ void testVirtualSites() {
int
index
=
k
+
gridSize
*
(
j
+
gridSize
*
i
);
int
index
=
k
+
gridSize
*
(
j
+
gridSize
*
i
);
positions
[
3
*
index
]
=
pos
;
positions
[
3
*
index
]
=
pos
;
positions
[
3
*
index
+
1
]
=
Vec3
(
pos
[
0
]
+
1.0
,
pos
[
1
],
pos
[
2
]);
positions
[
3
*
index
+
1
]
=
Vec3
(
pos
[
0
]
+
1.0
,
pos
[
1
],
pos
[
2
]);
positions
[
3
*
index
+
2
]
=
Vec3
();
positions
[
3
*
index
+
2
]
=
Vec3
(
0
,
0
,
0
);
}
}
integ
.
setPositions
(
copy
,
positions
);
integ
.
setPositions
(
copy
,
positions
);
}
}
...
...
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