Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
argupta
openfpm_pdata
Commits
2289297b
Commit
2289297b
authored
7 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing example to nit use VC by default
parent
fdf82a8b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
example/Grid/3_gray_scott_3d_vectorization/main.cpp
+10
-1
10 additions, 1 deletion
example/Grid/3_gray_scott_3d_vectorization/main.cpp
script/install_VCDEVEL.sh
+19
-0
19 additions, 0 deletions
script/install_VCDEVEL.sh
with
29 additions
and
1 deletion
example/Grid/3_gray_scott_3d_vectorization/main.cpp
+
10
−
1
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
;
...
...
This diff is collapsed.
Click to expand it.
script/install_VCDEVEL.sh
0 → 100755
+
19
−
0
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment