Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] Running parallel application with PTP.

I didn't see you say anywhere that you ran the BUILD script in the fragment directory. Have you done that step of the installation?

You shouldn't need to touch the Open RTE preferences. PTP will automatically find the proxy if you've built it as part of the installation.

Greg

On Mar 16, 2007, at 1:21 PM, Magda S. wrote:

What I am doing when I want to run a parallel application:

0. I added to my PATH and LD_LIBRARY_PATH: /opt/ompi/bin and
/opt/ompi/lib, respectively (to enable OpenMP and looking for relevant
executables and libraries). I use OpenMP 1.2 (from March 2007)

1. I have a fresh Eclipse 3.2.2 + PTP 1.1.0 (I can see specific
buttons, I can see perspectives in my menu, etc.)

2. I configure my mpi stuff: Window -> Preferences
   PTP -> Open RTE
  I get the error message:
    "Could not accept changes: The currently displayed page contains
invalid values."
  After clicking OK a few times and trying to go to PTP-> OpenRTE
finally I reach the Open RTE configuration panel.

 I set: ORTE|PTP proxy server to:
/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86/bin
         Launch ORTE manually: unchecked.

But there is only a README file (so I can't see any point in setting
it to this directory):

magg@sartorius:~$ ls -la
/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86/bin/
total 12
drwxr-xr-x 2 magg magg 4096 2006-11-09 15:45 .
drwxr-xr-x 4 magg magg 4096 2006-11-09 15:45 ..
-rw-r--r-- 1 magg magg   32 2006-11-09 14:38 README
magg@sartorius:~$

3. I click apply, ok, etc.
4. I create my mpiproject: (C managed make project; executable gnu) in
my workspace.
   Since this is a C project the system asks me to switch to the C
perspective. So I follow its instructions.
5. I create a source file names test.c.
6. Unfortunately, it can's see my mpi.h, and MPI_Init, etc. but I
think that I told it to use my OpenMP stuff (I saw previously that it
finds my paths to OpenMP correctly). Never mind. I use properties of
my project and add manually include and libraries in Fortran Build
(sic!) - probably because of the photran plugin.
7. Now, it can see my mpi.h, MPI_Init, etc. And I can see my
executable in my workspace project Debug directory.
8. I check if the program works from the terminal:

magg@sartorius:~/mywork/mpiproject/Debug$ mpirun -np 8 mpiproject

Fine it works.

9. According to Chengdong Li suggestions I switch to PTP Runtime
perspective since I want to run my program from Eclipse. But before I
check what Eclipse told to my terminal (from which I started Eclipse):

-----------------
magg@sartorius:/opt$ eclipse-3.2.2/eclipse --clean &
[1] 13339
magg@sartorius:/opt$ GTK Accessibility Module initialized
In getResourceManagerFactories
retrieved factory: Simulation, org.eclipse.ptp.simulation.core.resourcemanager
leaving getResourceManagerFactories
Your Control System Choice: '<UNDEFINED CS>'
Your Monitoring System Choice: '<UNDEFINED MS>'
No previous (or invalid) control or monitoring system selected.

Default systems set to Open Runtime Environment (ORTE).  To change,
use the Window->Preferences->PTP preferences page.
Your Default Control System Choice: 'Open Runtime Environment (ORTE)'
Your Default Monitoring System Choice: 'Open Runtime Environment (ORTE)'
In retrieveConfigurationWizardPageFactories
wizard page factory:
org.eclipse.ptp.simulation.ui.wizards.SimulationRMConfigurationWizardP ageFactory@1bc93a7
for class: class
org.eclipse.ptp.rmsystem.SimulationResourceManagerFactory
leaving retrieveConfigurationWizardPageFactories
XXXXXXXXXXX refreshRuntimeSystems(false), isInitialized():false
XXXXXXXXXXX refreshRuntimeSystems calling initialize(), force:false,
isInitialized():false
refreshRuntimeSystems
SHUTTING DOWN CONTROL/MONITORING/PROXY systems where appropriate
OMPIProxyRuntimeClient - firing up proxy, waiting for connecting.
Please wait!  This can take a minute . . .
ORTE_SERVER path = ''
OS = 'linux', Architecture = 'x86', OS_ARCH combo = 'org.eclipse.ptp.linux.x86'
PTP Version = 1.1.0
All Found Fragments:
       update@plugins/org.eclipse.ptp.linux.ppc/ [141]
       update@plugins/org.eclipse.ptp.linux.x86/ [142]
       update@plugins/org.eclipse.ptp.linux.x86_64/ [143]
       update@plugins/org.eclipse.ptp.macosx.ppc/ [144]
       update@plugins/org.eclipse.ptp.macosx.x86/ [145]
Testing fragment 1 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.ppc/'
Testing fragment 2 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86/'
       Correct fragment for our OS & arch
       Searching for file in
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86/bin/ ptp_orte_proxy'
Testing fragment 3 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86_64/'
       Correct fragment for our OS & arch
       Searching for file in
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86_64/bin/ ptp_orte_proxy'
Testing fragment 4 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.macosx.ppc/'
Testing fragment 5 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.macosx.x86/'
Could not find the ORTE server ('ptp_orte_proxy' binary).  File not
found in the fragment directory or developer directories.  Defaulting
to Simulation Mode.
Failed to start up the proxy runtime.

** (Gecko:13340): CRITICAL **: gail_menu_item_ref_child: assertion `(i
= 0)' failed
OS = 'linux', Architecture = 'x86', OS_ARCH combo = 'org.eclipse.ptp.linux.x86'
PTP Version = 1.1.0
All Found Fragments:
       update@plugins/org.eclipse.ptp.linux.ppc/ [141]
       update@plugins/org.eclipse.ptp.linux.x86/ [142]
       update@plugins/org.eclipse.ptp.linux.x86_64/ [143]
       update@plugins/org.eclipse.ptp.macosx.ppc/ [144]
       update@plugins/org.eclipse.ptp.macosx.x86/ [145]
Testing fragment 1 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.ppc/'
Testing fragment 2 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86/'
       Correct fragment for our OS & arch
       Searching for file in
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86/bin/ ptp_orte_proxy'
Testing fragment 3 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86_64/'
       Correct fragment for our OS & arch
       Searching for file in
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86_64/bin/ ptp_orte_proxy'
Testing fragment 4 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.macosx.ppc/'
Testing fragment 5 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.macosx.x86/'
OS = 'linux', Architecture = 'x86', OS_ARCH combo = 'org.eclipse.ptp.linux.x86'
PTP Version = 1.1.0
All Found Fragments:
       update@plugins/org.eclipse.ptp.linux.ppc/ [141]
       update@plugins/org.eclipse.ptp.linux.x86/ [142]
       update@plugins/org.eclipse.ptp.linux.x86_64/ [143]
       update@plugins/org.eclipse.ptp.macosx.ppc/ [144]
       update@plugins/org.eclipse.ptp.macosx.x86/ [145]
Testing fragment 1 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.ppc/'
Testing fragment 2 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86/'
       Correct fragment for our OS & arch
       Searching for file in
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86/bin/sdm'
Testing fragment 3 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86_64/'
       Correct fragment for our OS & arch
       Searching for file in
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86_64/bin/sdm'
Testing fragment 4 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.macosx.ppc/'
Testing fragment 5 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.macosx.x86/'
OS = 'linux', Architecture = 'x86', OS_ARCH combo =
'org.eclipse.ptp.mpich2.proxy.linux.x86'
PTP Version = 1.1.0
All Found Fragments:
       update@plugins/org.eclipse.ptp.linux.ppc/ [141]
       update@plugins/org.eclipse.ptp.linux.x86/ [142]
       update@plugins/org.eclipse.ptp.linux.x86_64/ [143]
       update@plugins/org.eclipse.ptp.macosx.ppc/ [144]
       update@plugins/org.eclipse.ptp.macosx.x86/ [145]
Testing fragment 1 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.ppc/'
Testing fragment 2 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86/'
Testing fragment 3 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.linux.x86_64/'
Testing fragment 4 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.macosx.ppc/'
Testing fragment 5 with this OS/arch - path:
'/opt/eclipse-3.2.2/plugins/org.eclipse.ptp.macosx.x86/'

** (Gecko:13340): CRITICAL **: gail_menu_item_ref_child: assertion `(i
= 0)' failed

