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
ee294536
Commit
ee294536
authored
Jan 26, 2021
by
Pierre Aubert
Browse files
Remove debug stuff for intrinsics Gray Scott
parent
7f9259bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
14 deletions
+2
-14
src/cpp20/Sequential/GrayScott/Intrinsics/intrinsics_propagation.cpp
...equential/GrayScott/Intrinsics/intrinsics_propagation.cpp
+2
-3
src/cpp20/Sequential/GrayScott/Program/main_intrinsics.cpp
src/cpp20/Sequential/GrayScott/Program/main_intrinsics.cpp
+0
-11
No files found.
src/cpp20/Sequential/GrayScott/Intrinsics/intrinsics_propagation.cpp
View file @
ee294536
...
...
@@ -62,9 +62,8 @@ void grayscott_propagation(float * outMatVecU, float * outMatVecV, const float *
long
stencilIndexCol
(
0l
);
for
(
long
l
(
firstColStencil
);
l
<
lastColStencil
;
++
l
){
// float deltaSquare(matDeltaSquare[stencilIndexRow*nbStencilCol + stencilIndexCol]);
PRegVecf
vecDeltaSquare
(
vecOne
);
// PRegVecf vecDeltaSquare(plib_load_ps(matBroadcastDeltaSquare +
// (stencilIndexRow*nbStencilCol + stencilIndexCol)*PLIB_VECTOR_SIZE_FLOAT));
PRegVecf
vecDeltaSquare
(
plib_load_ps
(
matBroadcastDeltaSquare
+
(
stencilIndexRow
*
nbStencilCol
+
stencilIndexCol
)
*
PLIB_VECTOR_SIZE_FLOAT
));
PRegVecf
vecKLU
(
plib_load_ps
(
matVecVecU
+
(
k
*
nbVecCol
+
l
)
*
PLIB_VECTOR_SIZE_FLOAT
));
PRegVecf
vecKLV
(
plib_load_ps
(
matVecVecV
+
(
k
*
nbVecCol
+
l
)
*
PLIB_VECTOR_SIZE_FLOAT
));
...
...
src/cpp20/Sequential/GrayScott/Program/main_intrinsics.cpp
View file @
ee294536
...
...
@@ -93,13 +93,6 @@ bool simulateImage(size_t nbRow, size_t nbCol, size_t nbImage, size_t nbExtraSte
float
*
ptrVecMatStencil
=
vecMatDeltaSquare
.
getData
();
size_t
nbVecRow
(
tmpVecInV
.
getFullNbRow
()),
nbVecCol
(
tmpVecInV
.
getNbCol
());
MatrixHdf5
fullVecMat
;
fullVecMat
.
setAllDim
(
nbVecCol
,
nbVecRow
);
fullVecMat
.
resize
(
nbImage
);
//TODO : create an other MatrixHdf5 to store the vectorial matrices and see what's going on
PTensor
<
float
>
tmpScalOutV
(
AllocMode
::
ALIGNED
);
ProgressTime
progress
(
nbImage
);
...
...
@@ -120,12 +113,9 @@ bool simulateImage(size_t nbRow, size_t nbCol, size_t nbImage, size_t nbExtraSte
}
if
(
tmpVecV1
!=
tmpVecOutV
.
getData
()){
tmpScalOutV
.
fromVecToScalNeigbhour
(
tmpVecOutV
);
fullVecMat
.
setRow
(
i
,
tmpVecOutV
.
getData
());
}
else
{
tmpScalOutV
.
fromVecToScalNeigbhour
(
tmpVecInV
);
//The pointers were swaped
fullVecMat
.
setRow
(
i
,
tmpVecInV
.
getData
());
}
fullMat
.
setRow
(
i
,
tmpScalOutV
.
getData
());
// fullMat.setRow(i, tmpVecV1);
...
...
@@ -135,7 +125,6 @@ bool simulateImage(size_t nbRow, size_t nbCol, size_t nbImage, size_t nbExtraSte
std
::
cerr
<<
"Done"
<<
std
::
endl
;
//Let's save the output file
fullMat
.
write
(
outputFile
);
fullVecMat
.
write
(
"./output_vec.h5"
);
return
true
;
}
...
...
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