Subject: [PATCH 1/2] =?UTF-8?q?gnu:=20vtk:=20Enable=20OpenMP, =20TBB, =20and?= Open MPI support.

From: Ludovic Courtès <[email-masked]>
Date: Tue, 14 Mar 2023 12:06:32 +0100

From: Ludovic Courtès <[email-masked]>

* gnu/packages/image-processing.scm (vtk)[arguments]: Pass options to
enable OpenMP, TBB, and MPI.
[inputs]: Add TBB and OPENMPI.
---
 gnu/packages/image-processing.scm | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 6f51499142..a612544232 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -1,7 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2017 John Darrington <[email-masked]>
 ;;; Copyright © 2017, 2019, 2022 Ricardo Wurmus <[email-masked]>
-;;; Copyright © 2014, 2021-2022 Ludovic Courtès <[email-masked]>
+;;; Copyright © 2014, 2021-2023 Ludovic Courtès <[email-masked]>
 ;;; Copyright © 2014 Mark H Weaver <[email-masked]>
 ;;; Copyright © 2016 Eric Bavier <[email-masked]>
 ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <[email-masked]>
@@ -380,6 +380,10 @@ (define-public vtk
                            "-DVTK_MODULE_ENABLE_VTK_RenderingExternal=YES" ; For F3D
                            "-DVTK_WRAP_PYTHON=ON"
                            "-DVTK_PYTHON_VERSION:STRING=3"
+
+                           "-DVTK_SMP_ENABLE_OPENNMP=ON"
+                           "-DVTK_SMP_ENABLE_TBB=ON"
+                           "-DVTK_USE_MPI=ON"
                            )
        #:tests? #f))        ;XXX: test data not included
     (inputs
@@ -402,11 +406,13 @@ (define-public vtk
            mesa
            netcdf
            libpng
+           libtiff
+           openmpi
            proj-7
            python
            ;("pugixml" ,pugixml)
            sqlite
-           libtiff
+           tbb
            xorgproto
            zlib))
     (propagated-inputs
-- 
2.39.2