:issue: `2037`
-Fixes to improve portability
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Fixes that affect portability
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+With MSVC, disabled internal clFFT fallback used for OpenCL support
+-------------------------------------------------------------------
+GROMACS requires MSVC 2017, and the GROMACS OpenCL build requires
+clFFT. If clFFT is found on the user's system, then all may be well,
+but the version of clFFT bundled within GROMACS cannot be built
+because only MSVC 2010 is supported by clFFT at this time. A
+configure-time fatal error is now issued in this case.
+
+:issue: `2500`
Miscellaneous
^^^^^^^^^^^^^
#
# This file is part of the GROMACS molecular simulation package.
#
-# Copyright (c) 2010,2011,2012,2013,2014,2015,2016,2017,2018, by the GROMACS development team, led by
+# Copyright (c) 2010,2011,2012,2013,2014,2015,2016,2017,2018,2019, by the GROMACS development team, led by
# Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
# and including many others, as listed in the AUTHORS file in the
# top-level source directory and at http://www.gromacs.org.
message(FATAL_ERROR "Did not find required external clFFT library, consider setting clFFT_ROOT_DIR")
endif()
+ if(MSVC)
+ message(FATAL_ERROR
+"An OpenCL build was requested with Visual Studio compiler, but GROMACS
+requires clFFT, which was not found on your system. GROMACS does bundle
+clFFT to help with building for OpenCL, but that clFFT has not yet been
+ported to the more recent versions of that compiler that GROMACS itself
+requires. Thus for now, OpenCL is not available with MSVC and the internal
+build of clFFT in GROMACS 2019. Either change compiler, try installing
+a clFFT package, or use the latest GROMACS 2018 point release.")
+ endif()
+
# Fall back on the internal version
set (_clFFT_dir ../external/clFFT/src)
add_subdirectory(${_clFFT_dir} clFFT-build)