<div dir="ltr"><div>Hello Satish, Im sorry but I think I tested this workaround with the wrong installation, my bad.</div><div>In fact the libXNVC, X11 libraries are still being linked even with the --download-hwloc-configure-arguments=--without-x option</div><div><br></div><div>Im attaching the config.log file located in $PETSC_DIR/$PETSC_ARCH/externalpackages/hwloc-2.1.0</div><div>you can see that the option --without-x is there (line 7) but by means of <br></div><div>$ ldd foo</div><div>I see that the links are still there<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">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></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Great!<br>
<br>
Wrt pastix dependency on hwloc - config/BuildSystem/config/packages/PaStiX.py has the following comment:<br>
<br>
# PaStiX.py does not absolutely require hwloc, but it performs better with it and can fail (in ways not easily tested) without it<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 need the extra --download-hwloc-configure-arguments=--without-x option]. 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 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 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 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 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 --with-debugging=0<br>
> > > --doCleanup=0 \<br>
> > > --with-mpi=1 \<br>
> > > --with-valgrind=1 --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 --download-hwloc"<br>
> > ><br>
> > > ======================================================<br>
> > ><br>
> ><br>
> ><br>
> <br>
<br>
</blockquote></div>