Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [ptp-dev] Re: Adding SLURM support to PTP 3.0

Hi Greg,
 
I have checked out the latest HEAD and reimplement SLURMRuntimeModelPresentation  based on the latest OpenMPIRuntimeModelPresentation.
However, this does not solve the problem.

After comparing the handling process of processStateChangeEvent and jobStateChangeEvent, I found that for processStateChangeEvent (with processStatus=xxx encoded), the "object" parameter of the getImage method of SLURMRuntimeModelPresentation is of type "jobManager", so the first condition (i.e, if (object instanceof IElement)) returns TRUE. Therefore, following statements are executed.  But for a jobStateChangeEvent (with jobStatus=xxx encoded), the "object" parameter of the getImage method is of type "PJob", and the first if judgement returns "FALSE", the getImage returns null imediately and certainly no status image can be obtained as expected.
 
What causes this difference?

Regards,
Jie

 

Subject: Re: [ptp-dev] Re: Adding SLURM support to PTP 3.0
From: g.watson@xxxxxxxxxxxx
Date: Thu, 8 Oct 2009 08:29:36 -0400
CC: ptp-dev@xxxxxxxxxxx
To: yangtzj@xxxxxxxxxxx

Jie,

I changed some code in OpenMPIRuntimeModelPresentation. Can you check that your model presentation code is doing the same thing?

Thanks,

Greg

On Oct 7, 2009, at 12:15 AM, JiangJie wrote:


 Hi Greg,
 
The problem still remains in the latest HEAD.
 
Can you give some clue so that I can help to debug it?
 
Regards,
Jie 

From: g.watson@xxxxxxxxxxxx
Subject: Re: [ptp-dev] Re: Adding SLURM support to PTP 3.0
Date: Mon, 5 Oct 2009 16:19:06 -0400
To: yangtzj@xxxxxxxxxxx

Hi Jie,

Yes there was a problem which should now be fixed in HEAD. Let me know if it's still not working.

Greg

On Oct 5, 2009, at 11:05 AM, JiangJie wrote:

Hi Greg,

After implementing SLURMRuntimeModelPresentation.java like the OpenMPIRuntimeModelPresentation.java, 
the process icon will change on receving the ProcessStateChange event, which encodes "processStatus=xxx" attribute string.

However, the job icon doesn't change with the "jobStatus=xxx", which is sent together with JobStateChange event
I have traced the code and found that the SLURMRuntimeModelPresentation.getImage() method never reaches the "else if (pElement instanceof IPjob)" branch. So the job status icon doesn't change as expected, that is, changing the job status icon according to the jobStatus received based on RMModelImages.jobImages Map.

Can you check it?

Regards,
Jie



更多热辣资讯尽在新版MSN首页! 立刻访问!

Back to the top