Commit aacefccf authored by peastman's avatar peastman
Browse files

OpenCL on Apple requires OS X 10.10.3 or later

parent 602629da
...@@ -122,8 +122,8 @@ bool OpenCLPlatform::isPlatformSupported() { ...@@ -122,8 +122,8 @@ bool OpenCLPlatform::isPlatformSupported() {
if (sscanf(str, "%d.%d.%d", &major, &minor, &micro) != 3) if (sscanf(str, "%d.%d.%d", &major, &minor, &micro) != 3)
return false; return false;
if (major < 14) if (major < 14 || (major == 14 && minor < 3))
// 14.0.0 is the darwin release corresponding to OS X 10.10.0. Versions prior to that // 14.3.0 is the darwin release corresponding to OS X 10.10.3. Versions prior to that
// contained a number of serious bugs in the Apple OpenCL libraries. // contained a number of serious bugs in the Apple OpenCL libraries.
// (See https://github.com/SimTk/openmm/issues/395 for example.) // (See https://github.com/SimTk/openmm/issues/395 for example.)
return false; return false;
......
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