Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CTA-LAPP
PHOENIX_LIBS
PhoenixPerformance
Commits
fc271c6b
Commit
fc271c6b
authored
Jan 16, 2021
by
Pierre Aubert
Browse files
Use generic naming for naive_propagation(tmpU2, tmpV2, tmpU1, tmpV1, nbRow, nbCol,
parent
c410632c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
8 deletions
+4
-8
src/cpp20/Sequential/GrayScott/Benchmark/main.cpp
src/cpp20/Sequential/GrayScott/Benchmark/main.cpp
+1
-5
src/cpp20/Sequential/GrayScott/Naive/naive_propagation.cpp
src/cpp20/Sequential/GrayScott/Naive/naive_propagation.cpp
+1
-1
src/cpp20/Sequential/GrayScott/Naive/naive_propagation.h
src/cpp20/Sequential/GrayScott/Naive/naive_propagation.h
+1
-1
src/cpp20/Sequential/GrayScott/Program/main.cpp
src/cpp20/Sequential/GrayScott/Program/main.cpp
+1
-1
No files found.
src/cpp20/Sequential/GrayScott/Benchmark/main.cpp
View file @
fc271c6b
...
...
@@ -31,11 +31,7 @@ void evaluateSaxpy(size_t nbElement){
1.0
f
,
1.0
f
,
1.0
f
,
1.0
f
,
1.0
f
,
1.0
f
};
naive_propagation
(
tmpU2
,
tmpV2
,
tmpU1
,
tmpV1
,
nbRow
,
nbCol
,
matDeltaSquare
,
nbStencilRow
,
nbStencilCol
,
diffudionRateU
,
diffusionRateV
,
feedRate
,
killRate
,
dt
);
micro_benchmarkAutoNsPrint
(
"evaluate GrayScott reaction"
,
nbElement
,
naive_propagation
,
micro_benchmarkAutoNsPrint
(
"evaluate GrayScott reaction"
,
nbElement
,
grayscott_propagation
,
tmpU2
,
tmpV2
,
tmpU1
,
tmpV1
,
nbRow
,
nbCol
,
matDeltaSquare
,
nbStencilRow
,
nbStencilCol
,
diffudionRateU
,
diffusionRateV
,
feedRate
,
killRate
,
dt
);
...
...
src/cpp20/Sequential/GrayScott/Naive/naive_propagation.cpp
View file @
fc271c6b
...
...
@@ -24,7 +24,7 @@
* @param killRate : rate of the process which converts V into P
* @param dt : time interval between two steps
*/
void
naive
_propagation
(
float
*
outMatU
,
float
*
outMatV
,
const
float
*
matU
,
const
float
*
matV
,
long
nbRow
,
long
nbCol
,
void
grayscott
_propagation
(
float
*
outMatU
,
float
*
outMatV
,
const
float
*
matU
,
const
float
*
matV
,
long
nbRow
,
long
nbCol
,
const
float
*
matDeltaSquare
,
long
nbStencilRow
,
long
nbStencilCol
,
float
diffudionRateU
,
float
diffusionRateV
,
float
feedRate
,
float
killRate
,
float
dt
)
{
...
...
src/cpp20/Sequential/GrayScott/Naive/naive_propagation.h
View file @
fc271c6b
...
...
@@ -10,7 +10,7 @@
#include <iostream>
void
naive
_propagation
(
float
*
outMatU
,
float
*
outMatV
,
const
float
*
matU
,
const
float
*
matV
,
long
nbRow
,
long
nbCol
,
void
grayscott
_propagation
(
float
*
outMatU
,
float
*
outMatV
,
const
float
*
matU
,
const
float
*
matV
,
long
nbRow
,
long
nbCol
,
const
float
*
matDeltaSquare
,
long
nbStencilRow
,
long
nbStencilCol
,
float
diffudionRateU
,
float
diffusionRateV
,
float
feedRate
,
float
killRate
,
float
dt
);
...
...
src/cpp20/Sequential/GrayScott/Program/main.cpp
View file @
fc271c6b
...
...
@@ -79,7 +79,7 @@ bool simulateImage(size_t nbRow, size_t nbCol, size_t nbImage, size_t nbExtraSte
for
(
size_t
i
(
0lu
);
i
<
nbImage
;
++
i
){
progress
.
print
();
for
(
size_t
j
(
0lu
);
j
<
nbExtraStep
;
++
j
){
naive
_propagation
(
tmpU2
,
tmpV2
,
tmpU1
,
tmpV1
,
nbRow
,
nbCol
,
grayscott
_propagation
(
tmpU2
,
tmpV2
,
tmpU1
,
tmpV1
,
nbRow
,
nbCol
,
matDeltaSquare
,
nbStencilRow
,
nbStencilCol
,
diffudionRateU
,
diffusionRateV
,
feedRate
,
killRate
,
dt
);
fullMat
.
setRow
(
i
,
tmpV2
);
...
...
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