getting standard input when running MPI program using custom executable
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