Apple's OpenCL compiler seems to be unable to build a functional clFFT
which leads to a runtime error that aborts the runs rather than falling
back to PME-CPU. Hence this commit disabled PME-GPU on all Apple
platform builds.
Fixes #2941 #2719
Change-Id: I6afd19a56ced2e49d16ab598cd91527e6f73a1db
Fixes that affect portability
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Disable PME OpenCL on Apple
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+
+The Apple OpenCL compilers fail to produce a functional clFFT build.
+The OpenCL PME support is therefore disabled on Apple platforms.
+
+:issue:`2941`
+
Miscellaneous
^^^^^^^^^^^^^
**Please note again the limitations outlined below!**
-- Only compilation with CUDA is supported.
+- PME GPU offload is supported on NVIDIA hardware with CUDA and AMD hardware with OpenCL.
- Only a PME order of 4 is supported on GPUs.
{
errorReasons.emplace_back("non-AMD devices");
}
+#ifdef __APPLE__
+ errorReasons.emplace_back("Apple OS X operating system");
+#endif
}
return addMessageIfNotSupported(errorReasons, error);
}