Skip to content

Commit 6e80b72

Browse files
author
Gonzalo Juarez
committed
remove fastflow support
1 parent ead0a44 commit 6e80b72

19 files changed

+4
-1815
lines changed

CMakeLists.txt

-31
Original file line numberDiff line numberDiff line change
@@ -101,37 +101,6 @@ if (GRPPI_OMP_ENABLE)
101101
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
102102
endif (GRPPI_OMP_ENABLE)
103103

104-
#FastFlow library
105-
find_package(FF)
106-
if (FF_FOUND)
107-
if (${CMAKE_CXX_STANDARD} STREQUAL "17")
108-
option(GRPPI_FF_ENABLE "Require FastFlow library" OFF)
109-
set(GRPPI_FF_ENABLE OFF CACHE BOOL "Require FastFlow library" FORCE)
110-
message(STATUS "FastFlow not supported in C++17")
111-
else ()
112-
option(GRPPI_FF_ENABLE "Require FastFlow library" ON)
113-
message(STATUS "FastFlow found")
114-
endif ()
115-
else ()
116-
option(GRPPI_FF_ENABLE "Require FastFlow library" OFF)
117-
set(GRPPI_FF_ENABLE OFF CACHE BOOL "Require FastFlow library" FORCE)
118-
message(STATUS "FastFlow not found")
119-
message(STATUS " GRPPI_FF_ENABLE has been set to OFF")
120-
message(STATUS " To enable it, please, first install FastFlow")
121-
message(STATUS " https://github.com/fastflow/fastflow")
122-
endif ()
123-
124-
message(STATUS "FastFlow: " ${GRPPI_FF_ENABLE})
125-
if (GRPPI_FF_ENABLE)
126-
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
127-
set(GRPPI_FF_ENABLE OFF CACHE BOOL "Require Fastflow library" FORCE)
128-
message(WARNING "Fastflow is not currently supported in Clang")
129-
else ()
130-
add_definitions(-DGRPPI_FF)
131-
include_directories(${FF_INCLUDE_DIRS})
132-
endif ()
133-
endif (GRPPI_FF_ENABLE)
134-
135104
# Doxygen Documentation
136105
option(GRPPI_DOXY_ENABLE "Require Doxygen library" OFF)
137106
if (GRPPI_DOXY_ENABLE)

cmake.modules/FindFF.cmake

-43
This file was deleted.

include/grppi/common/configuration.h

-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ enum class execution_backend {
3131
native,
3232
omp,
3333
tbb,
34-
ff
3534
};
3635

3736
inline std::ostream & operator<<(std::ostream & os, execution_backend be) {
@@ -40,7 +39,6 @@ inline std::ostream & operator<<(std::ostream & os, execution_backend be) {
4039
case execution_backend::native: return os << "native";
4140
case execution_backend::omp: return os << "omp";
4241
case execution_backend::tbb: return os << "tbb";
43-
case execution_backend::ff: return os << "ff";
4442
default: return os << "unknown";
4543
}
4644
}
@@ -155,9 +153,6 @@ class configuration {
155153
else if (std::strcmp("tbb", str) == 0) {
156154
dynamic_backend_ = execution_backend::tbb;
157155
}
158-
else if (std::strcmp("ff", str) == 0) {
159-
dynamic_backend_ = execution_backend::ff;
160-
}
161156
else {
162157
std::cerr << "GrPPI: Invalid backend \"" << str << "\"\n";
163158
}

include/grppi/dyn/dynamic_execution.h

+2-21
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "../native/parallel_execution_native.h"
2121
#include "../tbb/parallel_execution_tbb.h"
2222
#include "../omp/parallel_execution_omp.h"
23-
#include "../ff/parallel_execution_ff.h"
2423
#include "../common/configuration.h"
2524

2625
#include <memory>
@@ -46,9 +45,6 @@ class dynamic_execution {
4645
case execution_backend::tbb:
4746
execution_ = make_execution<parallel_execution_tbb>();
4847
break;
49-
case execution_backend::ff:
50-
execution_ = make_execution<parallel_execution_ff>();
51-
break;
5248
}
5349
}
5450

@@ -324,26 +320,11 @@ GRPPI_TRY_PATTERN(parallel_execution_tbb,PATTERN,__VA_ARGS__)
324320
#define GRPPI_TRY_PATTERN_TBB(PATTERN,...)
325321
#endif
326322

327-
#ifdef GRPPI_FF
328-
#define GRPPI_TRY_PATTERN_FF(PATTERN,...) \
329-
GRPPI_TRY_PATTERN(parallel_execution_ff,PATTERN,__VA_ARGS__)
330-
#else
331-
#define GRPPI_TRY_PATTERN_FF(PATTERN,...)
332-
#endif
333-
334323
#define GRPPI_TRY_PATTERN_ALL(...) \
335324
GRPPI_TRY_PATTERN(sequential_execution, __VA_ARGS__) \
336325
GRPPI_TRY_PATTERN(parallel_execution_native, __VA_ARGS__) \
337326
GRPPI_TRY_PATTERN_OMP(__VA_ARGS__) \
338327
GRPPI_TRY_PATTERN_TBB(__VA_ARGS__) \
339-
GRPPI_TRY_PATTERN_FF(__VA_ARGS__) \
340-
GRPPI_PATTERN_NOT_IMPLEMENTED(__VA_ARGS__)\
341-
342-
#define GRPPI_TRY_PATTERN_ALL_NOFF(...) \
343-
GRPPI_TRY_PATTERN(sequential_execution, __VA_ARGS__) \
344-
GRPPI_TRY_PATTERN(parallel_execution_native, __VA_ARGS__) \
345-
GRPPI_TRY_PATTERN_OMP(__VA_ARGS__) \
346-
GRPPI_TRY_PATTERN_TBB(__VA_ARGS__) \
347328
GRPPI_PATTERN_NOT_IMPLEMENTED(__VA_ARGS__)\
348329

349330
template <typename ... InputIterators, typename OutputIterator,
@@ -403,7 +384,7 @@ auto dynamic_execution::divide_conquer(
403384
Solver && solve_op,
404385
Combiner && combine_op) const
405386
{
406-
GRPPI_TRY_PATTERN_ALL_NOFF(divide_conquer, std::forward<Input>(input),
387+
GRPPI_TRY_PATTERN_ALL(divide_conquer, std::forward<Input>(input),
407388
std::forward<Divider>(divide_op),
408389
std::forward<Solver>(solve_op),
409390
std::forward<Combiner>(combine_op));
@@ -442,7 +423,7 @@ void dynamic_execution::stream_pool(Population & population,
442423
Evaluation && eval_op,
443424
Predicate && termination_op) const
444425
{
445-
GRPPI_TRY_PATTERN_ALL_NOFF(stream_pool, population, std::forward<Selection>
426+
GRPPI_TRY_PATTERN_ALL(stream_pool, population, std::forward<Selection>
446427
(selection_op),
447428
std::forward<Evolution>(evolve_op),
448429
std::forward<Evaluation>(eval_op),

include/grppi/ff/detail/fastflow_allocator.h

-67
This file was deleted.

include/grppi/ff/detail/filter_nodes.h

-98
This file was deleted.

include/grppi/ff/detail/iteration_nodes.h

-50
This file was deleted.

0 commit comments

Comments
 (0)