<div dir="ltr">I've tried two installations in that branch, a "full installation" with every package I need, and a minimal one. I attach the results here, these libraries are still being linked<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 6, 2020 at 4:41 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">Hm - its working for me on CentOS7 [I see you are using RHEL7/CentOS7]<br>
<br>
<br>
Can you try the branch balay/fix-hwloc-x-dependency/maint - and see what you get?<br>
<br>
[balay@petsc-c7 petsc:d409bfc]$ ./configure --with-mpi=0 --download-hwloc --with-x=0<br>
<snip><br>
[balay@petsc-c7 petsc:d409bfc]$ ldd arch-linux2-c-debug/lib/libhwloc.so <br>
linux-vdso.so.1 => (0x00007ffe88bae000)<br>
libm.so.6 => /lib64/libm.so.6 (0x00007ff75c7b9000)<br>
libc.so.6 => /lib64/libc.so.6 (0x00007ff75c3eb000)<br>
/lib64/ld-linux-x86-64.so.2 (0x00007ff75cd1a000)<br>
[balay@petsc-c7 petsc:d409bfc]$ ./configure --with-mpi=0 --download-hwloc --with-x=1 <snip><br>
[balay@petsc-c7 petsc:d409bfc]$ ldd arch-linux2-c-debug/lib/libhwloc.so <br>
linux-vdso.so.1 => (0x00007ffe129cc000)<br>
libm.so.6 => /lib64/libm.so.6 (0x00007f89920fa000)<br>
libX11.so.6 => /lib64/libX11.so.6 (0x00007f8991dbc000)<br>
libc.so.6 => /lib64/libc.so.6 (0x00007f89919ee000)<br>
/lib64/ld-linux-x86-64.so.2 (0x00007f899265b000)<br>
libxcb.so.1 => /lib64/libxcb.so.1 (0x00007f89917c6000)<br>
libdl.so.2 => /lib64/libdl.so.2 (0x00007f89915c2000)<br>
libXau.so.6 => /lib64/libXau.so.6 (0x00007f89913be000)<br>
[balay@petsc-c7 petsc:d409bfc]$ <br>
<br>
Satish<br>
<br>
On Mon, 6 Apr 2020, Alfredo Jaramillo wrote:<br>
<br>
> No, it doesn't work... I also tried --with-x=disabled. I gave a look to<br>
> ./configure --help in the hwloc directory and to the configure file itself,<br>
> but Im not finding the right option.<br>
> <br>
> On Mon, Apr 6, 2020 at 3:53 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> <br>
> > Looks like the option is --with-x=no<br>
> ><br>
> > Can you give this a try? Branch balay/fix-hwloc-x-dependency/maint has<br>
> > 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<br>
> > 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<br>
> > better<br>
> > > > with it and can fail (in ways not easily tested) without it<br>
> > > > #<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<br>
> > not<br>
> > > > need the extra --download-hwloc-configure-arguments=--without-x<br>
> > 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>><br>
> > 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.<br>
> > 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<br>
> > happen<br>
> > > > > > when<br>
> > > > > > > installing PETSc without hwloc. In this new version, PETSc<br>
> > requires<br>
> > > > to<br>
> > > > > > > install hwloc when trying to install pastix. In previous<br>
> > 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<br>
> > X11-related<br>
> > > > > > > libraries and that's why I need them not be linked. Is it there<br>
> > some<br>
> > > > way<br>
> > > > > > to<br>
> > > > > > > disable X11 when installing hwloc? maybe enforcing some<br>
> > 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<br>
> > 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>
> ><br>
> <br>
<br>
</blockquote></div>