Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-dev] Using PTP with MPICH2

Sorry to send this mail here other than user mailing list, but I have tried to find some help there while no solution was found.

Is there anyone who can help me?
I have run "sh BUILD", and I did not find the option -lmpi when I "man mpicc".
Thanks so much!
ps: When I tried to install RDT with CDT 5.0.2 from here : "http://download.eclipse.org/tools/cdt/builds/5.0.2/I.I200809261507/index.html", which is the newest release version, I got dependency errors as follow:

Cannot complete the request.  See the details.
Unsatisfied dependency: [org.eclipse.ptp.rdt.feature.
group 2.1.0.200811031726] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.core/5.0.2
Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.core/[5.0.1.200809261507,5.0.1.200809261507]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.core/5.0.2] can be satisfied.
Unsatisfied dependency: [org.eclipse.ptp.rdt.feature.group 2.1.0.200811031726] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.ui/5.0.2
Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.ui/[5.0.1.200809261507,5.0.1.200809261507]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.ui/5.0.2] can be satisfied.
Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.core/[5.0.1.200809261507,5.0.1.200809261507]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.core/5.0.2] can be satisfied.
Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.ui/[5.0.1.200809261507,5.0.1.200809261507]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.ui/5.0.2] can be satisfied.
Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.core/[5.0.1.200809261507,5.0.1.200809261507]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.core/5.0.2] can be satisfied.
Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.ui/[5.0.1.200809261507,5.0.1.200809261507]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.ui/5.0.2] can be satisfied.
Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.core/[5.0.1.200809261507,5.0.1.200809261507]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.core/5.0.2] can be satisfied.
Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.ui/[5.0.1.200809261507,5.0.1.200809261507]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.ui/5.0.2] can be satisfied.
Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.core/[5.0.1.200809261507,5.0.1.200809261507]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.core/5.0.2] can be satisfied.
Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.ui/[5.0.1.200809261507,5.0.1.200809261507]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.ui/5.0.2] can be satisfied.
Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.core/[5.0.1.200809261507,5.0.1.200809261507]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.core/5.0.2] can be satisfied.
Cannot find a solution where both Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.ui/[5.0.1.200809261507,5.0.1.200809261507]] and Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.ui/5.0.2] can be satisfied.
Unsatisfied dependency: [org.eclipse.ptp.rdt.feature.group 2.1.0.200811031726] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.core/5.0.2
Unsatisfied dependency: [org.eclipse.ptp.rdt.feature.group 2.1.0.200811031726] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.cdt.ui/5.0.2

So, I am wondering whether you have some different version which is still not released. If so, do you mind to share a copy with me?

Regards,
Zou Yuanbin



2008/11/6 Steven Morrow <morrow@xxxxxxxxxxxx>
Hi Zou,

