I'd suggest just pursuing this with her thread then - like I said, with the 
config I passed her, it works fine for me, and that is on OSX 10.8.4. However, 
I use the gcc compiler and not clang.


On Jun 18, 2013, at 2:23 PM, Hans Ekkehard Plesser 
<hans.ekkehard.ples...@umb.no> wrote:

> 
> Hi!
> 
> I have tried building with --enable-opal-multi-threads (it was missing in 
> MacPorts), but that did not help.
> 
> My problem seems very similar to that reported by Elias Rudberg in a separate 
> thread, using Ubuntu.
> 
> I am using the clang compiler.
> 
> Best regards,
> Hans
> 
> On 18. juni 2013, at 00.08, Ralph Castain wrote:
> 
>> For 1.7, you also have to configure with --enable-opal-multi-thread. I 
>> suspect MacPorts doesn't do that, so you might want to configure and build 
>> your own version.
>> 
>> 
>> On Jun 16, 2013, at 5:27 AM, Hans Ekkehard Plesser 
>> <hans.ekkehard.ples...@umb.no> wrote:
>> 
>>> 
>>> On 15. juni 2013, at 01.31, Ralph Castain wrote:
>>> 
>>>> I have no idea how MacPorts configures OMPI - did you check the output of 
>>>> ompi_info to see if threading was even enabled?
>>> 
>>> ompi_info shows
>>> 
>>>        Thread support: posix (MPI_THREAD_MULTIPLE: yes, progress: no)
>>> 
>>> for 1.6.4 and 1.7.1. I could post the full ompi_info if that would help.
>>> 
>>> Best regards,
>>> Hans
>>> 
>>>> 
>>>> 
>>>> On Jun 14, 2013, at 3:12 PM, Hans Ekkehard Plesser 
>>>> <hans.ekkehard.ples...@umb.no> wrote:
>>>> 
>>>>> 
>>>>> Hi!
>>>>> 
>>>>> I use OpenMPI 1.7.1 from MacPorts (+threads +gcc47). When compiling a 
>>>>> simple hello world program calling
>>>>> 
>>>>> MPI_Init_thread(&argc, &argv, MPI_THREAD_SERIALIZED, &provided);
>>>>> 
>>>>> the program hangs if run on more than one process. All works fine if I
>>>>> 
>>>>> - either use MPI_THREAD_SINGLE
>>>>> - or use OpenMPI 1.6.4.
>>>>> 
>>>>> The actual compiler invocation and compiler version are
>>>>> 
>>>>> [Macintosh:~/tmp/hw] hep% openmpicc -o hw_mpi hw_mpi.c --showme
>>>>> /usr/bin/clang -o hw_mpi hw_mpi.c -I/opt/local/include/openmpi 
>>>>> -L/opt/local/lib -lmpi
>>>>> 
>>>>> [Macintosh:~/tmp/hw] hep% /usr/bin/clang --version
>>>>> Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 
>>>>> 3.1svn)
>>>>> Target: x86_64-apple-darwin12.4.0
>>>>> Thread model: posix
>>>>> 
>>>>> The full program code is shown below. I have also reported this to the 
>>>>> MacPorts bug tracker.
>>>>> 
>>>>> Best regards,
>>>>> Hans E Plesser
>>>>> 
>>>>> ------
>>>>> #include <stdio.h>
>>>>> 
>>>>> #include <mpi.h>
>>>>> 
>>>>> int main(int argc, char **argv)
>>>>> {
>>>>> int provided;
>>>>> MPI_Init_thread(&argc, &argv, MPI_THREAD_SERIALIZED, &provided);
>>>>> 
>>>>> printf("Provided threading level: %d.\n", provided);
>>>>> 
>>>>> int rank;
>>>>> MPI_Comm_rank(MPI_COMM_WORLD, &rank);
>>>>> 
>>>>> printf("Hello, world! This is rank %d.\n", rank);
>>>>> 
>>>>> MPI_Finalize();
>>>>> return 0;
>>>>> }
>>>>> ------
>>>>> 
>>>>> 
>>>>> --
>>>>> 
>>>>> Dr. Hans Ekkehard Plesser, Associate Professor
>>>>> Head, Basic Science Section
>>>>> 
>>>>> Dept. of Mathematical Sciences and Technology
>>>>> Norwegian University of Life Sciences
>>>>> PO Box 5003, 1432 Aas, Norway
>>>>> 
>>>>> Phone +47 6496 5467
>>>>> Fax   +47 6496 5401
>>>>> Email hans.ekkehard.ples...@umb.no
>>>>> Home  http://arken.umb.no/~plesser
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> users mailing list
>>>>> us...@open-mpi.org
>>>>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>>>> 
>>>> 
>>>> _______________________________________________
>>>> users mailing list
>>>> us...@open-mpi.org
>>>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>>> 
>>> --
>>> 
>>> Dr. Hans Ekkehard Plesser, Associate Professor
>>> Head, Basic Science Section
>>> 
>>> Dept. of Mathematical Sciences and Technology
>>> Norwegian University of Life Sciences
>>> PO Box 5003, 1432 Aas, Norway
>>> 
>>> Phone +47 6496 5467
>>> Fax   +47 6496 5401
>>> Email hans.ekkehard.ples...@umb.no
>>> Home  http://arken.umb.no/~plesser
>>> 
>>> 
>>> _______________________________________________
>>> users mailing list
>>> us...@open-mpi.org
>>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>> 
>> 
>> _______________________________________________
>> users mailing list
>> us...@open-mpi.org
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
> 
> --
> 
> Dr. Hans Ekkehard Plesser, Associate Professor
> Head, Basic Science Section
> 
> Dept. of Mathematical Sciences and Technology
> Norwegian University of Life Sciences
> PO Box 5003, 1432 Aas, Norway
> 
> Phone +47 6496 5467
> Fax   +47 6496 5401
> Email hans.ekkehard.ples...@umb.no
> Home  http://arken.umb.no/~plesser
> 
> 
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users


Reply via email to