diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..be429bd3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +# Ubuntu 14.04 Trusty support +sudo: required +dist: trusty +# Enable C++ support +language: cpp +# Compiler selection +# Build steps +script: + - ./scripts/reconfigure_script + - mkdir build + - cd build + - ../configure CXXFLAGS="-mavx2 -mfma -fopenmp -O3 -std=c++11" LIBS="-fopenmp -lmpfr -lgmp" --enable-precision=single --enable-simd=AVX2 --enable-comms=none + - make + - ./benchmarks/Benchmark_dwf --threads 1 +matrix: + include: + - compiler: gcc-4.9 + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-4.9 + - libmpfr-dev + - libgmp-dev + - libmpc-dev + - binutils-dev + env: CXX=g++-4.9 diff --git a/lib/lattice/Lattice_rng.h b/lib/lattice/Lattice_rng.h index da0f2207..3254af30 100644 --- a/lib/lattice/Lattice_rng.h +++ b/lib/lattice/Lattice_rng.h @@ -122,7 +122,7 @@ namespace Grid { std::vector _generators; std::vector> _uniform; std::vector> _gaussian; - std::vector> _bernoulli; + std::vector> _bernoulli; void GetState(std::vector & saved,int gen) { saved.resize(RngStateCount); @@ -162,7 +162,7 @@ namespace Grid { _generators.resize(1); _uniform.resize(1,std::uniform_real_distribution{0,1}); _gaussian.resize(1,std::normal_distribution(0.0,1.0) ); - _bernoulli.resize(1,std::discrete_distribution{1,1}); + _bernoulli.resize(1,std::discrete_distribution{1,1}); _seeded=0; } @@ -268,7 +268,7 @@ namespace Grid { _generators.resize(_vol); _uniform.resize(_vol,std::uniform_real_distribution{0,1}); _gaussian.resize(_vol,std::normal_distribution(0.0,1.0) ); - _bernoulli.resize(_vol,std::discrete_distribution{1,1}); + _bernoulli.resize(_vol,std::discrete_distribution{1,1}); _seeded=0; } diff --git a/lib/qcd/action/fermion/WilsonKernels.cc b/lib/qcd/action/fermion/WilsonKernels.cc index 387ac0cd..e3415ae0 100644 --- a/lib/qcd/action/fermion/WilsonKernels.cc +++ b/lib/qcd/action/fermion/WilsonKernels.cc @@ -518,7 +518,7 @@ void WilsonKernels::DiracOptDhopDir(StencilImpl &st,DoubledGaugeField &U, vstream(out._odata[sF],result); } -#if ( ! defined(IMCI) && ! defined(AVX512) ) +#if ( ! defined(AVX512) ) template void WilsonKernels::DiracOptAsmDhopSite(StencilImpl &st,DoubledGaugeField &U, std::vector > &buf, diff --git a/lib/simd/Intel512wilson.h b/lib/simd/Intel512wilson.h index 243b89ed..84a2bccb 100644 --- a/lib/simd/Intel512wilson.h +++ b/lib/simd/Intel512wilson.h @@ -27,7 +27,7 @@ Author: paboyle /* END LEGAL */ #ifndef GRID_ASM_INTEL_512_QCD_H #define GRID_ASM_INTEL_512_QCD_H - + ////////////////////////////////////////////////////////////////////////////////////////// // Register allocations for Wilson Kernel are precision and IMCI/AVX512 indept ////////////////////////////////////////////////////////////////////////////////////////// diff --git a/tests/Test_synthetic_lanczos.cc b/tests/Test_synthetic_lanczos.cc index 5e5219cc..0c9ab120 100644 --- a/tests/Test_synthetic_lanczos.cc +++ b/tests/Test_synthetic_lanczos.cc @@ -67,7 +67,7 @@ public: random(pRNG,scale); - scale = exp(-real(scale)*3.0); + scale = exp(-Grid::real(scale)*3.0); std::cout << " True matrix \n"<< scale <