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
193c8d97
Commit
193c8d97
authored
Aug 21, 2013
by
peastman
Browse files
Merge pull request #116 from peastman/master
Bug fixes
parents
b18c82c8
8edf13a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
examples/CMakeLists.txt
examples/CMakeLists.txt
+1
-1
plugins/cpupme/src/CpuPmeKernels.cpp
plugins/cpupme/src/CpuPmeKernels.cpp
+14
-0
No files found.
examples/CMakeLists.txt
View file @
193c8d97
...
...
@@ -93,7 +93,7 @@ FOREACH(EX_ROOT ${F_EXAMPLES})
INSTALL
(
FILES
${
EX_ROOT
}
.f90 DESTINATION examples
)
ENDFOREACH
(
EX_ROOT
${
F_EXAMPLES
}
)
INSTALL
(
FILES simulateAmber.py simulatePdb.py testInstallation.py argon-chemical-potential.py input.inpcrd input.prmtop input.pdb
INSTALL
(
FILES simulateAmber.py simulatePdb.py
simulateGromacs.py
testInstallation.py argon-chemical-potential.py input.inpcrd input.prmtop input.pdb
input.gro input.top
DESTINATION examples
)
INSTALL
(
FILES VisualStudio/HelloArgon.vcproj
...
...
plugins/cpupme/src/CpuPmeKernels.cpp
View file @
193c8d97
...
...
@@ -95,6 +95,7 @@ static int getNumProcessors() {
#define cpuid __cpuid
#else
static
void
cpuid
(
int
cpuInfo
[
4
],
int
infoType
){
#ifdef __LP64__
__asm__
__volatile__
(
"cpuid"
:
"=a"
(
cpuInfo
[
0
]),
...
...
@@ -103,6 +104,19 @@ static void cpuid(int cpuInfo[4], int infoType){
"=d"
(
cpuInfo
[
3
])
:
"a"
(
infoType
)
);
#else
__asm__
__volatile__
(
"pushl %%ebx
\n
"
"cpuid
\n
"
"movl %%ebx, %1
\n
"
"popl %%ebx
\n
"
:
"=a"
(
cpuInfo
[
0
]),
"=r"
(
cpuInfo
[
1
]),
"=c"
(
cpuInfo
[
2
]),
"=d"
(
cpuInfo
[
3
])
:
"a"
(
infoType
)
);
#endif
}
#endif
...
...
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