From c3d7ec65fa5cc322ce91729e41baca65911a8b21 Mon Sep 17 00:00:00 2001 From: Guido Cossu Date: Fri, 10 Feb 2017 10:27:51 +0000 Subject: [PATCH] All tests compile. --- .travis.yml | 1 + lib/DisableWarnings.h | 37 +++ lib/Grid.h | 1 + lib/json/json.hpp | 1 - lib/qcd/hmc/GenericHMCrunner.h | 12 +- tests/hmc/Test_hmc_EODWFRatio.cc | 230 +++++++++++------- ....cc => Test_hmc_EODWFRatioLsVectorised.cc} | 136 ++--------- .../Test_hmc_EODWFRatioLsVectorised_Binary.cc | 186 -------------- tests/hmc/Test_hmc_EODWFRatio_Gparity.cc | 182 +++++++++----- tests/hmc/Test_hmc_EOWilsonRatio.cc | 152 +++++++----- tests/hmc/Test_hmc_GparityIwasakiGauge.cc | 115 +++++---- tests/hmc/Test_hmc_GparityWilsonGauge.cc | 113 +++++---- tests/hmc/Test_hmc_IwasakiGauge.cc | 109 +++++---- tests/hmc/Test_hmc_RectGauge.cc | 149 +++++++----- .../hmc/Test_hmc_WilsonAdjointFermionGauge.cc | 129 ++++++---- ...nary.cc => Test_hmc_WilsonFermionGauge.cc} | 0 ...auge_Binary.cc => Test_hmc_WilsonGauge.cc} | 0 ..._WilsonMixedRepresentationsFermionGauge.cc | 173 +++++++------ tests/hmc/Test_hmc_WilsonRatio.cc | 158 +++++++----- ...hmc_WilsonTwoIndexSymmetricFermionGauge.cc | 129 ++++++---- tests/hmc/Test_rhmc_EOWilson1p1.cc | 166 ++++++++----- tests/hmc/Test_rhmc_EOWilsonRatio.cc | 171 ++++++++----- tests/hmc/Test_rhmc_Wilson1p1.cc | 166 ++++++++----- tests/hmc/Test_rhmc_WilsonRatio.cc | 171 ++++++++----- tests/solver/Test_dwf_cg_prec_LsVec.cc | 3 - 25 files changed, 1482 insertions(+), 1208 deletions(-) create mode 100644 lib/DisableWarnings.h rename tests/hmc/{Test_hmc_EODWFRatio_Binary.cc => Test_hmc_EODWFRatioLsVectorised.cc} (50%) delete mode 100644 tests/hmc/Test_hmc_EODWFRatioLsVectorised_Binary.cc rename tests/hmc/{Test_hmc_WilsonFermionGauge_Binary.cc => Test_hmc_WilsonFermionGauge.cc} (100%) rename tests/hmc/{Test_hmc_WilsonGauge_Binary.cc => Test_hmc_WilsonGauge.cc} (100%) diff --git a/.travis.yml b/.travis.yml index ae3efda8..98f13b47 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ matrix: osx_image: xcode7.2 compiler: clang - compiler: gcc + sudo: required addons: apt: sources: diff --git a/lib/DisableWarnings.h b/lib/DisableWarnings.h new file mode 100644 index 00000000..b3257c62 --- /dev/null +++ b/lib/DisableWarnings.h @@ -0,0 +1,37 @@ +/************************************************************************************* + +Grid physics library, www.github.com/paboyle/Grid + +Source file: ./lib/DisableWarnings.h + +Copyright (C) 2016 + +Author: Guido Cossu + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +See the full license in the file "LICENSE" in the top level distribution +directory +*************************************************************************************/ +/* END LEGAL */ + +#ifndef DISABLE_WARNINGS_H +#define DISABLE_WARNINGS_H + + //disables and intel compiler specific warning (in json.hpp) +#pragma warning disable 488 + + +#endif diff --git a/lib/Grid.h b/lib/Grid.h index 47b3100c..23c0bd05 100644 --- a/lib/Grid.h +++ b/lib/Grid.h @@ -60,6 +60,7 @@ Author: paboyle // Grid headers /////////////////// #include "Config.h" +#include #include #include #include diff --git a/lib/json/json.hpp b/lib/json/json.hpp index 9423521e..97214f0b 100644 --- a/lib/json/json.hpp +++ b/lib/json/json.hpp @@ -1348,7 +1348,6 @@ class basic_json @since version 1.0.0 */ -#pragma warning disable 488 //disables and intel compiler specific warning template::value) and std::is_same::value, int>::type = 0> diff --git a/lib/qcd/hmc/GenericHMCrunner.h b/lib/qcd/hmc/GenericHMCrunner.h index 085b5a35..66b16435 100644 --- a/lib/qcd/hmc/GenericHMCrunner.h +++ b/lib/qcd/hmc/GenericHMCrunner.h @@ -179,6 +179,17 @@ using GenericHMCRunnerF = HMCWrapperTemplate; template