]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix the TBB quick test. 13466/head
authorDavid Wells <drwells@email.unc.edu>
Mon, 28 Feb 2022 22:33:08 +0000 (17:33 -0500)
committerDavid Wells <drwells@email.unc.edu>
Mon, 28 Feb 2022 23:36:11 +0000 (18:36 -0500)
This should work with or without oneAPI.

tests/quick_tests/tbb.cc

index 52e3d32c6755d6e0d95901585bbde16e9bcfb3a6..cad7da6bb6cab4bf9b396c85ff9ced35d482a664 100644 (file)
@@ -18,8 +18,6 @@
 #include <deal.II/base/thread_management.h>
 #include <deal.II/base/work_stream.h>
 
-#include <tbb/task_scheduler_init.h>
-
 #include <iostream>
 
 using namespace dealii;
@@ -87,8 +85,7 @@ test2()
 int
 main()
 {
-  std::cout << "TBB will use "
-            << tbb::task_scheduler_init::default_num_threads() << " threads."
+  std::cout << "TBB will use " << MultithreadInfo::n_threads() << " threads."
             << std::endl;
 
   test1();

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.