Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 590746

Summary: sci-visualization/paraview-5.1: OpenMP and OpenGL2 features are always disabled
Product: Gentoo Linux Reporter: Julien J Tierny <julien.tierny>
Component: Current packagesAssignee: Matthias Maier <tamiko>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Julien J Tierny 2016-08-08 09:41:54 UTC
hi,

OpenMP and OpenGL2 features are always disabled when building ParaView 5.1. 

Many VTK filters use OpenMP and most commodity hardware have several cores now. Thus, it'd be nice to be able to control the activation of this feature.

ParaView 5 introduces several nice screen-space rendering features that can only be supported with OpenGL2 enabled. Also, I suspect the legacy rendering backend (used currently by default in Gentoo) will be marked deprecated pretty soon upstream.

Here's a short fix to apply in the src_configure() function (the variable IUSE should be updated accordingly):

[code]
if use openmp; then
  mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE=OpenMP )
fi
if use opengl2; then
  mycmakeargs+=( -DVTK_RENDERING_BACKEND=OpenGL2 )
  mycmakeargs+=( -DVTK_USE_SYSTEM_GL2PS=OFF )
fi
[/code]

Several things here:
- I don't believe such a thing as the opengl2 use flag exists (maybe it should?)
- for some reason, I can't get OpenGL2 support to compile in conjunction with gl2ps (hence I disabled the latter).

Please ping me if you need any further information.

best,
Comment 1 Matthias Maier gentoo-dev 2016-08-19 04:19:14 UTC
I have pushed an ebuild for 5.1.2 to the tree that enables opengl2 as backed (unconditionally). Further the ebuild got an "openmp" use flag.

Thanks a lot for the suggestion!


commit d4d698ee89d2dd6931f726dd77a710daad36b33c
Author: Matthias Maier <tamiko@gentoo.org>
Date:   Thu Aug 18 22:05:55 2016 -0500

    sci-visualization/paraview: ver bump, enable openmp support, bug #590746
    
    - version bump to 5.1.0
    - add USE=openmp to control openmp support
    - switch to OpenGL2 rendering engine.
    
    Package-Manager: portage-2.2.28