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
3dc2f12f
Unverified
Commit
3dc2f12f
authored
Mar 23, 2023
by
Philip Turner
Committed by
GitHub
Mar 23, 2023
Browse files
Recognize Metal platform (#4005)
parent
012188b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
openmmapi/src/LocalEnergyMinimizer.cpp
openmmapi/src/LocalEnergyMinimizer.cpp
+1
-1
No files found.
openmmapi/src/LocalEnergyMinimizer.cpp
View file @
3dc2f12f
...
...
@@ -51,7 +51,7 @@ struct MinimizerData {
Context
*
cpuContext
;
MinimizerData
(
Context
&
context
,
double
k
)
:
context
(
context
),
k
(
k
),
cpuIntegrator
(
1.0
),
cpuContext
(
NULL
)
{
string
platformName
=
context
.
getPlatform
().
getName
();
checkLargeForces
=
(
platformName
==
"CUDA"
||
platformName
==
"OpenCL"
||
platformName
==
"HIP"
);
checkLargeForces
=
(
platformName
==
"CUDA"
||
platformName
==
"OpenCL"
||
platformName
==
"HIP"
||
platformName
==
"Metal"
);
}
~
MinimizerData
()
{
if
(
cpuContext
!=
NULL
)
...
...
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