• 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
getting standard input when running MPI program using custom executable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting standard input when running MPI program using custom executable


  • Subject: getting standard input when running MPI program using custom executable
  • From: email@hidden
  • Date: Sun, 10 Jan 2010 10:13:20 -0500

I'm trying to run an MPI program that I've compiled within Xcode.  I've compiled it by creating an xcconfig configuration file and setting:
CC = /usr/bin/mpic++

in that configuration file.

To run it, I created a custom executable with the path:

/usr/bin/mpirun

I then added two command line arguments in the inspector:

-np 8
FloydMPI

where FloydMPI is the name of my executable.

Running this executable within Xcode works except if the program requests input from from the standard input (e.g., a C++ cin or getline statement). The program just stops at the input statement, but typing anything in doesn't get it to continue. I'm guessing that since Xcode is running the mpirun program, it isn't set up to allow input from the program mpirun starts.

This of course works fine if I issue the mpirun statement in the Terminal.

Is there a workaround to allow standard input to be entered when running MPI programs within Xcode?

Thanks,
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: getting standard input when running MPI program using custom executable
      • From: James Bucanek <email@hidden>
  • Prev by Date: Re: OpenMPI in XCode 3.2
  • Next by Date: Re: File encoding for files ported between Mac and Windows?
  • Previous by thread: How to resolve bulk warning "Creating selector for nonexistent method ..."?
  • Next by thread: Re: getting standard input when running MPI program using custom executable
  • Index(es):
    • Date
    • Thread