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
b915aca5
Commit
b915aca5
authored
Feb 28, 2014
by
peastman
Browse files
Merge pull request #343 from rmcgibbo/test-cpu-settle
[WIP] TestCpuSettle segfault on travis
parents
e6410ce2
b41dc1fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
.travis.yml
.travis.yml
+5
-4
platforms/cpu/src/CpuSETTLE.cpp
platforms/cpu/src/CpuSETTLE.cpp
+3
-1
No files found.
.travis.yml
View file @
b915aca5
...
@@ -5,13 +5,14 @@ compiler:
...
@@ -5,13 +5,14 @@ compiler:
before_install
:
before_install
:
-
sudo apt-get update -qq
-
sudo apt-get update -qq
-
sudo apt-get install -qq libpcre3 libpcre3-dev gromacs
-
sudo apt-get install -qq libpcre3 libpcre3-dev gromacs
-
sudo apt-get install -qq swig doxygen
-
sudo apt-get install -qq swig doxygen
llvm-3.3
-
sudo apt-get install -qq python-numpy python-scipy python-nose
-
sudo apt-get install -qq python-numpy python-scipy python-nose
-
export ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-3.3
script
:
script
:
-
cmake -DCMAKE_INSTALL_PREFIX=~/OpenMM .
-
cmake -DCMAKE_INSTALL_PREFIX=~/OpenMM
-DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS_DEBUG="-g -fsanitize=address -fno-omit-frame-pointer -O2"
.
-
make
-
make
-
make test
-
make test
-
make install
-
make install
-
ls ~/OpenMM/include
-
ls ~/OpenMM/include
-
export LD_LIBRARY_PATH=~/OpenMM/lib/
-
export LD_LIBRARY_PATH=~/OpenMM/lib/
...
...
platforms/cpu/src/CpuSETTLE.cpp
View file @
b915aca5
...
@@ -41,7 +41,9 @@ public:
...
@@ -41,7 +41,9 @@ public:
inverseMasses
(
inverseMasses
),
tolerance
(
tolerance
),
threadSettle
(
threadSettle
)
{
inverseMasses
(
inverseMasses
),
tolerance
(
tolerance
),
threadSettle
(
threadSettle
)
{
}
}
void
execute
(
ThreadPool
&
threads
,
int
threadIndex
)
{
void
execute
(
ThreadPool
&
threads
,
int
threadIndex
)
{
threadSettle
[
threadIndex
]
->
apply
(
atomCoordinates
,
atomCoordinatesP
,
inverseMasses
,
tolerance
);
if
(
threadIndex
<
threadSettle
.
size
())
{
threadSettle
[
threadIndex
]
->
apply
(
atomCoordinates
,
atomCoordinatesP
,
inverseMasses
,
tolerance
);
}
}
}
vector
<
OpenMM
::
RealVec
>&
atomCoordinates
;
vector
<
OpenMM
::
RealVec
>&
atomCoordinates
;
vector
<
OpenMM
::
RealVec
>&
atomCoordinatesP
;
vector
<
OpenMM
::
RealVec
>&
atomCoordinatesP
;
...
...
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