Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 590746 - sci-visualization/paraview-5.1: OpenMP and OpenGL2 features are always disabled
Summary: sci-visualization/paraview-5.1: OpenMP and OpenGL2 features are always disabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-08 09:41 UTC by Julien J Tierny
Modified: 2016-08-19 04:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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