-----------------

10. As you can see it has some problems with running ptp_proxy_bleble.
I check if orted is running:

magg@sartorius:/opt$ ps -ef | grep orte
magg     14857 12172  0 15:03 pts/0    00:00:00 grep orte
magg@sartorius:/opt$

It doesn't run.

11. I am in CDT perspective and I switch to PTP Runtime perspective:
- in Eclipse it went smoothly but my terminal said:

magg@sartorius:/opt$
** (Gecko:13340): CRITICAL **: gail_menu_item_ref_child: assertion `(i
= 0)' failed

** (Gecko:13340): CRITICAL **: gail_menu_item_ref_child: assertion `(i
= 0)' failed

12. I am checking if orted is running - no it is not running. In spite
of this, I try to run my application: Run -> Parallel Application. I
configure my run configuration: Debug/mpiproject as an application
program, mpiproject as a project, number of processes 8. Press Apply
and then Run. And ....

I got: Exception occurred during launch: Reason Error within Debug UI.
java.lang.reflect.InvocationTargetException.

I am checking what my terminal says:
----------------
magg@sartorius:/opt$ XXXXXXXXXXX refreshRuntimeSystems(false),
isInitialized():false
XXXXXXXXXXX refreshRuntimeSystems calling initialize(), force:false,
isInitialized():false
refreshRuntimeSystems
SHUTTING DOWN CONTROL/MONITORING/PROXY systems where appropriate
User selected 1 simulated machines.
SimPreferences: Machine 0 = 4 nodes
ModelManager.runtimeNodeGeneralName - #keys = 5, #values = 5
               Unknown machine ID (machine0), adding to the model.
               Unknown node number (0), adding to the model.
               Unknown node number (1), adding to the model.
               Unknown node number (2), adding to the model.
               Unknown node number (3), adding to the model.
XXXXXXXXXXXX   Waiting for Universe to Populate
MODEL MANAGER: newJob(1)
------------

In my Eclipse machine view I can see 4 nodes.

13. I am starting from this terminal orted manually.
magg@sartorius:/opt$ /opt/ompi/bin/orted &
[2] 15128

14. And I am running the same configuration. But again I get the same
message window with Debug UI.

And my terminal says:

magg@sartorius:/opt$ XXXXXXXXXXXX   Waiting for Universe to Populate
MODEL MANAGER: newJob(2)

And my orted runs:
magg@sartorius:/opt$ ps -ef | grep orted
magg     15129     1  0 15:13 ?        00:00:00 /opt/ompi/bin/orted
magg     15211 12172  0 15:16 pts/0    00:00:00 grep orted
magg@sartorius:/opt$

15. When I switch to PTP Debug perspective I got the same message
window with Debug UI exception.


On 3/16/07, Chengdong Li <ptp.eclipse@xxxxxxxxx> wrote:
BTW, it should not relate to Eclispe 3.2.2. I am using E3.2.2 and CDT3.1.2. I can get the similiar error, but when I switch to a PTP Debug perspective
and rerun, then it works. (Hope you too :-))

So I am not lucky as you :(. So still I can't run my parallel program.

Best regards. Any suggestions?
--
Magda
_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-user



Back to the top