From 03b3087f86b3aca9fa2dedfb1f86207305ba4719 Mon Sep 17 00:00:00 2001 From: IvBu <ivan.buntic@iws.uni-stuttgart.de> Date: Mon, 17 Feb 2025 09:17:04 +0100 Subject: [PATCH] [slides][problem] Info on parallelism backend. --- slides/problem.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/slides/problem.md b/slides/problem.md index ece64e51..18da55ee 100644 --- a/slides/problem.md +++ b/slides/problem.md @@ -855,6 +855,22 @@ Multithreading = false Defaults to `true`. +## Shared-memory parallelism + +Set multithreading backend to e.g. `OpenMP` in `dumux/cmake.opts` before building the modules: +```cmake +DUMUX_MULTITHREADING_BACKEND="-DDUMUX_MULTITHREADING_BACKEND=OpenMP" +``` +Other valid options are: `TBB`,Cpp,`Kokkos`,`Serial`. If left empty, it is automatically set by CMake. If no suitable backend is found, CMake defaults to `Serial`. + +## Shared-memory parallelism + +During `dunecontrol`, the chosen backend is displayed in the output via +```bash +-- Dumux multithreading backend: OpenMP +``` + + # Exercises ## Exercises -- GitLab