I'm afraid I don't know why you get the error "Proxy disconnected". Did
you run "sh BUILD" in the directory
<eclipse_installation>/

    plugins/org.eclipse.ptp.<os>.<arch>_2.1.0.YYYYMMDDHHMM
    ?
    It creates an executable in
    <eclipse_installation>/plugins/org.eclipse.ptp.mpich2_2.1.0.YYYYMMDDHHMM/bin
    , and seems to be a necessary step.

    The -lmpi is a compiler option which says "link with the file libmpi.a"
    which is searched for in the directory given by the -L option (i.e.
    /usr/local/lib in your case). however I don't see why you need these
    options as the command mpicc is supposed to perform the link with the
    mpi libraries automatically. So if you can compile without it then I'd
    say that there's no need to worry.

    As for the launching of MPICH2 without absolute paths, I haven't seen
    this problem. For me it works fine. Though I have noted that behaviour
    with MPICH1, which always requires a command line something like this;
      mpirun -np 10 /absolute/path/to/executable/MPIHW

    I'm afraid I can't help you much. I've more or less given up on trying
    to get PTP to work. Which is a shame, as it looks like it could be very
    useful.

    Regards,
     Steven

    ========================================================
     Steven MORROW, DOSIsoft, | Tel: +33(0)1 41 24 26 26
     45-47, avenue Carnot,    | Fax: +33(0)1 41 24 26 28
     94230 CACHAN, FRANCE     | E-mail: morrow@xxxxxxxxxxxx
    ========================================================


    邹园斌 wrote:
    > Hi, Steven
    > I have the mpd started, and when I start the Resource Manager, the error is:
    >
    > /Failed to start resource manager
    > Reason:
    > Proxy disconnected
    > /
    > and I try to compile some mpi codes in PTP, which resulted in error:
    >
    > /Building target: MPIHW
    > Invoking: GCC C Linker
    > mpicc -L/usr/local/lib -o"MPIHW"  ./src/MPIHW.o   -lmpi
    > /usr/bin/ld: cannot find -lmpi
    > collect2: ld returned 1 exit status
    > make: *** [MPIHW] Error 1
    > /
    > So, I tried to use the compile command "/mpicc -L/usr/local/lib
    > -o"MPIHW"  ./src/MPIHW.c   -lmpi/" to compile the codes in shell. I
    > changed the MPIHW.o to MPIHW.c because there is no MPIHW.o in the src
    > directory, but I don't this make any difference. Then the result was the
    > same:
    >
    > [root@localhost MPIHW]# mpicc -L/usr/local/lib -o"MPIHW" ./src/MPIHW.c -lmpi
    > /usr/bin/ld: cannot find -lmpi
    > collect2: ld returned 1 exit status
    >
    > Since I am an amateur mpi coder, I have no idea what this -lmpi mean? I
    > have tested that without this option, the compilation could go
    > successfully. Have you any idea what this option means? Thanks.
    >
    > And, what is more, I noticed that codes of OPENMPI could be excuted in
    > any directory without giving the absolute path, while codes of MPICH2 on
    > my computer seems could only run if the abusolute path was given.
    > which means such execution command:
    > [root@localhost MPIHW]# mpirun -n 10 ./Debug/MPIHW
    > could succeed with OpenMPI while faile with MPICH2
    >
    > So, what the situation on your computer? Can you share your opinion?
    > Thanks!
    >
    > Regards,
    > Zou Yuanbin
    >
    > 2008/11/4 Steven Morrow <morrow@xxxxxxxxxxxx <mailto:morrow@xxxxxxxxxxxx>>
    >
    >     Hi Zou,
    >
    >     In fact I haven't managed to get it to work either! After Beth's
    >     suggestion yesterday I installed the 2.1 update from
    >     http://wiki.eclipse.org/PTP/builds/2.1 and then, at least, the
    >     MPICH2 support installed successfully. However I haven't managed to
    >     run or debug my MPICH program yet as the resource manager stops as
    >     soon as I start running it. BTW, to get the resource manager to run
    >     I noticed that I needed to have mpd running. I had forgotten that
    >     initially and the thing wouldn't start at all, so maybe that could
    >     be your problem.
    >
    >     I haven't tried to use OpenMPI at all. My program was initally
    >     compiled with MPICH1 and I recompiled it with MPICH2
    >     (mpich2-1.0.6p1) to try out PTP. I put the bin directory in my path
    >     as you did. I don't know what I'm doing wrong as even the artifact
    >     view and barrier analysis don't work, despite the fact that I have
    >     added the include path to both the preferences and the project's
    >     properties (Project->Properties->C++ General->Paths and Symbols->).
    >     I am not using a managed make project, maybe that's it...
    >
    >     Regards,
    >
    >     Steven
    >
    >     ========================================================
    >      Steven MORROW, DOSIsoft, | Tel: +33(0)1 41 24 26 26
    >      45-47, avenue Carnot,    | Fax: +33(0)1 41 24 26 28
    >      94230 CACHAN, FRANCE     | E-mail: morrow@xxxxxxxxxxxx
    >     <mailto:morrow@xxxxxxxxxxxx>
    >     ========================================================
    >
    >
    >     邹园斌 wrote:
    >
    >         Hi, Steven
    >               Have you done any configuration on your system? I tried
    >         the same thing on my computer, with Redhat Enterprise Linux 5,
    >         MPICH2 and OpenMPI. With OpenMPI, PTP works excellent right
    >         remotly and locally; while with MPICH2, I just could not start
    >         the Resource Manager neither remotly nor locally. I am using
    >         Eclipse 3.4, PTP2.1, and CDT 5.0.1. <http://5.0.1.>
    >         <http://5.0.1.> The MPICH2 version is mpich2-1.0.8.
    >
    >               The MPICH2 was installed in the default directory, which
    >         is /usr/local/bin. In fact I just use
    >         ./configure
    >         make
    >         make install
    >         to install it.
    >         After the installation, I configured the environment with
    >         PATH=/home/you/mpich2-install/bin:$PATH ; export PATH
    >         So, could you give me some advise? Thanks.
    >
    >         Regards,
    >         Zou Yuanbin
    >         Tsinghua University, Beijing, China
    >
    >         2008/11/3 Steven Morrow <morrow@xxxxxxxxxxxx
    >         <mailto:morrow@xxxxxxxxxxxx> <mailto:morrow@xxxxxxxxxxxx
    >         <mailto:morrow@xxxxxxxxxxxx>>>
    >
    >
    >            Thank you, that worked.
    >
    >            Steven
    >
    >            ========================================================
    >             Steven MORROW, DOSIsoft, | Tel: +33(0)1 41 24 26 26
    >             45-47, avenue Carnot,    | Fax: +33(0)1 41 24 26 28
    >             94230 CACHAN, FRANCE     | E-mail: morrow@xxxxxxxxxxxx
    >         <mailto:morrow@xxxxxxxxxxxx>
    >            <mailto:morrow@xxxxxxxxxxxx <mailto:morrow@xxxxxxxxxxxx>>
    >            ========================================================
    >
    >
    >            Beth Tibbitts wrote:
    >
    >                Looks like you are trying to install PTP 2.0.2.
    >         <http://2.0.2.> <http://2.0.2.>.
    >
    >                PTP 2.0.x is designed for Eclipse 3.3 and CDT 4.0.x
    >                PTP 2.1 is designed for Eclipse 3.4 and CDT 5.0.x -- PTP 2.1
    >                should be imminently available (we are doing the final builds
    >                and testing today) and will work on Eclipse 3.4
    >                You can download the most recent builds in the meantime at
    >                http://wiki.eclipse.org/PTP/builds/2.1
    >
    >                Since you have the other tools for Eclipse 3.4 I would
    >         suggest
    >                you install PTP 2.1
    >
    >
    >
    >                ...Beth
    >
    >                Beth Tibbitts (859) 243-4981 (TL 545-4981)
    >                High Productivity Tools / Parallel Tools
    >         http://eclipse.org/ptp
    >                IBM T.J.Watson Research Center
    >                Mailing Address: IBM Corp., 745 West New Circle Road,
    >         Lexington,
    >                KY 40511
    >
    >
    >
    >          ------------------------------------------------------------------------
    >
    >                _______________________________________________
    >                ptp-user mailing list
    >                ptp-user@xxxxxxxxxxx <mailto:ptp-user@xxxxxxxxxxx>
    >         <mailto:ptp-user@xxxxxxxxxxx <mailto:ptp-user@xxxxxxxxxxx>>
    >
    >                https://dev.eclipse.org/mailman/listinfo/ptp-user
    >
    >
    >
    >            _______________________________________________
    >            ptp-user mailing list
    >            ptp-user@xxxxxxxxxxx <mailto:ptp-user@xxxxxxxxxxx>
    >         <mailto:ptp-user@xxxxxxxxxxx <mailto:ptp-user@xxxxxxxxxxx>>
    >
    >            https://dev.eclipse.org/mailman/listinfo/ptp-user
    >
    >
    >
    >
    > !DSPAM:4912b1a530841626931406!

Back to the top