Commit c8adf2d0 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add compilation option

parent 6b9b7fe2
...@@ -5,6 +5,8 @@ file(GLOB naiveSource "${CMAKE_CURRENT_SOURCE_DIR}/Naive/*.cpp") ...@@ -5,6 +5,8 @@ file(GLOB naiveSource "${CMAKE_CURRENT_SOURCE_DIR}/Naive/*.cpp")
file(GLOB mainSource "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp") file(GLOB mainSource "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
add_executable(naive_gray_scott ${naiveSource} ${mainSource}) 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) target_link_libraries(naive_gray_scott tensor_alloc option_parser data_stream string_utils ${HDF5_CXX_LIBRARIES} TBB::tbb)
......
...@@ -68,6 +68,12 @@ bool simulateImage(size_t nbRow, size_t nbCol, size_t nbImage, float killRate, f ...@@ -68,6 +68,12 @@ bool simulateImage(size_t nbRow, size_t nbCol, size_t nbImage, float killRate, f
tmpInV.fill(1.0f); tmpInV.fill(1.0f);
tmpOutV.fill(1.0f); tmpOutV.fill(1.0f);
tmpInU.setValue(nbRow/2lu, nbCol/2lu, 1.0f);
tmpInU.setValue(nbRow/3lu, nbCol/2lu, 1.0f);
tmpInU.setValue(nbRow/2lu, nbCol/3lu, 1.0f);
tmpInU.setValue(nbRow/4lu, nbCol/2lu, 1.0f);
tmpInU.setValue(nbRow/2lu, nbCol/4lu, 1.0f);
float *tmpU1 = tmpInU.getData(), *tmpU2 = tmpOutU.getData(); float *tmpU1 = tmpInU.getData(), *tmpU2 = tmpOutU.getData();
float *tmpV1 = tmpInV.getData(), *tmpV2 = tmpOutV.getData(); float *tmpV1 = tmpInV.getData(), *tmpV2 = tmpOutV.getData();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment