gnu: vtk: Enable OpenMP, TBB, and Open MPI support.

* gnu/packages/image-processing.scm (vtk)[arguments]: Pass options to
enable OpenMP, TBB, and MPI.
[inputs]: Add OPENMPI.
[propagated-inputs]: Add TBB.
This commit is contained in:
Ludovic Courtès 2023-03-14 09:52:09 +01:00 committed by Ludovic Courtès
parent 02b1eb644a
commit eff652793f
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1,7 +1,7 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017 John Darrington <jmd@gnu.org> ;;; Copyright © 2017 John Darrington <jmd@gnu.org>
;;; Copyright © 2017, 2019, 2022 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2017, 2019, 2022 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2014, 2021-2022 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2014, 2021-2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org> ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 20182021 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 20182021 Tobias Geerinckx-Rice <me@tobias.gr>
@ -380,6 +380,10 @@ (define-public vtk
"-DVTK_MODULE_ENABLE_VTK_RenderingExternal=YES" ; For F3D "-DVTK_MODULE_ENABLE_VTK_RenderingExternal=YES" ; For F3D
"-DVTK_WRAP_PYTHON=ON" "-DVTK_WRAP_PYTHON=ON"
"-DVTK_PYTHON_VERSION:STRING=3" "-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 #:tests? #f)) ;XXX: test data not included
(inputs (inputs
@ -402,17 +406,20 @@ (define-public vtk
mesa mesa
netcdf netcdf
libpng libpng
libtiff
openmpi
proj-7 proj-7
python python
;("pugixml" ,pugixml) ;("pugixml" ,pugixml)
sqlite sqlite
libtiff
xorgproto xorgproto
zlib)) zlib))
(propagated-inputs (propagated-inputs
;; VTK's 'VTK-vtk-module-find-packages.cmake' calls ;; VTK's 'VTK-vtk-module-find-packages.cmake' calls
;; 'find_package(THEORA)', which in turns looks for libogg. ;; 'find_package(THEORA)', which in turns looks for libogg. Likewise for
(list libogg)) ;; TBB.
(list libogg
tbb))
(home-page "https://vtk.org/") (home-page "https://vtk.org/")
(synopsis "Libraries for 3D computer graphics") (synopsis "Libraries for 3D computer graphics")
(description (description