//
// Matthias Maier, Martin Kronbichler, 2021
//
-#ifdef DEAL_II_TBB_WITH_ONEAPI
-# undef DEAL_II_WITH_TBB
-#endif
DEAL_II_NAMESPACE_OPEN
// initialize the basic multithreading information that needs to be
// passed to the DoFInfo structure
-#ifdef DEAL_II_WITH_TBB
+#if defined(DEAL_II_WITH_TBB) && !defined(DEAL_II_TBB_WITH_ONEAPI)
if (additional_data.tasks_parallel_scheme != AdditionalData::none &&
MultithreadInfo::n_threads() > 1)
{
namespace internal
{
-#ifdef DEAL_II_WITH_TBB
+#if defined(DEAL_II_WITH_TBB) && !defined(DEAL_II_TBB_WITH_ONEAPI)
# ifdef DEAL_II_TBB_WITH_ONEAPI
struct unsigned_int_pair_hash
connectivity.reinit(task_info.n_active_cells, task_info.n_active_cells);
if (do_face_integrals)
{
-#ifdef DEAL_II_WITH_TBB
+#if defined(DEAL_II_WITH_TBB) && !defined(DEAL_II_TBB_WITH_ONEAPI)
// step 1: build map between the index in the matrix-free context
// and the one in the triangulation
tbb::concurrent_unordered_map<std::pair<unsigned int, unsigned int>,
DEAL_II_NAMESPACE_CLOSE
-#ifdef DEAL_II_TBB_WITH_ONEAPI
-# define DEAL_II_WITH_TBB
-#endif
-
#endif
//
// Matthias Maier, Martin Kronbichler, 2021
//
-#ifdef DEAL_II_TBB_WITH_ONEAPI
-# undef DEAL_II_WITH_TBB
-#endif
DEAL_II_NAMESPACE_OPEN
{
namespace MatrixFreeFunctions
{
-#ifdef DEAL_II_WITH_TBB
+#if defined(DEAL_II_WITH_TBB) && !defined(DEAL_II_TBB_WITH_ONEAPI)
// This defines the TBB data structures that are needed to schedule the
// partition-partition variant
funct.vector_update_ghosts_start();
-#ifdef DEAL_II_WITH_TBB
+#if defined(DEAL_II_WITH_TBB) && !defined(DEAL_II_TBB_WITH_ONEAPI)
if (scheme != none)
{