I agree with Burlen, make sure you're passing in everything as -D arguments. Also I would start with a clean build if the mapreduce error wont go away.<br><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 12:13 PM, Burlen Loring <span dir="ltr"><<a href="mailto:bloring@lbl.gov">bloring@lbl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> Hi Amit,<br>
<br>
Boost is very easy to install, it's only an un tar. Then you can point PV to it with -DBOOST_ROOT on your cmake command line.<br>
<br>
Does cmake really check environment variables for open gl and mpi paths? It's possible however, I've always passed them on the command line. That may be your issue, you could look at the CMakeCache.txt to see if it's really pickuing those up.<br>
<font color="#888888">
<br>
Burlen</font><div><div></div><div class="h5"><br>
<br>
On 11/03/2011 09:05 AM, Chourasia, Amit wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Mesa Build:<br>
Using Burlen's helpful tips I have moved to another step<br>
The cluster I was compiling on had python2.4.x which is not compatible<br>
with some stuff in mesa7.11.<br>
<br>
I found another build of python on the cluster which I ended up using to<br>
solve build problems. I wish mesa provided a mechanism to point to another<br>
python version rather than making users resort to monkeying with<br>
environment variables and aliasing trickery<br>
<br>
<br>
Paraview Build with OSMESA (no GPU)<br>
I am using intel compiler and mvapich/1.2.7 as a first try<br>
<br>
1) The cluster does not have boost libraries so I had to turn<br>
VTK_USE_BOOST=OFF.<br>
However PARAVIEW_USE_VISITBRIDGE fails to compile because its seems to<br>
have no method to compile when boost libraries are not available. So I had<br>
to turn that off as well to march ahead, in the mean time will get boost<br>
libraries installed on the cluster<br>
<br>
How essential are boost libraries to VTK and Paraview?<br>
<br>
<br>
2)MPI troubles<br>
<br>
I think there are problems on two places<br>
<br>
During configure<br>
______________________________<u></u>______________________________<u></u>______<br>
CMake Warning (dev) at<br>
/rmount/usr_apps/shells/cmake/<u></u>share/cmake-2.8/Modules/<u></u>FindMPI.cmake:81<br>
(include):<br>
File /rmount/usr_apps/shells/cmake/<u></u>share/cmake-2.8/Modules/<u></u>FindMPI.cmake<br>
includes /work/achourasia/ParaView-3.<u></u>10.1/CMake/GetPrerequisites.<u></u>cmake<br>
(found via CMAKE_MODULE_PATH) which shadows<br>
<br>
/rmount/usr_apps/shells/cmake/<u></u>share/cmake-2.8/Modules/<u></u>GetPrerequisites.cmak<br>
e.<br>
This may cause errors later on .<br>
<br>
Policy CMP0017 is not set: Prefer files from the CMake module directory<br>
when including from there. Run "cmake --help-policy CMP0017" for policy<br>
details. Use the cmake_policy command to set the policy and suppress<br>
this<br>
warning.<br>
______________________________<u></u>______________________________<u></u>_____<br>
<br>
<br>
During Build<br>
______________________________<u></u>______________________________<u></u>______<br>
<br>
<br>
/work/achourasia/ParaView-3.<u></u>10.1/VTK/Utilities/mrmpi/src/<u></u>mapreduce.cpp(14):<br>
catastrophic error: could not open source file "mpi.h"<br>
#include "mpi.h"<br>
______________________________<u></u>______________________________<u></u>______<br>
<br>
<br>
<br>
I am stumped because I do set the path to MPI include dirs and still see<br>
this error<br>
Will Paraview build/work correctly with Python2.4.x? If not which version<br>
and how to specify another version of python during configuration<br>
<br>
Here is my configure script where I set bunch of things<br>
Again Burlen provided me most of these to get started (Thanks).<br>
<br>
module load cmake<br>
export CC=icc<br>
export CXX=icpc<br>
export CMAKE_INSTALL_PREFIX=/work/<u></u>achourasia/paraview_build<br>
export VTK_OPENGL_HAS_OSMESA=ON<br>
export VTK_USE_X=OFF<br>
export OSMESA_INCLUDE_DIR=/work/<u></u>achourasia/mesa_build/include<br>
export OPENGL_INCLUDE_DIR=/work/<u></u>achourasia/mesa_build/include<br>
export OPENGL_gl_LIBRARY=""<br>
export OPENGL_glu_LIBRARY=/work/<u></u>achourasia/mesa_build/lib/<u></u>libGLU.so<br>
export OSMESA_LIBRARY=/work/<u></u>achourasia/mesa_build/lib/<u></u>libOSMesa32.so<br>
<br>
export PARAVIEW_BUILD_QT_GUI=OFF<br>
export<br>
MPI_COMPILER=/usr/apps/<u></u>compilers/intel/mvapich-<u></u>gen2multirail-1.0/bin/mpicxx<br>
export MPI_LIBRARY=/usr/apps/<u></u>compilers/intel/mvapich-<u></u>gen2multirail-1.0/lib<br>
export<br>
MPI_INCLUDE_PATH=/usr/apps/<u></u>compilers/intel/mvapich-<u></u>gen2multirail-1.0/includ<br>
e<br>
export CMAKE_C_FLAGS=" -lmpi"<br>
export CMAKE_CXX_FLAGS=" -lmpi++"<br>
<br>
#-DVTK_USE_BOOST=ON \<br>
cmake \<br>
-DCMAKE_BUILD_TYPE=Debug \<br>
-DBUILD_SHARED_LIBS=ON \<br>
-DBUILD_TESTING=OFF \<br>
-DPARAVIEW_DISABLE_VTK_<u></u>TESTING=ON \<br>
-DPARAVIEW_TESTING_WITH_<u></u>PYTHON=OFF \<br>
-DVTK_USE_BOOST=OFF \<br>
-DPARAVIEW_BUILD_QT_GUI=OFF \<br>
-DPARAVIEW_ENABLE_PYTHON=ON \<br>
-DPARAVIEW_USE_MPI=ON \<br>
-DPARAVIEW_BUILD_PLUGIN=<u></u>EyeDomeLighting \<br>
-DPARAVIEW_USE_VISITBRIDGE=OFF \<br>
-DVISIT_BUILD_READER_CGNS=OFF \<br>
-DVISIT_BUILD_READER_Silo=OFF \<br>
-DBUILD_DOCUMENTATION=ON \<br>
-DPARAVIEW_GENERATE_PROXY_<u></u>DOCUMENTATION=ON \<br>
-DGENERATE_FILTERS_<u></u>DOCUMENTATION=ON \<br>
-DDOCUMENTATION_HTML_HELP=ON \<br>
$*<br>
<br>
<br>
<br>
mpich/1.2.7, mpich2/1.3.2 and openmpi/1.4.1 are other things I can also<br>
try, but the trouble is somewhere else at the moment.<br>
<br>
I would appreciate more insight into building Paraview.<br>
<br>
<br>
Thanks<br>
--Amit<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 11/1/11 2:55 PM, "Burlen Loring"<<a href="mailto:bloring@lbl.gov" target="_blank">bloring@lbl.gov</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
One thing I should clarify:<br>
<br>
When I said the client and server apps can be compiled independently, I<br>
meant with respect to X11/and OpenGL options. You will need to be aware<br>
that other build options are not as flexible. For instance if you want<br>
your users to be able to use binaries from Kitware web site, you need to<br>
enable the same plugin options, otherwise the server could crash for<br>
instance when opening files. This is my experience up to ver 3.10, I<br>
hope that in the future releases PV will be more intelligent about only<br>
using a server side object if it's present.<br>
<br>
On 11/01/2011 12:43 PM, Burlen Loring wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Amit,<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1. Do I compile paraview with OSMesa or Xlib? (X is available on the<br>
cluster, will this require X on client?). Is it better to avoid X?<br>
</blockquote>
The client and server are separate apps and can be compiled<br>
independently. If you have graphics hardware on your cluster you will<br>
want to use this and link against the accelerated open gl libraries. I<br>
believe this requires X. If you do not have graphics hardware then you<br>
can safely disable X on the server side and use OSMesa.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2. Do I compile with QT or without on cluster<br>
</blockquote>
The server app does not need qt, and you can safely compile it without<br>
qt. The client app obviously needs Qt. You could provide a client with<br>
the idea that users run the client remotely (eg using nx, or vnc) or<br>
you could ask them to install the client on their workstation and<br>
provide a configuration script so that they can launch jobs on your<br>
cluster. The former seems to be easier for the users while in my<br>
experience the latter provides better performance and usability. With<br>
the caveat that it depends on the network connection of your users.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
3. Which compiler and which MPI to use (we have intel and gnu<br>
compilers, MPI, mvapich and openmpi) ?<br>
</blockquote>
Usually this choice is somewhat arbitrary. ParaView can compile with<br>
issue using any of the combinations. Intel is supposed to produce<br>
faster code than gcc and be better at optimization such as auto<br>
vectorizing. Before deciding on mvapich or openmpi you should<br>
determine if either has an advantage given your clusters interconnect.<br>
<br>
The error you report is an issue in Mesa, a syntax error, probably<br>
because they used syntax that is not supported by your version of<br>
python. I recently encountered similar issues and simply modified the<br>
Mesa source code to use the older more universal syntax. You/we should<br>
probably complain about this to the Mesa developers since it is a pain<br>
the neck!<br>
<br>
Hope it helps<br>
Burlen<br>
<br>
On 11/01/2011 11:58 AM, Chourasia, Amit wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I am trying to compile paraview for general usage on one of our<br>
clusters at SDSC.<br>
I wanted to ask what are the common paraview installation practices<br>
that are useful for general purpose. I would certainly need to<br>
compile the paraview server<br>
<br>
1. Do I compile paraview with OSMesa or Xlib? (X is available on<br>
the cluster, will this require X on client?). Is it better to avoid X?<br>
2. Do I compile with QT or without on cluster<br>
3. Which compiler and which MPI to use (we have intel and gnu<br>
compilers, MPI, mvapich and openmpi) ?<br>
<br>
I looked at the following page and unsure how to go about this<br>
<a href="http://paraview.org/Wiki/ParaView_And_Mesa_3D" target="_blank">http://paraview.org/Wiki/<u></u>ParaView_And_Mesa_3D</a><br>
<br>
At the moment I am stuck on mesa compilation and the choice I make<br>
here will determine Paraview's compilation.<br>
When I try to compile Mesa-7.11 or Mesa-7.9 I get the following error<br>
<br>
python2 -t -O -O builtins/tools/generate_<u></u>builtins.py<br>
./builtin_compiler> builtin_function.cpp || rm -f builtin_function.cpp<br>
File "builtins/tools/generate_<u></u>builtins.py", line 28<br>
with open(filename) as f:<br>
^<br>
SyntaxError: invalid syntax<br>
<br>
I have tried to use<br>
A) make linux-x86_64<br>
B) ./configure --with-driver=xlib<br>
--prefix=/work/achourasia/<u></u>mesa_build/ --disable-gallium<br>
--with-gallium-drivers=""<br>
If I don¹t pass --disable-gallium --with-gallium-drivers="" the<br>
configure fails<br>
checking for llvm-config... no<br>
configure: error: LLVM is required to build Gallium R300 on x86 and<br>
x86_64<br>
<br>
Please advice<br>
Thanks<br>
--Amit<br>
<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at:<br>
<a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/<u></u>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/<u></u>mailman/listinfo/paraview</a><br>
</blockquote></blockquote></blockquote>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/<u></u>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/<u></u>mailman/listinfo/paraview</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/<u></u>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/<u></u>mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br>