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
c8adf2d0
Commit
c8adf2d0
authored
Jan 14, 2021
by
Pierre Aubert
Browse files
Add compilation option
parent
6b9b7fe2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/cpp20/Sequential/GrayScott/CMakeLists.txt
src/cpp20/Sequential/GrayScott/CMakeLists.txt
+2
-0
src/cpp20/Sequential/GrayScott/main.cpp
src/cpp20/Sequential/GrayScott/main.cpp
+6
-0
No files found.
src/cpp20/Sequential/GrayScott/CMakeLists.txt
View file @
c8adf2d0
...
...
@@ -5,6 +5,8 @@ file(GLOB naiveSource "${CMAKE_CURRENT_SOURCE_DIR}/Naive/*.cpp")
file
(
GLOB mainSource
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/*.cpp"
)
add_executable
(
naive_gray_scott
${
naiveSource
}
${
mainSource
}
)
set_property
(
TARGET naive_gray_scott PROPERTY COMPILE_FLAGS
"-O3"
)
target_link_libraries
(
naive_gray_scott tensor_alloc option_parser data_stream string_utils
${
HDF5_CXX_LIBRARIES
}
TBB::tbb
)
...
...
src/cpp20/Sequential/GrayScott/main.cpp
View file @
c8adf2d0
...
...
@@ -68,6 +68,12 @@ bool simulateImage(size_t nbRow, size_t nbCol, size_t nbImage, float killRate, f
tmpInV
.
fill
(
1.0
f
);
tmpOutV
.
fill
(
1.0
f
);
tmpInU
.
setValue
(
nbRow
/
2lu
,
nbCol
/
2lu
,
1.0
f
);
tmpInU
.
setValue
(
nbRow
/
3lu
,
nbCol
/
2lu
,
1.0
f
);
tmpInU
.
setValue
(
nbRow
/
2lu
,
nbCol
/
3lu
,
1.0
f
);
tmpInU
.
setValue
(
nbRow
/
4lu
,
nbCol
/
2lu
,
1.0
f
);
tmpInU
.
setValue
(
nbRow
/
2lu
,
nbCol
/
4lu
,
1.0
f
);
float
*
tmpU1
=
tmpInU
.
getData
(),
*
tmpU2
=
tmpOutU
.
getData
();
float
*
tmpV1
=
tmpInV
.
getData
(),
*
tmpV2
=
tmpOutV
.
getData
();
...
...
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