[Paraview] gpu_shader4 extension is not supported

Burlen Loring bloring at lbl.gov
Mon May 15 13:12:19 EDT 2017


Hi Patrick,

Your output shows you enabled some gpu specific drivers, and GLX. I 
think that is going to screw things up for you. Best to disable all of 
them but the ones you specifically need and to explicitly disable glx.

Here is how I configured OSMesa for a Cray

    ../mesa-17.0.2/configure --enable-texture-float --disable-glx
    --disable-dri --disable-egl --disable-gles1 --disable-gles2
    --disable-gbm --disable-driglx-direct --disable-xvmc
    --enable-gallium-osmesa --with-gallium-drivers=swrast,swr
    --prefix=/usr/common/software/ParaView/mesa/17.0.2/

And here is how ParaView is configured on the same system. When building 
ParaView with OSMesa the ParaView GUI should be disabled to prevent 
window system dependencies(X11, Qt etc). Note that there are a number of 
options in play to configure for OSMesa. I've highlighted them in blue 
below. This info is also on the Wiki.

    #!/bin/bash

    LIB_EXT=so
    PY_LIB_EXT=so
    GLU_LIB_EXT=so
    MESA_LIB_EXT=so

    COMP_FLAGS="-fPIC -Ofast -march=native -mtune=native"
    CCOMP=`which gcc`
    CXXCOMP=`which g++`
    FTNCOMP=`which gfortran`

    export XTPE_LINK_TYPE=dynamic

    PYTHON=/usr/common/software/ParaView/python/2.7.12
    GLU=/usr/common/software/ParaView/glu/9.0.0/
    BOOST=/usr/common/software/ParaView/boost/1.63.0/
    MESA=/usr/common/software/ParaView/mesa/17.0.2/

    RCA=/opt/cray/rca/2.1.6_g2c60fbf-2.265/lib64
    ALPS=/opt/cray/alps/6.3.4-2.21/lib64
    XPMEM=/opt/cray/xpmem/2.1.1_gf9c9084-2.38/lib64
    DMAPP=/opt/cray/dmapp/7.1.1-39.37/lib64
    PMI=/opt/cray/pe/pmi/5.0.10-1.0000.11050.0.0.ari/lib64
    UGNI=/opt/cray/ugni/6.0.15-2.2/lib64
    UDREG=/opt/cray/udreg/2.3.2-7.54/lib64
    MPT=/opt/cray/pe/mpt/7.4.4/gni/mpich-gnu/5.1/lib

    cmake \
         -DCMAKE_C_COMPILER=$CCOMP \
         -DCMAKE_CXX_COMPILER=$CXXCOMP \
         -DCMAKE_Fortran_COMPILER=$FTNCOMP \
         -DCMAKE_BUILD_TYPE=Release \
         -DCMAKE_CXX_FLAGS=$COMP_FLAGS \
         -DCMAKE_C_FLAGS=$COMP_FLAGS \
         -DBUILD_SHARED_LIBS=OFF \
         -DPARAVIEW_ENABLE_PYTHON=ON \
         -DPYTHON_EXECUTABLE=$PYTHON/bin/python \
         -DPYTHON_INCLUDE_DIR=$PYTHON/include/python2.7 \
         -DPYTHON_LIBRARY=$PYTHON/lib/libpython2.7.$PY_LIB_EXT \
         -DPYTHON_UTIL_LIBRARY=/usr/lib64/libutil.$PY_LIB_EXT \
         -DPARAVIEW_FREEZE_PYTHON=OFF \
         -DBUILD_TESTING=OFF \
    *-DPARAVIEW_BUILD_QT_GUI=OFF \**
    **    -DCMAKE_X_LIBS="" \**
    **    -DX11_LIBRARIES="" \**
    **    -DVTK_USE_X=OFF \**
    **    -DVTK_OPENGL_HAS_OSMESA=ON \**
    **    -DOSMESA_INCLUDE_DIR=$MESA/include \**
    **-DOSMESA_LIBRARY="$MESA/lib/libOSMesa.$MESA_LIB_EXT;" \**
    **    -DOPENGL_INCLUDE_DIR=$MESA/include \**
    **-DOPENGL_gl_LIBRARY=$MESA/lib/libOSMesa.$MESA_LIB_EXT \**
    **    -DOPENGL_glu_LIBRARY=$GLU/lib/libGLU.$GLU_LIB_EXT \**
    **    -DOPENGL_xmesa_INCLUDE_DIR=$MESA/include \*
         -DPARAVIEW_USE_MPI=ON \
         -DMPI_CXX_LIBRARIES="" \
    -DMPI_C_LIBRARIES="-Wl,--start-group;$MPT/libmpich.$LIB_EXT;$PMI/libpmi.$LIB_EXT;$DMAPP/libdmapp.$LIB_EXT;$MPT/libmpichcxx.$LIB_EXT;$UGNI/libugni.$LIB_EXT;$ALPS/libalpslli.$LIB_EXT;$ALPS/libalpsutil.$LIB_EXT;$RCA/librca.$LIB_EXT;$XPMEM/libxpmem.$LIB_EXT;-Wl,--end-group;"
    \
         -DMPI_INCLUDE_PATH=$MPT/../include \
         -DMPIEXEC=`which srun` \
         -DMPI_CXX_LIBRARIES="" \
         -DPARAVIEW_USE_VISITBRIDGE=ON \
         -DBoost_INCLUDE_DIR=$BOOST/include \
         -DVISIT_BUILD_READER_CGNS=OFF \
         -DVISIT_BUILD_READER_Silo=OFF \
         -DVTK_USE_SYSTEM_HDF5=OFF \
         -DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON \
         $*



On 05/15/2017 02:24 AM, Patrick Begou wrote:
> Hi Chuck, Hi Burlen
>
> Thanks for your reply.
>
> I've attached the setup of my mesa installation. I have more options 
> enabled in my config than in yours.  May be too much as this frontend 
> has no GPU available.
>
> I'll try a setup with -DVTK_USE_X=OFF as Burlen suggest, but is it 
> possible to build paraview GUI with this option ? It is not clear for me.
>
> Patrick
>
>         prefix:          /share/apps/paraview-5.3.0
>         exec_prefix:     ${prefix}
>         libdir:          ${exec_prefix}/lib
>         includedir:      ${prefix}/include
>
>         OpenGL:          yes (ES1: yes ES2: yes)
>
>         OSMesa:          libOSMesa (Gallium)
>
>         DRI platform:    drm
>         DRI drivers:     i915 i965 nouveau r200 radeon swrast
>         DRI driver dir:  ${libdir}/dri
>         GLX:             DRI-based
>
>         EGL:             yes
>         EGL platforms:   x11 drm
>         EGL drivers:     builtin:egl_dri2 builtin:egl_dri3
>         GBM:             yes
>
>         Vulkan drivers:  no
>
>         llvm:            yes
>         llvm-config: /share/apps/paraview-5.3.0/bin/llvm-config
>         llvm-version:    4.0.0
>
>         Gallium drivers: r300 r600 svga swrast
>         Gallium st:      mesa xvmc
>
>         HUD extra stats: no
>         HUD lmsensors:   no
>
>         Shared libs:     yes
>         Static libs:     no
>         Shared-glapi:    yes
>
>         CFLAGS:          -g -O2 -Wall -std=c99 
> -Werror=implicit-function-declaration -Werror=missing-prototypes 
> -fno-math-errno -fno-trapping-math
>         CXXFLAGS:        -g -O2 -Wall -fno-math-errno -fno-trapping-math
>         Macros:          -D__STDC_LIMIT_MACROS 
> -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -DUSE_SSE41 
> -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DUSE_X86_64_ASM -DHAVE_XLOCALE_H 
> -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_DLOPEN 
> -DHAVE_POSIX_MEMALIGN -DHAVE_LIBDRM -DGLX_USE_DRM 
> -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS 
> -DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE -DHAVE_LLVM=0x0400 
> -DMESA_LLVM_VERSION_PATCH=0
>
>         LLVM_CFLAGS:     -I/share/apps/paraview-5.3.0/include 
> -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
>         LLVM_CXXFLAGS:   -I/share/apps/paraview-5.3.0/include 
> -std=c++11 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS 
> -D__STDC_LIMIT_MACROS
>         LLVM_CPPFLAGS:   -I/share/apps/paraview-5.3.0/include 
> -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
>         LLVM_LDFLAGS:    -L/share/apps/paraview-5.3.0/lib
>
>         PYTHON2:         python2.7
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170515/adce4cf9/attachment.html>


More information about the ParaView mailing list