1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-12-24 11:55:27 +00:00
Go to file
2016-10-24 11:02:14 +01:00
benchmarks KNL streaming stores, and KNL performance coutners 2016-10-12 11:45:22 +01:00
docs Small modification to the configure files 2015-06-04 14:17:58 +09:00
gcc-bug-report Global edit adding copyright and license info to every source file. 2016-01-02 14:51:32 +00:00
include Open up dependency on Eigen and FFTW 2016-07-07 22:31:07 +01:00
lib Adding a barrier in the RNG save 2016-10-24 11:02:14 +01:00
m4 first working version for the new build system 2016-07-30 17:53:18 +01:00
prerequisites Merge branch 'develop' into feature/hirep 2016-09-01 12:59:53 +01:00
scripts Minor modification to the filelist script 2016-09-23 11:12:45 +01:00
tests Adding a barrier in the RNG save 2016-10-24 11:02:14 +01:00
.gitignore Adding gh-pages 2016-10-13 11:51:25 +01:00
.travis.yml Drop macos with gcc 2016-10-11 22:29:06 +01:00
AUTHORS Global edit adding copyright and license info to every source file. 2016-01-02 14:51:32 +00:00
bootstrap.sh Fixing compilation error with AVX512 flag 2016-09-09 02:58:52 -07:00
ChangeLog Updating build system 2015-03-04 04:53:40 +00:00
configure.ac Adding a barrier in the RNG save 2016-10-24 11:02:14 +01:00
COPYING GPLv2 clarified, and copyright message and banner in Init function. 2016-01-02 15:22:30 +00:00
gh-pages Adding gh-pages 2016-10-13 11:51:25 +01:00
LICENSE GPLv2 clarified, and copyright message and banner in Init function. 2016-01-02 15:22:30 +00:00
Makefile.am first working version for the new build system 2016-07-30 17:53:18 +01:00
NEWS Updating build system 2015-03-04 04:53:40 +00:00
README Added check of mpfr and gmp at configure time 2015-05-19 13:54:55 +09:00
README.md README update 2016-08-04 16:27:02 +01:00
TODO Plaq, Rectangle, Iwasaki, Symanzik and DBW2 workign and HMC regresses to http://arxiv.org/pdf/hep-lat/0610075.pdf 2015-12-28 16:38:31 +00:00
VERSION Version file 2016-06-30 14:44:09 -07:00

Grid

Last stable release
Development branch

Data parallel C++ mathematical object library.

Please send all pull requests to the develop branch.

License: GPL v2.

Last update 2016/08/03.

Description

This library provides data parallel C++ container classes with internal memory layout that is transformed to map efficiently to SIMD architectures. CSHIFT facilities are provided, similar to HPF and cmfortran, and user control is given over the mapping of array indices to both MPI tasks and SIMD processing elements.

  • Identically shaped arrays then be processed with perfect data parallelisation.
  • Such identically shapped arrays are called conformable arrays.

The transformation is based on the observation that Cartesian array processing involves identical processing to be performed on different regions of the Cartesian array.

The library will both geometrically decompose into MPI tasks and across SIMD lanes. Local vector loops are parallelised with OpenMP pragmas.

Data parallel array operations can then be specified with a SINGLE data parallel paradigm, but optimally use MPI, OpenMP and SIMD parallelism under the hood. This is a significant simplification for most programmers.

The layout transformations are parametrised by the SIMD vector length. This adapts according to the architecture. Presently SSE4 (128 bit) AVX, AVX2 (256 bit) and IMCI and AVX512 (512 bit) targets are supported (ARM NEON and BG/Q QPX on the way).

These are presented as vRealF, vRealD, vComplexF, and vComplexD internal vector data types. These may be useful in themselves for other programmers. The corresponding scalar types are named RealF, RealD, ComplexF and ComplexD.

MPI, OpenMP, and SIMD parallelism are present in the library. Please see https://arxiv.org/abs/1512.03487 for more detail.

Installation

First, start by cloning the repository:

git clone https://github.com/paboyle/Grid.git

Then enter the cloned directory and set up the build system:

cd Grid
./bootstrap.sh

Now you can execute the configure script to generate makefiles (here from a build directory):

mkdir build; cd build
../configure --enable-precision=double --enable-simd=AVX --enable-comms=mpi-auto --prefix=<path>

where --enable-precision= set the default precision (single or double), --enable-simd= set the SIMD type (see possible values below), --enable- comms= set the protocol used for communications (none, mpi, mpi-auto or shmem), and <path> should be replaced by the prefix path where you want to install Grid. The mpi-auto communication option set configure to determine automatically how to link to MPI. Other options are available, use configure --help to display them. Like with any other program using GNU autotool, the CXX, CXXFLAGS, LDFLAGS, ... environment variables can be modified to customise the build.

Finally, you can build and install Grid:

make; make install

To minimise the build time, only the tests at the root of the tests directory are built by default. If you want to build tests in the sub-directory <subdir> you can execute:

make -C tests/<subdir> tests

Possible SIMD types

The following options can be use with the --enable-simd= option to target different SIMD instruction sets:

String Description
GEN generic portable vector code
SSE4 SSE 4.2 (128 bit)
AVX AVX (256 bit)
AVXFMA4 AVX (256 bit) + FMA
AVX2 AVX 2 (256 bit)
AVX512 AVX 512 bit
AVX512MIC AVX 512 bit for Intel MIC architecture
ICMI Intel ICMI instructions (512 bit)

Alternatively, some CPU codenames can be directly used:

String Description
KNC Intel Knights Corner
KNL Intel Knights Landing