Unverified Commit 3dc2f12f authored by Philip Turner's avatar Philip Turner Committed by GitHub
Browse files

Recognize Metal platform (#4005)

parent 012188b8
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment