OpenMPI in XCode 3.2

  • Hello All,

    I'm trying to setup XCode so I  can compile OpenMPI programs from within XCode, but the only documentation seems to be for setting up XCode 2.3, not 3.2.  Has anyone successfully setup OpenMPI within XCode or can someone point me to documentation on adding a custom compiler to XCode?

    Thanks,
    -----------------------------------------------------------------
    Adam Mooz
    <Adam.Mooz...>
    http://www.AdamMooz.com
  • On Jan 9, 2010, at 8:35 PM, Adam Mooz wrote:

    > Hello All,
    >
    > I'm trying to setup XCode so I  can compile OpenMPI programs from within XCode, but the only documentation seems to be for setting up XCode 2.3, not 3.2.  Has anyone successfully setup OpenMPI within XCode or can someone point me to documentation on adding a custom compiler to XCode?
    >
    > Thanks,
    > -----------------------------------------------------------------
    > Adam Mooz
    > <Adam.Mooz...>
    > http://www.AdamMooz.com

    Funny you should ask, I was just getting ready to post a question about running MPI programs from Xcode. I'll post it in a separate message to keep the mail threads clean. Here's what I did to use mpi to compile within Xcode.

    The way I've done it is to create a build configuration file (see the following documentation for how to do this).

    <http://developer.apple.com/Mac/library/documentation/DeveloperTools/Concept
    ual/XcodeBuildSystem/400-Build_Configurations/build_configs.html
    >

    In the xcconfig configuration file, put the line:
    CC = /usr/bin/mpic++

    since I'm writing C++ MPI code.

    and the tell Xcode to use that configuration file as shown in figure 4.2 of the above link.

    Dave
  • Hey Dave,

    Could you post your .xconfig file as a sample for anyone else who's looking
    to do the same?

    Adam Mooz
    Blog: http://www.adammooz.com
    LinkedIn: http://www.linkedin.com/ln/adammooz

    On Sun, Jan 10, 2010 at 10:04 AM, <davelist...> wrote:

    >
    > On Jan 9, 2010, at 8:35 PM, Adam Mooz wrote:
    >
    >> Hello All,
    >>
    >> I'm trying to setup XCode so I  can compile OpenMPI programs from within
    > XCode, but the only documentation seems to be for setting up XCode 2.3, not
    > 3.2.  Has anyone successfully setup OpenMPI within XCode or can someone
    > point me to documentation on adding a custom compiler to XCode?
    >>
    >> Thanks,
    >> -----------------------------------------------------------------
    >> Adam Mooz
    >> <Adam.Mooz...>
    >> http://www.AdamMooz.com
    >
    >
    > Funny you should ask, I was just getting ready to post a question about
    > running MPI programs from Xcode. I'll post it in a separate message to keep
    > the mail threads clean. Here's what I did to use mpi to compile within
    > Xcode.
    >
    > The way I've done it is to create a build configuration file (see the
    > following documentation for how to do this).
    >
    > <
    > http://developer.apple.com/Mac/library/documentation/DeveloperTools/Concept
    ual/XcodeBuildSystem/400-Build_Configurations/build_configs.html

    >>
    >
    > In the xcconfig configuration file, put the line:
    > CC = /usr/bin/mpic++
    >
    > since I'm writing C++ MPI code.
    >
    > and the tell Xcode to use that configuration file as shown in figure 4.2 of
    > the above link.
    >
    > Dave
    >
    >
  • On Jan 11, 2010, at 10:57 AM, Adam Mooz wrote:

    > Hey Dave,
    >
    > Could you post your .xconfig file as a sample for anyone else who's looking to do the same?
    >
    > Adam Mooz
    > Blog: http://www.adammooz.com
    > LinkedIn: http://www.linkedin.com/ln/adammooz
    >
    >
    > On Sun, Jan 10, 2010 at 10:04 AM, <davelist...> wrote:
    >
    > On Jan 9, 2010, at 8:35 PM, Adam Mooz wrote:
    >
    >> Hello All,
    >>
    >> I'm trying to setup XCode so I  can compile OpenMPI programs from within XCode, but the only documentation seems to be for setting up XCode 2.3, not 3.2.  Has anyone successfully setup OpenMPI within XCode or can someone point me to documentation on adding a custom compiler to XCode?
    >>
    >> Thanks,
    >> -----------------------------------------------------------------
    >> Adam Mooz
    >> <Adam.Mooz...>
    >> http://www.AdamMooz.com
    >
    >
    > Funny you should ask, I was just getting ready to post a question about running MPI programs from Xcode. I'll post it in a separate message to keep the mail threads clean. Here's what I did to use mpi to compile within Xcode.
    >
    > The way I've done it is to create a build configuration file (see the following documentation for how to do this).
    >
    > <http://developer.apple.com/Mac/library/documentation/DeveloperTools/Concept
    ual/XcodeBuildSystem/400-Build_Configurations/build_configs.html
    >
    >
    > In the xcconfig configuration file, put the line:
    > CC = /usr/bin/mpic++
    >
    > since I'm writing C++ MPI code.
    >
    > and the tell Xcode to use that configuration file as shown in figure 4.2 of the above link.
    >
    > Dave

    There's only one line in my mpi.xcconfig file:
    CC = /usr/bin/mpic++

    Dave
  • Well now I just feel plain silly.  I thought you meant that was the only
    line you changed to implement OpenMPI.

    Thanks!

    Adam Mooz
    Blog: http://www.adammooz.com
    LinkedIn: http://www.linkedin.com/ln/adammooz

    On Mon, Jan 11, 2010 at 2:26 PM, Dave Reed <davelist...> wrote:

    >
    > On Jan 11, 2010, at 10:57 AM, Adam Mooz wrote:
    >
    >> Hey Dave,
    >>
    >> Could you post your .xconfig file as a sample for anyone else who's
    > looking to do the same?
    >>
    >> Adam Mooz
    >> Blog: http://www.adammooz.com
    >> LinkedIn: http://www.linkedin.com/ln/adammooz
    >>
    >>
    >> On Sun, Jan 10, 2010 at 10:04 AM, <davelist...> wrote:
    >>
    >> On Jan 9, 2010, at 8:35 PM, Adam Mooz wrote:
    >>
    >>> Hello All,
    >>>
    >>> I'm trying to setup XCode so I  can compile OpenMPI programs from
    > within XCode, but the only documentation seems to be for setting up XCode
    > 2.3, not 3.2.  Has anyone successfully setup OpenMPI within XCode or can
    > someone point me to documentation on adding a custom compiler to XCode?
    >>>
    >>> Thanks,
    >>> -----------------------------------------------------------------
    >>> Adam Mooz
    >>> <Adam.Mooz...>
    >>> http://www.AdamMooz.com
    >>
    >>
    >> Funny you should ask, I was just getting ready to post a question about
    > running MPI programs from Xcode. I'll post it in a separate message to keep
    > the mail threads clean. Here's what I did to use mpi to compile within
    > Xcode.
    >>
    >> The way I've done it is to create a build configuration file (see the
    > following documentation for how to do this).
    >>
    >> <
    > http://developer.apple.com/Mac/library/documentation/DeveloperTools/Concept
    ual/XcodeBuildSystem/400-Build_Configurations/build_configs.html

    >>
    >>
    >> In the xcconfig configuration file, put the line:
    >> CC = /usr/bin/mpic++
    >>
    >> since I'm writing C++ MPI code.
    >>
    >> and the tell Xcode to use that configuration file as shown in figure 4.2
    > of the above link.
    >>
    >> Dave
    >
    >
    > There's only one line in my mpi.xcconfig file:
    > CC = /usr/bin/mpic++
    >
    > Dave
    >
    >
    >
    >
previous month january 2010 next month
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Go to today