[OMPI users] libnuma with openmpi

2015-05-11 Thread Chaitra Kumar
Hi Team,

I am trying to test an application with libnuma on openmpi 1.8.1.  The code
compiles, but at runtime am getting libnuma warning and it dies with
segmentation fault.

libnuma: Warning: cpu argument 8 is out of range

--
mpirun noticed that process rank 1 with PID 62744 on node test-1 exited on
signal 11 (Segmentation fault).
--


System information:
RHEL 6.6
GCC 4.4.7
open-mpi 1.8.1

This code works perfectly on MVAPICH2.

How can I enable libnuma on openmpi?

Any help is greatly appreciated.

Regards,
Chaitra


Re: [OMPI users] libnuma with openmpi

2015-05-11 Thread Jeff Squyres (jsquyres)
Can you provide a bit more detail?  Is the seg fault in your code or in Open 
MPI?

Note that Open MPI uses hwloc (which likely uses libnuma) internally, too.



> On May 11, 2015, at 2:17 AM, Chaitra Kumar  wrote:
> 
> Hi Team,
> 
> I am trying to test an application with libnuma on openmpi 1.8.1.  The code 
> compiles, but at runtime am getting libnuma warning and it dies with 
> segmentation fault.
> 
> libnuma: Warning: cpu argument 8 is out of range
> 
> --
> mpirun noticed that process rank 1 with PID 62744 on node test-1 exited on 
> signal 11 (Segmentation fault).
> --
> 
> 
> System information:
> RHEL 6.6
> GCC 4.4.7
> open-mpi 1.8.1
> 
> This code works perfectly on MVAPICH2. 
> 
> How can I enable libnuma on openmpi?
> 
> Any help is greatly appreciated.
> 
> Regards,
> Chaitra
> 
> 
> 
> 
> ___
> users mailing list
> us...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post: 
> http://www.open-mpi.org/community/lists/users/2015/05/26852.php


-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/



[OMPI users] failure of 1.8.5 on FreeBSD

2015-05-11 Thread Steve Kargl
I've configured and built openmpi-1.8.5 on FreeBSD-11
with

% ./configure --prefix /usr/local/openmpi-1.8.5 --disable-shared \
   --enable-static --enable-mpirun-prefix-by-default

This, of course, disables shared libraries and enables static 
libs.  Now, when I go to build my program, I see

% make -DMPI
/usr/local/openmpi-1.8.5/bin/mpif90 -O2 -pipe -static -I/home/kargl/modules  \
   -o sasmp sasmp.f90  -L/home/kargl/lib -L. -L/usr/local/lib -L. -loa -ltgt \
  -L/home/kargl/lib -L. -L/usr/local/lib -lm90 -llapack -lblas
/usr/lib/libexecinfo.a(symtab.o): In function `symtab_create':
/usr/src/lib/libexecinfo/../../contrib/libexecinfo/symtab.c:(.text+0x7f): \
   undefined reference to `elf_version'
/usr/src/lib/libexecinfo/../../contrib/libexecinfo/symtab.c:(.text+0x95): 
   undefined reference to `elf_begin'

The undefined symbols live in /usr/lib/libelf.a.  In grepping through
the Makefiles, I find

LIBS = -lexecinfo -lm -lutil
OPAL_WRAPPER_EXTRA_LIBS = -lm -L/usr/local/lib -lpciaccess -lexecinfo -lutil 
OMPI_WRAPPER_EXTRA_LIBS = -lm -L/usr/local/lib -lpciaccess -lexecinfo -lutil 
ORTE_WRAPPER_EXTRA_LIBS = -lm -L/usr/local/lib -lpciaccess -lexecinfo -lutil

Where do I modify the the configure infrastructure to add -lelf to these
variables?

-- 
Steve


[OMPI users] OpenMPI on Windows without Cygwin

2015-05-11 Thread Walt Brainerd
Is it possible to build OpenMPI for Windows
not running Cygwin?

I know it uses /dev/shm, so there would have to
be something equivalent to that not in Cygwin.

TIA.

-- 
Walt Brainerd


Re: [OMPI users] failure of 1.8.5 on FreeBSD

2015-05-11 Thread Steve Kargl
On Mon, May 11, 2015 at 12:55:01PM -0700, Steve Kargl wrote:
> I've configured and built openmpi-1.8.5 on FreeBSD-11
> with
> 
> % ./configure --prefix /usr/local/openmpi-1.8.5 --disable-shared \
>--enable-static --enable-mpirun-prefix-by-default
> 

Not necessarily an elegant solution, but adding 
--with-wrapper-libs=-lelf to the configure line ensures
that libelf is linked in after libexecinfo.


-- 
Steve