<div dir="ltr">No, it doesn't work... I also tried --with-x=disabled. I gave a look to ./configure --help in the hwloc directory and to the configure file itself, but Im not finding the right option.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 6, 2020 at 3:53 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Looks like the option is --with-x=no<br>
<br>
Can you give this a try? Branch balay/fix-hwloc-x-dependency/maint has this update now<br>
<br>
Satish<br>
<br>
On Mon, 6 Apr 2020, Alfredo Jaramillo wrote:<br>
<br>
> Hello Satish, Im sorry but I think I tested this workaround with the wrong<br>
> installation, my bad.<br>
> In fact the libXNVC, X11 libraries are still being linked even with the<br>
> --download-hwloc-configure-arguments=--without-x option<br>
> <br>
> Im attaching the config.log file located in<br>
> $PETSC_DIR/$PETSC_ARCH/externalpackages/hwloc-2.1.0<br>
> you can see that the option --without-x is there (line 7) but by means of<br>
> $ ldd foo<br>
> I see that the links are still there<br>
> <br>
> On Mon, Apr 6, 2020 at 2:57 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> <br>
> > Great!<br>
> ><br>
> > Wrt pastix dependency on hwloc -<br>
> > config/BuildSystem/config/packages/PaStiX.py has the following comment:<br>
> ><br>
> > # PaStiX.py does not absolutely require hwloc, but it performs better<br>
> > with it and can fail (in ways not easily tested) without it<br>
> > #<br>
> > <a href="https://gforge.inria.fr/forum/forum.php?thread_id=32824&forum_id=599&group_id=186" rel="noreferrer" target="_blank">https://gforge.inria.fr/forum/forum.php?thread_id=32824&forum_id=599&group_id=186</a><br>
> > # <a href="https://solverstack.gitlabpages.inria.fr/pastix/Bindings.html" rel="noreferrer" target="_blank">https://solverstack.gitlabpages.inria.fr/pastix/Bindings.html</a><br>
> ><br>
> > I have a fix in branch balay/fix-hwloc-x-dependency/maint [that does not<br>
> > need the extra --download-hwloc-configure-arguments=--without-x option].<br>
> > Can you give this a try?<br>
> ><br>
> > Satish<br>
> ><br>
> > On Mon, 6 Apr 2020, Alfredo Jaramillo wrote:<br>
> ><br>
> > > hello Satish,<br>
> > > adding<br>
> > > --download-hwloc-configure-arguments=--without-x<br>
> > > worked perfectly<br>
> > ><br>
> > > thank you!<br>
> > ><br>
> > > On Mon, Apr 6, 2020 at 2:12 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> > ><br>
> > > > you can try:<br>
> > > ><br>
> > > > --download-pastix --download-hwloc<br>
> > > > --download-hwloc-configure-arguments=--without-x<br>
> > > ><br>
> > > > We should fix this to automatically use --with-x=0/1<br>
> > > ><br>
> > > > Satish<br>
> > > ><br>
> > > > On Mon, 6 Apr 2020, Alfredo Jaramillo wrote:<br>
> > > ><br>
> > > > > hello everyone,<br>
> > > > ><br>
> > > > > I have a fresh installation of the 3.13.0 version with pastix. Like<br>
> > with<br>
> > > > > previous versions, I'm using the options<br>
> > > > ><br>
> > > > > --with-x11=0 --with-x=0 --with-windows-graphics=0<br>
> > > > ><br>
> > > > > to disable X11<br>
> > > > ><br>
> > > > > however, when compiling my program foo and doing<br>
> > > > ><br>
> > > > > $ ldd foo<br>
> > > > ><br>
> > > > > between the linked libraries there appear:<br>
> > > > > libXNVCtrl.so.0 and libX11.so.6<br>
> > > > ><br>
> > > > > the first one related to NVIDIA. I observed that this does not happen<br>
> > > > when<br>
> > > > > installing PETSc without hwloc. In this new version, PETSc requires<br>
> > to<br>
> > > > > install hwloc when trying to install pastix. In previous versions of<br>
> > > > PETSc<br>
> > > > > (eg 3.11.2) that wasn't necessary.<br>
> > > > ><br>
> > > > > I'm working in a cluster where I have no access to these X11-related<br>
> > > > > libraries and that's why I need them not be linked. Is it there some<br>
> > way<br>
> > > > to<br>
> > > > > disable X11 when installing hwloc? maybe enforcing some configuration<br>
> > > > > variables when installing it through petsc or installing it<br>
> > > > independently?<br>
> > > > ><br>
> > > > > thanks a lot!<br>
> > > > ><br>
> > > > > Below the configuration command of the two installations I've tried<br>
> > with<br>
> > > > > the 3.13.0 version.<br>
> > > > ><br>
> > > > > =================== WITH PASTIX ===================<br>
> > > > ><br>
> > > > > ./configure --with-make-np=20<br>
> > > > > --with-petsc-arch=x64go-3.13-openmpi-4.0.1-pastix-64<br>
> > --with-debugging=0<br>
> > > > > --doCleanup=0 \<br>
> > > > > --with-mpi=1 \<br>
> > > > > --with-valgrind=1<br>
> > --with-valgrind-dir=$PATH_TO_VALGRIND/valgrind-3.15.0 \<br>
> > > > > --download-scalapack \<br>
> > > > > --download-openblas \<br>
> > > > > --download-mumps \<br>
> > > > > --download-superlu_dist \<br>
> > > > > --download-metis \<br>
> > > > > --download-parmetis \<br>
> > > > > --download-ptscotch \<br>
> > > > > --download-hypre \<br>
> > > > ><br>
> > > > > *--download-pastix \--download-hwloc \*<br>
> > > > > --with-64-bit-indices=1 \<br>
> > > > > LDFLAGS=$LDFLAGS CPPFLAGS=$CPPFLAGS \<br>
> > > > > --with-cxx-dialect=C++11 \<br>
> > > > > --with-x11=0 --with-x=0 --with-windows-graphics=0 \<br>
> > > > > COPTFLAGS="-O3 -march=native -mtune=native" \<br>
> > > > > CXXOPTFLAGS="-O3 -march=native -mtune=native" \<br>
> > > > > FOPTFLAGS="-O3 -march=native -mtune=native"<br>
> > > > ><br>
> > > > > =================== WITHOUT PASTIX ===================<br>
> > > > ><br>
> > > > > the same as above but the options "--download-pastix<br>
> > --download-hwloc"<br>
> > > > ><br>
> > > > > ======================================================<br>
> > > > ><br>
> > > ><br>
> > > ><br>
> > ><br>
> ><br>
> ><br>
> <br>
<br>
</blockquote></div>