Skip to content
Snippets Groups Projects
Commit 2289297b authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing example to nit use VC by default

parent fdf82a8b
No related branches found
No related tags found
No related merge requests found
#include "Grid/grid_dist_id.hpp"
#include "data_type/aggregate.hpp"
#include "timer.hpp"
#define FORTRAN_UPDATE
#ifndef FORTRAN_UPDATE
#include "Vc/Vc"
#endif
/*!
*
......@@ -10,6 +15,11 @@
* # Solving a gray scott-system in 3D # {#e3_gs_gray_scott_vector}
*
* This example is just an improved version of the previous 3D Gray scott example.
* It can use VCDevel library for vectorization in C++ or Fortran multi-array code update. For the first case
* the library VCDevel must be installed. It can be installed using the command ./script/install_VCDEVEL.sh
* /where/are/the/dependencies/directory and changing the Makefile to include the VCDevel library
* like show in the Makefile. By default this example use fortran update because does not require
* external libraries.
* In particular we do the following improvements we separate U and V in two grids
* in order to vectorize. Every loop now handle 4 double in case of AVX-256 and 2 double
* in case of SSE. We also avoid to use the function copy and we alternate the use of the
......@@ -36,7 +46,6 @@
//! \cond [constants] \endcond
//#define FORTRAN_UPDATE
constexpr int x = 0;
constexpr int y = 1;
......
#! /bin/bash
# check if the directory $1/VCDEVEL exist
if [ -d "$1/VCDEVEL" ]; then
echo "VCDEVEL already installed"
exit 0
fi
wget http://ppmcore.mpi-cbg.de/upload/Vc-1.3.2.tar.gz
#rm -rf Vc
tar -xf Vc-1.3.2.tar.gz
cd Vc-1.3.2
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=$1/VCDEVEL ..
make
make install
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment