• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OpenMPI in XCode 3.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenMPI in XCode 3.2


  • Subject: Re: OpenMPI in XCode 3.2
  • From: Adam Mooz <email@hidden>
  • Date: Mon, 11 Jan 2010 10:57:43 -0500

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, <email@hidden> 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
> email@hidden
> 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/Conceptual/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


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: OpenMPI in XCode 3.2
      • From: Dave Reed <email@hidden>
References: 
 >OpenMPI in XCode 3.2 (From: Adam Mooz <email@hidden>)
 >Re: OpenMPI in XCode 3.2 (From: email@hidden)

  • Prev by Date: Re: File encoding for files ported between Mac and Windows?
  • Next by Date: Re: File encoding for files ported between Mac and Windows?
  • Previous by thread: Re: OpenMPI in XCode 3.2
  • Next by thread: Re: OpenMPI in XCode 3.2
  • Index(es):
    • Date
    • Thread