Skip to content

Commit

Permalink
Dummy exclusive filter for the JIT backend
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Nov 23, 2020
1 parent b71efc7 commit 0d8abbf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vexcl/backend/jit/filter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ struct Name {
std::string devname;
};

// The JIT backend does not support the exclusive filter functionality,
// but provides the filter for compatibility.
template <class Filter>
Filter Exclusive(Filter&& filter) {
return std::forward<Filter>(filter);
}

inline std::vector< std::function<bool(const backend::device&)> >
backend_env_filters()
{
Expand Down

0 comments on commit 0d8abbf

Please sign in to comment.