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
83470b8e
Commit
83470b8e
authored
Dec 20, 2013
by
peastman
Browse files
Merge branch 'master' of
https://github.com/peastman/openmm
parents
ddf1216d
92b12c5d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
examples/benchmark.py
examples/benchmark.py
+1
-1
openmmapi/include/openmm/internal/vectorize8.h
openmmapi/include/openmm/internal/vectorize8.h
+2
-2
No files found.
examples/benchmark.py
View file @
83470b8e
...
...
@@ -88,7 +88,7 @@ def runOneTest(testName, options):
if
platform
.
getName
()
==
'CUDA'
:
properties
[
'CudaPrecision'
]
=
options
.
precision
elif
platform
.
getName
()
==
'OpenCL'
:
properties
[
'OpenCLPrecision'
]
=
options
.
device
properties
[
'OpenCLPrecision'
]
=
options
.
precision
# Run the simulation.
...
...
openmmapi/include/openmm/internal/vectorize8.h
View file @
83470b8e
...
...
@@ -142,10 +142,10 @@ public:
_mm256_storeu_si256
((
__m256i
*
)
v
,
val
);
}
ivec8
operator
&
(
ivec8
other
)
const
{
return
_mm256_and_ps
(
_mm256_castsi256_ps
(
val
),
_mm256_castsi256_ps
(
other
.
val
));
return
_mm256_castps_si256
(
_mm256_and_ps
(
_mm256_castsi256_ps
(
val
),
_mm256_castsi256_ps
(
other
.
val
))
)
;
}
ivec8
operator
|
(
ivec8
other
)
const
{
return
_mm256_or_ps
(
_mm256_castsi256_ps
(
val
),
_mm256_castsi256_ps
(
other
.
val
));
return
_mm256_castps_si256
(
_mm256_or_ps
(
_mm256_castsi256_ps
(
val
),
_mm256_castsi256_ps
(
other
.
val
))
)
;
}
operator
fvec8
()
const
;
};
...
...
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