<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ok, this is what i did before using the --with-thread-package
<pre wrap="">Before, I configured as you suggested:
./configure --prefix=/usr/local/mpich2-1.3.1
Then I get configure complete.
afterwards I follow what is written in the installation guide:
make 2>&1 | tee m.txt --> <i> </i>I get "make completed"
sudo make install |& tee mi.txt --> I get Installed MPE2 in /usr/local/mpich2-1.3.1
I also added the bin directory to my PATH
export PATH=/usr/local/mpich2-1.3.1/bin:$PATH
I can also perform the test as in the installation guide:
mpiexec -n 5 ./examples/cpi
Process 1 of 5 is on MaffieLE6400
Process 3 of 5 is on MaffieLE6400
Process 0 of 5 is on MaffieLE6400
Process 2 of 5 is on MaffieLE6400
Process 4 of 5 is on MaffieLE6400
pi is approximately 3.1415926544231230, Error is 0.0000000008333298
wall clock time = 0.000435
as far as I can see all works fine?
The reason I configured with the --with-thread-package=none the second time was to deal with the MPIR_Thread error...
So I wonder how I can deal with this error?
Thanks for your help!
Matthias
</pre>
<br>
<br>
On 02/01/2011 08:24 PM, Anthony Chan wrote:
<blockquote
cite="mid:1947581911.10323.1296588253785.JavaMail.root@zimbra.anl.gov"
type="cite">
<pre wrap="">
----- Original Message -----
</pre>
<blockquote type="cite">
<pre wrap="">Dear Anthony,
My apologies for posting to the wrong email list. I will register to
the
other one so that in the future I can put my questions there.
For now i'll post this directly to you, hope that is fine??
</pre>
</blockquote>
<pre wrap="">
Yes. I cc'ed my reply to mpich-discuss as someone else may have
things to add.
</pre>
<blockquote type="cite">
<pre wrap="">I am not sure if I understand what you mean with:
Did you use mpif90/mpif77 to link your code or just use above link
command which seems incomplete ?
I used the following line to check how mpich2 was built, as I first
got
an error with f90 vs f95.
So with
/usr/local/mpich2-1.3.1/bin/mpif90 -show
I get finally got:
gfortran -O2 -I/usr/local/mpich2-1.3.1/include
-I/usr/local/mpich2-1.3.1/include -L/usr/local/mpich2-1.3.1/lib
-lmpichf90 -lmpichf90 -lmpich -lopa -lmpl -lrt -lpthread
Do you mean that there is something missing here? And should I add it
than in my definition of INC_MPI and LIB_MPI?
</pre>
</blockquote>
<pre wrap="">
Let's focus if your mpich2 installation is correct first.
</pre>
<blockquote type="cite">
<pre wrap="">
One other question. I was thinking that it could be useful to built
mpich2 without threading, so I used:
./configure -prefix=/usr/local/mpich2-1.3.1 --with-thread-package=none
</pre>
</blockquote>
<pre wrap="">
Try "./configure --prefix=/usr/local/mpich2-1.3.1", without --with-thread-package.
A.Chan
</pre>
<blockquote type="cite">
<pre wrap="">But then I get a whole list of errors, e.g.:
/home/matthias/Downloads/mpich2-1.3.1/lib/libmpich.a(info_getn.o): In
function `MPIU_Thread_CS_exit_lockname_recursive_impl_':
info_getn.c:(.text+0x124): undefined reference to
`MPIU_Thread_mutex_unlock'
/home/matthias/Downloads/mpich2-1.3.1/lib/libmpich.a(info_getnth.o):
In
function `MPIU_Thread_CS_enter_lockname_recursive_impl_':
info_getnth.c:(.text+0x32): undefined reference to
`MPIU_Thread_mutex_lock'
/home/matthias/Downloads/mpich2-1.3.1/lib/libmpich.a(info_getnth.o):
In
function `MPIU_Thread_CS_exit_lockname_recursive_impl_':
info_getnth.c:(.text+0xf4): undefined reference to
`MPIU_Thread_mutex_unlock'
/home/matthias/Downloads/mpich2-1.3.1/lib/libmpich.a(info_getvallen.o):
In function `MPIU_Thread_CS_enter_lockname_recursive_impl_':
info_getvallen.c:(.text+0x32): undefined reference to
`MPIU_Thread_mutex_lock'
/home/matthias/Downloads/mpich2-1.3.1/lib/libmpich.a(info_getvallen.o):
In function `MPIU_Thread_CS_exit_lockname_recursive_impl_':
Any ideas here?
Matthias
-------- Original Message --------
Subject: Re: [mpich2-dev] undefined symbol: MPIR_Thread
Date: Tue, 1 Feb 2011 19:41:54 +0100
From: Anthony Chan <a class="moz-txt-link-rfc2396E" href="mailto:chan@mcs.anl.gov"><chan@mcs.anl.gov></a>
Reply-To: Anthony Chan <a class="moz-txt-link-rfc2396E" href="mailto:chan@mcs.anl.gov"><chan@mcs.anl.gov></a>, <a class="moz-txt-link-rfc2396E" href="mailto:mpich2-dev@mcs.anl.gov">"mpich2-dev@mcs.anl.gov"</a>
<a class="moz-txt-link-rfc2396E" href="mailto:mpich2-dev@mcs.anl.gov"><mpich2-dev@mcs.anl.gov></a>
To: <a class="moz-txt-link-abbreviated" href="mailto:mpich2-dev@mcs.anl.gov">mpich2-dev@mcs.anl.gov</a> <a class="moz-txt-link-rfc2396E" href="mailto:mpich2-dev@mcs.anl.gov"><mpich2-dev@mcs.anl.gov></a>
mpich2-dev for mpich2 development not general MPICH usage questions,
please send your question to <a class="moz-txt-link-abbreviated" href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a>.
----- Original Message -----
</pre>
<blockquote type="cite">
<pre wrap=""> All,
when running a model with mpirun ./exe
I get the following error:
./exe: symbol lookup error: ./exe: undefined symbol: MPIR_Thread
I have no idea how to deal with this. I use mpich2-1.3.1, compiled
with
gfortran, with the following libraries:
gfortran -O2 -I/usr/local/mpich2-1.3.1/include
-I/usr/local/mpich2-1.3.1/include -L/usr/local/mpich2-1.3.1/lib
-lmpichf90 -lmpichf90 -lmpich -lopa -lmpl -lrt -lpthread
</pre>
</blockquote>
<pre wrap="">
Did you use mpif90/mpif77 to link your code or just use above link
command which seems incomplete ?
A.Chan
</pre>
<blockquote type="cite">
<pre wrap="">
Could anybody help me with this?
Regards,
Matthias
--
-------------------------------------------------------------
FWO Post-doctoral Research Fellow
Department of Earth& Environmental Sciences
Physical and Regional Geography Research Group
Regional climate studies
Celestijnenlaan 200E
3001 Heverlee (Leuven)
BELGIUM
Tel: + 32 16 326424
Fax: + 32 16 322980
<a class="moz-txt-link-freetext" href="http://geo.kuleuven.be/aow/">http://geo.kuleuven.be/aow/</a>
<a class="moz-txt-link-abbreviated" href="http://www.kuleuven.be/geography">www.kuleuven.be/geography</a>
-------------------------------------------------------------
</pre>
</blockquote>
</blockquote>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
-------------------------------------------------------------
FWO Post-doctoral Research Fellow
Department of Earth & Environmental Sciences
Physical and Regional Geography Research Group
Regional climate studies
Celestijnenlaan 200E
3001 Heverlee (Leuven)
BELGIUM
Tel: + 32 16 326424
Fax: + 32 16 322980
<a class="moz-txt-link-freetext" href="http://geo.kuleuven.be/aow/">http://geo.kuleuven.be/aow/</a>
<a class="moz-txt-link-abbreviated" href="http://www.kuleuven.be/geography">www.kuleuven.be/geography</a>
-------------------------------------------------------------
</pre>
</body>
</html>