Fix clfft build
authorRoland Schulz <roland.schulz@intel.com>
Thu, 31 Jan 2019 17:00:24 +0000 (09:00 -0800)
committerRoland Schulz <roland.schulz@intel.com>
Thu, 31 Jan 2019 19:47:48 +0000 (11:47 -0800)
Change-Id: I9df2470aa02644aa4058ccce986b543374f10664

src/external/clFFT/README.Gromacs
src/external/clFFT/src/library/fft_binary_lookup.cpp

index 7388b9422a7973ea628f1f3bc8a853081c7bf280..f15657b9807bca373c02a0f1e98987fcadf6d5c4 100644 (file)
@@ -27,3 +27,6 @@ The version of this file from the git repo has been omitted.
 The file src/include/clFFT.version.h is copied from src/include/clFFT.version.h.in,
 substituting the version number placeholders with version 2.14.0
 (as in the original build script), and defining a static build option.
+
+To compile everything as C++ the src/library/md5sum.c is renamed to cpp and
+the extern "C" is removed from src/library/fft_binary_lookup.cpp.
index ff386e283760e7b07264b514044c00b28a86517d..28b4d3e28031fcbb465c75bb1091bd63e3023ae0 100644 (file)
 #include <unistd.h>
 #endif
 
-extern "C"
-{
 #include "md5sum.h"
-}
 
 // size for clGetDeviceInfo queries
 #define SIZE 256