Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_pdata
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_pdata
Commits
2289297b
Commit
2289297b
authored
Apr 14, 2018
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing example to nit use VC by default
parent
fdf82a8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
example/Grid/3_gray_scott_3d_vectorization/main.cpp
example/Grid/3_gray_scott_3d_vectorization/main.cpp
+10
-1
script/install_VCDEVEL.sh
script/install_VCDEVEL.sh
+19
-0
No files found.
example/Grid/3_gray_scott_3d_vectorization/main.cpp
View file @
2289297b
#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
;
...
...
script/install_VCDEVEL.sh
0 → 100755
View file @
2289297b
#! /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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment