[Paraview] Query on Paraview CPU vs GPU acceleration

2017-02-27 Thread Bishwajit Dutta
Hi All,


I am trying to compile and run Paraview 5.0.1 with both CPU and GPU
acceleration on ubuntu server with NVIDIA cards. I am able to successfully
run a pvpython script.

However in both below cases I am able to see CPU power getting consumed
when the script is run.
I am confused on the accelerator being used.

For GPU:
===
I compiled with the below options:

cmake ../ -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
-DPARAVIEW_ENABLE_CATALYST=ON -DPARAVIEW_ENABLE_PYTHON=ON
-DPYTHON_LIBRARY=$PYTHON_LIBRARY -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_DIR
-DPARAVIEW_USE_MPI=ON -DMPI_HEADER_PATH=$MPI_HEADER_PATH
-DCMAKE_INSTALL_PREFIX=$BD_INSTALL_PATH -DPARAVIEW_BUILD_QT_GUI=OFF
-DVTK_USE_X=OFF

For CPU:

I compiled mesa, glu libs etc. and the compiled Paraview with the below
options

I run the script with
#pvpython --mesa-llvm 

cmake ../ -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
-DPARAVIEW_ENABLE_CATALYST=ON -DPARAVIEW_ENABLE_PYTHON=ON
-DPYTHON_LIBRARY=$PYTHON_LIBRARY -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_DIR
-DPARAVIEW_USE_MPI=ON -DMPI_HEADER_PATH=$MPI_HEADER_PATH
-DCMAKE_INSTALL_PREFIX=$BD_INSTALL_PATH -DPARAVIEW_BUILD_QT_GUI=OFF
-DVTK_USE_X=OFF -DOPENGL_INCLUDE_DIR=$BD_INSTALL_PATH/include
-DOPENGL_gl_LIBRARY=$BD_INSTALL_PATH/lib/libOSMesa.so
-DOPENGL_glu_LIBRARY=$BD_INSTALL_PATH/lib/libGLU.so
-DVTK_OPENGL_HAS_OSMESA=ON -DOSMESA_INCLUDE_DIR=$BD_INSTALL_PATH/include
-DOSMESA_LIBRARY=$BD_INSTALL_PATH/lib/libOSMesa.so

Thanks in advance for help on this.

If this all is running in CPU then how do I compile it for GPU without
x-windows (i.e. on server)


BR,
Bishwajit
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] paraview compilation issue

2017-02-15 Thread Bishwajit Dutta
Hi All,

I configured paraview to compile for CPU rendering with the below option on
ubuntu 14.04 and Python 2.7.6:

cmake ../ -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release
-DPARAVIEW_ENABLE_CATALYST=ON -DPARAVIEW_ENABLE_PYTHON=ON
-DPYTHON_LIBRARY=$PYTHON_LIBRARY -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE_DIR
-DPARAVIEW_USE_MPI=ON -DMPI_HEADER_PATH=$MPI_HEADER_PATH
-DCMAKE_INSTALL_PREFIX=$BD_INSTALL_PATH -DPARAVIEW_BUILD_QT_GUI=OFF
-DVTK_USE_X=OFF -DOPENGL_INCLUDE_DIR=$BD_INSTALL_PATH/include
-DOPENGL_gl_LIBRARY=$BD_INSTALL_PATH/lib/libOSMesa.so
-DOPENGL_glu_LIBRARY=$BD_INSTALL_PATH/lib/libGLU.so
-DVTK_OPENGL_HAS_OSMESA=ON -DOSMESA_INCLUDE_DIR=$BD_INSTALL_PATH/include
-DOSMESA_LIBRARY=$BD_INSTALL_PATH/lib/libOSMesa.so

Now I am getting the below compilation error:

LOGs-
#make

...
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_Keys(_object*, _object*)':
PyVTKTemplate.cxx:(.text+0x1511): undefined reference to `PyArg_ParseTuple'
PyVTKTemplate.cxx:(.text+0x1527): undefined reference to `PyModule_GetDict'
PyVTKTemplate.cxx:(.text+0x1534): undefined reference to `PyList_New'
PyVTKTemplate.cxx:(.text+0x156c): undefined reference to `PyDict_Next'
PyVTKTemplate.cxx:(.text+0x1597): undefined reference to `PyList_Append'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_Size(_object*)':
PyVTKTemplate.cxx:(.text+0x15c5): undefined reference to `PyModule_GetDict'
PyVTKTemplate.cxx:(.text+0x160c): undefined reference to `PyDict_Next'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_New':
PyVTKTemplate.cxx:(.text+0x1679): undefined reference to `PyType_Ready'
PyVTKTemplate.cxx:(.text+0x1691): undefined reference to `PyTuple_New'
PyVTKTemplate.cxx:(.text+0x169c): undefined reference to
`PyString_FromString'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_AddItem':
PyVTKTemplate.cxx:(.text+0x172c): undefined reference to `PyModule_GetDict'
PyVTKTemplate.cxx:(.text+0x173a): undefined reference to
`PyDict_SetItemString'
PyVTKTemplate.cxx:(.text+0x174a): undefined reference to `PyExc_TypeError'
PyVTKTemplate.cxx:(.text+0x1759): undefined reference to `PyErr_SetString'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o: In function
`PyVTKTemplate_Repr(_object*)':
PyVTKTemplate.cxx:(.text+0x4a): undefined reference to `PyString_FromFormat'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x8):
undefined reference to `PyType_Type'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x90):
undefined reference to `PyObject_GenericGetAttr'
CMakeFiles/vtkWrappingPythonCore.dir/PyVTKTemplate.cxx.o:(.data.rel+0x100):
undefined reference to `PyModule_Type'
CMakeFiles/vtkWrappingPythonCore.dir/vtkSmartPyObject.cxx.o: In function
`vtkSmartPyObject::~vtkSmartPyObject()':
vtkSmartPyObject.cxx:(.text+0x35): undefined reference to `Py_IsInitialized'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libvtkWrappingPython27Core-pv5.0.so.1] Error 1
make[1]: ***
[VTK/Wrapping/PythonCore/CMakeFiles/vtkWrappingPythonCore.dir/all] Error 2
make: *** [all] Error 2

--

I have set the python lib and include paths. And also took care to do
"apt-get install python-dev".

Thank you in advance for help as I am new and running out of ideas.

Also do the configuration options look ok for CPU based rendering?

BR,
Bishwajit
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] (no subject) 5.0.0 Compilation issue

2017-02-13 Thread Bishwajit Dutta
Adding subject

On Mon, Feb 13, 2017 at 2:16 PM, Bishwajit Dutta <bdu...@vt.edu> wrote:

> Hi All,
>
> I am trying to compile Paraview 5.0.0 on Ubuntu 14.04 but I am running
> into the below compilation issue. My machine is connected to the network (I
> tested it).
> Is there something wrong with the kitware URLs?
>
> logs--
>
> CMake Error at /home/bd/gohan_mount/bdutta/PARAVIEW/PV5.0.0/ParaView-v5.
> 0.0-source/CMake/ExternalData.cmake:749 (message):
>   Object MD5=b10bd3f7136ef809f1df7ad5c94c553f not found at:
>
> http://midas3.kitware.com/midas/api/rest?method=midas.
> bitstream.download=b10bd3f7136ef809f1df7ad5c94c553f=MD5
> ("Couldn't connect to server")
> http://www.paraview.org/files/ExternalData/MD5/
> b10bd3f7136ef809f1df7ad5c94c553f ("Couldn't connect to server")
> Call Stack (most recent call first):
>   /home/bd/gohan_mount/bdutta/PARAVIEW/PV5.0.0/ParaView-v5.
> 0.0-source/CMake/ExternalData.cmake:771 (_ExternalData_download_object)
>
>
> make[2]: *** [ExternalData/Testing/Data/Baseline/pqCoreBasicApp.png.md5-stamp]
> Error 1
> make[1]: *** [CMakeFiles/ParaViewData.dir/all] Error 2
> make: *** [all] Erro
>
> -
>
> Also I wanted to run a paraview python script with CPU acceleration. Will
> this compilation generate
> pvpython and can I pass it  --mesa-llvm for running the script (I assume
> by default it will use GPU acceleration as I have NVIDIA GPU on my system)?
>
>
> Thank you for this.
>
> BR,
> Bishwajit
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] (no subject)

2017-02-13 Thread Bishwajit Dutta
Hi All,

I am trying to compile Paraview 5.0.0 on Ubuntu 14.04 but I am running into
the below compilation issue. My machine is connected to the network (I
tested it).
Is there something wrong with the kitware URLs?

logs--

CMake Error at
/home/bd/gohan_mount/bdutta/PARAVIEW/PV5.0.0/ParaView-v5.0.0-source/CMake/ExternalData.cmake:749
(message):
  Object MD5=b10bd3f7136ef809f1df7ad5c94c553f not found at:


http://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download=b10bd3f7136ef809f1df7ad5c94c553f=MD5
("Couldn't connect to server")

http://www.paraview.org/files/ExternalData/MD5/b10bd3f7136ef809f1df7ad5c94c553f
("Couldn't connect to server")
Call Stack (most recent call first):

/home/bd/gohan_mount/bdutta/PARAVIEW/PV5.0.0/ParaView-v5.0.0-source/CMake/ExternalData.cmake:771
(_ExternalData_download_object)


make[2]: ***
[ExternalData/Testing/Data/Baseline/pqCoreBasicApp.png.md5-stamp] Error 1
make[1]: *** [CMakeFiles/ParaViewData.dir/all] Error 2
make: *** [all] Erro

-

Also I wanted to run a paraview python script with CPU acceleration. Will
this compilation generate
pvpython and can I pass it  --mesa-llvm for running the script (I assume by
default it will use GPU acceleration as I have NVIDIA GPU on my system)?


Thank you for this.

BR,
Bishwajit
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Query on ccmake for building Paraview

2017-02-09 Thread Bishwajit Dutta
Chuck and Ben,

Thank you for responses.

I did the below as per your suggestion for cmake 2.8.8 but still I am
facing compilation problems.

​1)
set BUILD_CursesDialog=ON.
2) installed
​
 libncurses5-dev
3) Installed qt4
then got compilation error:
---
loading initial cache file
/home/ubuntu/Paraview/cmake-2.8.8/Bootstrap.cmk/InitialCacheFlags.cmake
Curses libraries were not found. Curses GUI for CMake will not be built.
-- Enable ninja generator.
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found version "4.8.6")
-- Performing Test QT4_WORKS
-- Performing Test QT4_WORKS - Success
CMake Error: The following variables are used in this project, but they are
set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake
files:
CURSES_CURSES_H_PATH
   used as include directory in directory
/home/ubuntu/Paraview/cmake-2.8.8/Source
   used as include directory in directory
/home/ubuntu/Paraview/cmake-2.8.8/Source
   used as include directory in directory
/home/ubuntu/Paraview/cmake-2.8.8/Source
   used as include directory in directory
/home/ubuntu/Paraview/cmake-2.8.8/Source
   used as include directory in directory
/home/ubuntu/Paraview/cmake-2.8.8/Source
   used as include directory in directory
/home/ubuntu/Paraview/cmake-2.8.8/Source
   used as include directory in directory
/home/ubuntu/Paraview/cmake-2.8.8/Source

-- Configuring incomplete, errors occurred!
-
Error when bootstrapping CMake:
Problem while running initial CMake
-


Also with cmake 2.8.8 I am planning to build Paraview 4.2.0 for ARM
processor with ubuntu . Do you see any potential problem with this?

Thank you.

BR,
Bishwajit
Virginia Tech



On Wed, Feb 8, 2017 at 8:58 AM, Chuck Atkins <chuck.atk...@kitware.com>
wrote:

> Hi Bishwajit,
>
> I believe the curses interface will get built by default if it can find
> ncurses so you're probably missing the ncurses development libraries.  Try
> installing the
> ​​
> libncurses-dev package and then re-configuring and building CMake.
>
> - Chuck
>
> On Wed, Feb 8, 2017 at 8:51 AM, Ben Boeckel <ben.boec...@kitware.com>
> wrote:
>
>> On Wed, Feb 08, 2017 at 02:10:27 -0500, Bishwajit Dutta wrote:
>> > I had the below query. Thanks to pls help out.
>> >
>> > I wanted to build Paraview 4.0.1 source on my 64 bit ubuntu system. I
>> need
>> > to
>> > configure options to build with mesa and I read that this is to be done
>> > with ccmake.
>> >
>> > Now I compiled cmake 2.8.8 and 3.7.0 but I cannot see any ccmake getting
>> > compiled in bin folder.
>> > Thanks for letting me know a proper version of cmake which has ccmake.
>>
>> You need to
>> ​​
>> set BUILD_CursesDialog=ON.
>>
>> --Ben
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Query on ccmake for building Paraview

2017-02-07 Thread Bishwajit Dutta
Hi All,

I had the below query. Thanks to pls help out.

I wanted to build Paraview 4.0.1 source on my 64 bit ubuntu system. I need
to
configure options to build with mesa and I read that this is to be done
with ccmake.

Now I compiled cmake 2.8.8 and 3.7.0 but I cannot see any ccmake getting
compiled in bin folder.
Thanks for letting me know a proper version of cmake which has ccmake.


BR,
Bishwajit
Virginia Tech
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Help needed: Paraview crashing with object has no attribute 'ImageResampling'

2017-02-07 Thread Bishwajit Dutta
Hi All,

I am new to paraview and need help on the below. Thanks for answering them.

a)
I am running paraview 4.0.1 installed in ubuntu with python 2.7.6 and one
of the scripts  (cmdline #pvpython script_name.py)  is crashing at call :
sampler = paraview.simple.ImageResampling(Input=reader)

--log message

Traceback (most recent call last):
  File "png-setup.py", line 34, in 
sampler = paraview.simple.ImageResampling(Input=reader)
AttributeError: 'module' object has no attribute 'ImageResampling'


I even tried with the latest paraview but it also crashes.

b) My system has NVIDIA GPU, how do I know if paraview is using GPU
acceleration
or its using CPU for rendering?

c) Is there any pvpython commandline option to use CPU acceleration or
paraview has to be compiled separately for that.



BR,
Bishwajit
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Query on paraview software rendering vs GPU rendering on ubuntu server

2017-02-01 Thread Bishwajit Dutta
Hi All,

I am setting up paraview in different modes in my university for research
and had the below queries on paraview wrt ubuntu. Thanks if anyone can
answer them.

a) Is it possible to dynamically switch between CPU (mesa software
rendering) and GPU rendering (openGL). If so, which Paraview version
supports this and the steps. Is not then can paraview binaries be used with
some commandline option for the same.

b) In ubuntu server version (which has no GUI), can paraview use GPU for
graphics acceleration as there is no GUI.
I don't get this properly if desktop GUI is must for GPU usage.


BR,
Bishwajit
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview