[mvapich-discuss] --with-limic2=/usr/local/limic2-0.5.6 seems to be ignored

Hashmi, Jahanzeb hashmi.29 at buckeyemail.osu.edu
Fri Apr 3 22:53:06 EDT 2020


Hi Jim,

It looks like you are installing Limic in non-default location (/usr/local is the default location). This is fine as long as you specify the paths to 'lib' and 'include' directories as well when installing mvapich2 with Limic support.

[hashmij at haswell3 mvapich2-2.3.3]$ ./configure --help | grep limic2
  --with-limic2=[LiMIC2 installation path]
  --with-limic2-include=[LiMIC2 include path]
  --with-limic2-libpath=[LiMIC2 library path]

>From your configure line, I do not see it happening. The correct mvapich2 configuration in your case should look like this:

"--with-limic2=/usr/local/limic2-0.5.6 --with-limic2-include=/usr/local/limic2-0.5.6/include --with-limic2-libpath=/usr/local/limic2-0.5.6/lib"

Also, you are specifying '--with-hwloc' which is extraneous since mvapich2 will automatically build the hwloc from contrib/hwloc.

Please let us know if this configuration works for you.

Best regards,
Jahanzeb

________________________________
From: mvapich-discuss <mvapich-discuss-bounces at cse.ohio-state.edu> on behalf of Long, James W <jlong1s at illinois.edu>
Sent: Friday, April 3, 2020 9:34 PM
To: mvapich-discuss at cse.ohio-state.edu <mvapich-discuss at mailman.cse.ohio-state.edu>
Subject: [mvapich-discuss] --with-limic2=/usr/local/limic2-0.5.6 seems to be ignored

After building limic2 with -

./configure --enable-module --sysconfdir=/etc —prefix=/usr/local/limic2-0.5.6
make
make install

Building mvapich2-2.3.3. results in this error,

./configure --with-limic2=/usr/local/limic2-0.5.6  LDFLAGS='-Wl,-rpath=/usr/local/limic2-0.5.6/lib' --with-hwloc --prefix=/usr/local/mpi/mvapich2/mvapich2-2.3.3-gcc-8.3.0

.
.
.

###
### Configuring hwloc distribution tarball
### Startup tests
###
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '8788' is supported by ustar format... yes
checking whether GID '440' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/usr/local/mpi/mvapich2/mvapich2-2.3.3-gcc-8.3.0/build/mvapich2-2.3.3/contrib/hwloc':
configure: error: C compiler cannot create executables
See `config.log' for more details
configure: error: ./configure failed for contrib/hwloc



But after copying the limic2 libraries to /usr/local/lib

#cp /usr/local/limic2-0.5.6/lib/*limic*   /usr/local/lib


The build is successful -


./configure --with-limic2=/usr/local/limic2-0.5.6  LDFLAGS='-Wl,-rpath=/usr/local/limic2-0.5.6/lib' --with-hwloc --prefix=/usr/local/mpi/mvapich2/mvapich2-2.3.3-gcc-8.3.0

.
.
.

-----------------------------------------------------------------------------
Hwloc optional build support status (more details can be found above):

Probe / display I/O devices: PCI(linux)
Graphical output (Cairo):
XML input / output:          full
libnuma memory support:      yes
Plugin support:              no
-----------------------------------------------------------------------------

Configuration completed.



This was performed on a RedHat 7.7 system.  Having /usr/local/limic2-0.5.6 in /etc/ld.so.conf.d/limic.conf makes not difference -

[root at iforgehn1 ld.so.conf.d]# cat /etc/ld.so.conf.d/limic.conf
/usr/local/limic2-0.5.6/lib

[root at iforgehn1 ld.so.conf.d]# ldconfig -p | grep limic
        liblimic2.so.0 (libc6,x86-64) => /usr/local/limic2-0.5.6/lib/liblimic2.so.0
        liblimic2.so (libc6,x86-64) => /usr/local/limic2-0.5.6/lib/liblimic2.so




Jim Long
NCSA





_______________________________________________
mvapich-discuss mailing list
mvapich-discuss at cse.ohio-state.edu
http://mailman.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20200404/b3bbcf75/attachment-0001.html>


More information about the mvapich-discuss mailing list