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
46c80770
Commit
46c80770
authored
Jan 26, 2021
by
Pierre Aubert
Browse files
Add todo for debugging
parent
5a288757
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
cmake/phoenix_base_project.cmake
cmake/phoenix_base_project.cmake
+2
-2
src/cpp20/Sequential/GrayScott/Program/main_intrinsics.cpp
src/cpp20/Sequential/GrayScott/Program/main_intrinsics.cpp
+4
-2
No files found.
cmake/phoenix_base_project.cmake
View file @
46c80770
...
...
@@ -37,9 +37,9 @@ function(phoenix_base_project programName programVersion programDescritpion prog
set
(
CMAKE_CXX_FLAGS
"--std=c++2a -Wall -Werror -g -O0 -fprofile-arcs -ftest-coverage"
PARENT_SCOPE
)
else
()
if
(
GPU_MODE
)
set
(
CMAKE_CXX_FLAGS
"--std=c++17 -Wall -Werror -g -O2"
PARENT_SCOPE
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
--std=c++17 -Wall -Werror -g -O2"
PARENT_SCOPE
)
else
()
set
(
CMAKE_CXX_FLAGS
"--std=c++2a -Wall -Werror -g -O2"
PARENT_SCOPE
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
--std=c++2a -Wall -Werror -g -O2"
PARENT_SCOPE
)
endif
()
endif
()
...
...
src/cpp20/Sequential/GrayScott/Program/main_intrinsics.cpp
View file @
46c80770
...
...
@@ -59,6 +59,8 @@ bool simulateImage(size_t nbRow, size_t nbCol, size_t nbImage, size_t nbExtraSte
fullMat
.
setAllDim
(
nbCol
,
nbRow
);
fullMat
.
resize
(
nbImage
);
//TODO : create an other MatrixHdf5 to store the vectorial matrices and see what's going on
PTensor
<
float
>
tmpInU
,
tmpInV
,
tmpOutU
,
tmpOutV
;
float
*
tmpU1
=
NULL
,
*
tmpU2
=
NULL
,
*
tmpV1
=
NULL
,
*
tmpV2
=
NULL
;
allocate_temporary
(
tmpU1
,
tmpU2
,
tmpV1
,
tmpV2
,
tmpInU
,
tmpInV
,
tmpOutU
,
tmpOutV
,
nbRow
,
nbCol
);
...
...
@@ -102,8 +104,8 @@ bool simulateImage(size_t nbRow, size_t nbCol, size_t nbImage, size_t nbExtraSte
ptrVecMatStencil
,
nbStencilRow
,
nbStencilCol
,
diffudionRateU
,
diffusionRateV
,
feedRate
,
killRate
,
dt
);
//Let's update the dupplicated values
reshuffle_
averag
eDupplicateVecNeighbour
(
tmpU2
,
nbVecRow
,
nbVecCol
);
reshuffle_
averag
eDupplicateVecNeighbour
(
tmpV2
,
nbVecRow
,
nbVecCol
);
reshuffle_
updat
eDupplicateVecNeighbour
(
tmpU2
,
nbVecRow
,
nbVecCol
,
PLIB_VECTOR_SIZE_FLOAT
);
reshuffle_
updat
eDupplicateVecNeighbour
(
tmpV2
,
nbVecRow
,
nbVecCol
,
PLIB_VECTOR_SIZE_FLOAT
);
///Let's swap the pointer
swapValue
(
tmpU1
,
tmpU2
);
...
...
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