ossimImageHandler::buildAllOverviews crash under vs2008

11 messages Options
Embed this post
Permalink
Lecadre Sabrina

ossimImageHandler::buildAllOverviews crash under vs2008

Reply Threaded More More options
Print post
Permalink
Hello !

Can you reproduce this one ?

SVN R15855 (after adding missing files to the project and renaming foo.cpp to ossim-foo.cpp in the project file).

In ossim-foo, after ossimInit, open a simple image file (tiff with world file) and call buildAllOverviews on the image handler.
It crashes for me :)
The issue seems to be in openOverview.

Tell me if it also happens to you... This used to work but I haven't uploaded for a long time and I can't figure out why this is happening now.

Thanks


Sabrina

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
David Burken

Re: ossimImageHandler::buildAllOverviews crash under vs2008

Reply Threaded More More options
Print post
Permalink
Hi Sabrina,

Seems to be good here.

$ svn update
At revision 15855.

Just tested:

imagelinker,
ossim-img2rr

With tiff with tfw and everything seems fine.

Maybe there's something wrong in you foo app?

You can look at ossim-img2rr.cpp for example.

Dave


On 11/05/2009 09:01 AM, Lecadre Sabrina wrote:

> Hello !
>
> Can you reproduce this one ?
>
> SVN R15855 (after adding missing files to the project and renaming foo.cpp to ossim-foo.cpp in the project file).
>
> In ossim-foo, after ossimInit, open a simple image file (tiff with world file) and call buildAllOverviews on the image handler.
> It crashes for me :)
> The issue seems to be in openOverview.
>
> Tell me if it also happens to you... This used to work but I haven't uploaded for a long time and I can't figure out why this is happening now.
>
> Thanks
>
>
> Sabrina
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> www.ossim.org
> Ossim-developer mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/ossim-developer
>
>    

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
Lecadre Sabrina

Re: ossimImageHandler::buildAllOverviews crash under vs2008

Reply Threaded More More options
Print post
Permalink
In reply to this post by Lecadre Sabrina
Understood !

It was a matter of using an ossimRefPtr or not in my case...
Thanks for pointing working code, a quick comparison solved the issue !

Sabrina

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
j artieda

MPI problem

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)


Hi,

I am trying to run my own plugin using ossim-igen (.spec file) and MPI in a 4 core PC.

The plugin is correctly registered:

C:\>ossim_plugin
Plugin: C:\programas\superres2\libsuperres.dll
DESCRIPTION:
    Superresolution Plugin
CLASSES SUPPORTED
    ossimSuperResFilter


When I run "ossim-igen test.spec" everything works fine.

The problem comes when I try to use all 4 cores with MPI: "mpiexec -localonly 4 ossim-igen test.spec". I see Ossim sends all the image tiles to the 4 processors instead of sending each tile to a different processor. So the image is processed 4 times.

When I use other filter in the .spec file, for example a border filter, It seems to run ok but I don't know how to be sure of this.

Ossim is built against MPICH2 library without error.

Could you please give me any hints about how to solve this problem?

Thanks in advance for your help.

Jorge



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
David R. Burken

Re: MPI problem

Reply Threaded More More options
Print post
Permalink
Hi,

You should have three slaves and one master.  Each slave should be processing a different tile in the sequence.  When you time four versus one do you get any speed up?

Dave

________________________________________
From: j artieda [[hidden email]]
Sent: Friday, November 06, 2009 3:02 AM
To: Ossim-Developer (E-mail)
Subject: [OSSIM] MPI problem

Hi,

I am trying to run my own plugin using ossim-igen (.spec file) and MPI in a 4 core PC.

The plugin is correctly registered:

C:\>ossim_plugin
Plugin: C:\programas\superres2\libsuperres.dll
DESCRIPTION:
    Superresolution Plugin
CLASSES SUPPORTED
    ossimSuperResFilter


When I run "ossim-igen test.spec" everything works fine.

The problem comes when I try to use all 4 cores with MPI: "mpiexec -localonly 4 ossim-igen test.spec". I see Ossim sends all the image tiles to the 4 processors instead of sending each tile to a different processor. So the image is processed 4 times.

When I use other filter in the .spec file, for example a border filter, It seems to run ok but I don't know how to be sure of this.

Ossim is built against MPICH2 library without error.

Could you please give me any hints about how to solve this problem?

Thanks in advance for your help.

Jorge



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
j artieda

Re: MPI problem

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi,
we don't get any speed up with our filter.
I have recompiled ossim with a printf on bandmerge filter and now i can confirm that works with this filter, each slave process a different tile
It seems that the problem is only with our filter, the same tile is processed 4 times
do we have to implement something specific on the filter?
our filter is a combiner with an input of 4 images, I don't know if this can give you any hint.
Any ideas?

thanks
Jorge


From: David R. Burken <[hidden email]>
To: j artieda <[hidden email]>; Ossim-Developer (E-mail) <[hidden email]>
Sent: Fri, November 6, 2009 3:35:44 PM
Subject: Re: [OSSIM] MPI problem

Hi,

You should have three slaves and one master.  Each slave should be processing a different tile in the sequence.  When you time four versus one do you get any speed up?

Dave

________________________________________
From: j artieda [[hidden email]]
Sent: Friday, November 06, 2009 3:02 AM
To: Ossim-Developer (E-mail)
Subject: [OSSIM] MPI problem

Hi,

I am trying to run my own plugin using ossim-igen (.spec file) and MPI in a 4 core PC.

The plugin is correctly registered:

C:\>ossim_plugin
Plugin: C:\programas\superres2\libsuperres.dll
DESCRIPTION:
    Superresolution Plugin
CLASSES SUPPORTED
    ossimSuperResFilter


When I run "ossim-igen test.spec" everything works fine.

The problem comes when I try to use all 4 cores with MPI: "mpiexec -localonly 4 ossim-igen test.spec". I see Ossim sends all the image tiles to the 4 processors instead of sending each tile to a different processor. So the image is processed 4 times.

When I use other filter in the .spec file, for example a border filter, It seems to run ok but I don't know how to be sure of this.

Ossim is built against MPICH2 library without error.

Could you please give me any hints about how to solve this problem?

Thanks in advance for your help.

Jorge



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
David Burken

Re: MPI problem

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi,

Your filter should be to the left of the sequencer.  That should fix you.

Dave


On 11/06/2009 12:21 PM, j artieda wrote:
Hi,
we don't get any speed up with our filter.
I have recompiled ossim with a printf on bandmerge filter and now i can confirm that works with this filter, each slave process a different tile
It seems that the problem is only with our filter, the same tile is processed 4 times
do we have to implement something specific on the filter?
our filter is a combiner with an input of 4 images, I don't know if this can give you any hint.
Any ideas?

thanks
Jorge


From: David R. Burken [hidden email]
To: j artieda [hidden email]; Ossim-Developer (E-mail) [hidden email]
Sent: Fri, November 6, 2009 3:35:44 PM
Subject: Re: [OSSIM] MPI problem

Hi,

You should have three slaves and one master.  Each slave should be processing a different tile in the sequence.  When you time four versus one do you get any speed up?

Dave

________________________________________
From: j artieda [[hidden email]]
Sent: Friday, November 06, 2009 3:02 AM
To: Ossim-Developer (E-mail)
Subject: [OSSIM] MPI problem

Hi,

I am trying to run my own plugin using ossim-igen (.spec file) and MPI in a 4 core PC.

The plugin is correctly registered:

C:\>ossim_plugin
Plugin: C:\programas\superres2\libsuperres.dll
DESCRIPTION:
    Superresolution Plugin
CLASSES SUPPORTED
    ossimSuperResFilter


When I run "ossim-igen test.spec" everything works fine.

The problem comes when I try to use all 4 cores with MPI: "mpiexec -localonly 4 ossim-igen test.spec". I see Ossim sends all the image tiles to the 4 processors instead of sending each tile to a different processor. So the image is processed 4 times.

When I use other filter in the .spec file, for example a border filter, It seems to run ok but I don't know how to be sure of this.

Ossim is built against MPICH2 library without error.

Could you please give me any hints about how to solve this problem?

Thanks in advance for your help.

Jorge



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer

------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ www.ossim.org Ossim-developer mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/ossim-developer

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
j artieda

Re: MPI problem

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
I don't have a sequencer on the chain.
should I put one?

my chain is reader(x4) --> combiner --> writer

Jorge



From: David Burken <[hidden email]>
To: [hidden email]
Sent: Fri, November 6, 2009 6:32:14 PM
Subject: Re: [OSSIM] MPI problem

Hi,

Your filter should be to the left of the sequencer.  That should fix you.

Dave


On 11/06/2009 12:21 PM, j artieda wrote:
Hi,
we don't get any speed up with our filter.
I have recompiled ossim with a printf on bandmerge filter and now i can confirm that works with this filter, each slave process a different tile
It seems that the problem is only with our filter, the same tile is processed 4 times
do we have to implement something specific on the filter?
our filter is a combiner with an input of 4 images, I don't know if this can give you any hint.
Any ideas?

thanks
Jorge


From: David R. Burken [hidden email]
To: j artieda [hidden email]; Ossim-Developer (E-mail) [hidden email]
Sent: Fri, November 6, 2009 3:35:44 PM
Subject: Re: [OSSIM] MPI problem

Hi,

You should have three slaves and one master.  Each slave should be processing a different tile in the sequence.  When you time four versus one do you get any speed up?

Dave

________________________________________
From: j artieda [[hidden email]]
Sent: Friday, November 06, 2009 3:02 AM
To: Ossim-Developer (E-mail)
Subject: [OSSIM] MPI problem

Hi,

I am trying to run my own plugin using ossim-igen (.spec file) and MPI in a 4 core PC.

The plugin is correctly registered:

C:\>ossim_plugin
Plugin: C:\programas\superres2\libsuperres.dll
DESCRIPTION:
    Superresolution Plugin
CLASSES SUPPORTED
    ossimSuperResFilter


When I run "ossim-igen test.spec" everything works fine.

The problem comes when I try to use all 4 cores with MPI: "mpiexec -localonly 4 ossim-igen test.spec". I see Ossim sends all the image tiles to the 4 processors instead of sending each tile to a different processor. So the image is processed 4 times.

When I use other filter in the .spec file, for example a border filter, It seems to run ok but I don't know how to be sure of this.

Ossim is built against MPICH2 library without error.

Could you please give me any hints about how to solve this problem?

Thanks in advance for your help.

Jorge



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer

------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ www.ossim.org Ossim-developer mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/ossim-developer


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
David Burken

Re: MPI problem

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Oh sorry,

Are you using our apps, i.e. ossim-igen or ossim-orthoigen or is this a custom app?

Dave


On 11/06/2009 01:13 PM, j artieda wrote:
I don't have a sequencer on the chain.
should I put one?

my chain is reader(x4) --> combiner --> writer

Jorge



From: David Burken [hidden email]
To: [hidden email]
Sent: Fri, November 6, 2009 6:32:14 PM
Subject: Re: [OSSIM] MPI problem

Hi,

Your filter should be to the left of the sequencer.  That should fix you.

Dave


On 11/06/2009 12:21 PM, j artieda wrote:
Hi,
we don't get any speed up with our filter.
I have recompiled ossim with a printf on bandmerge filter and now i can confirm that works with this filter, each slave process a different tile
It seems that the problem is only with our filter, the same tile is processed 4 times
do we have to implement something specific on the filter?
our filter is a combiner with an input of 4 images, I don't know if this can give you any hint.
Any ideas?

thanks
Jorge


From: David R. Burken [hidden email]
To: j artieda [hidden email]; Ossim-Developer (E-mail) [hidden email]
Sent: Fri, November 6, 2009 3:35:44 PM
Subject: Re: [OSSIM] MPI problem

Hi,

You should have three slaves and one master.  Each slave should be processing a different tile in the sequence.  When you time four versus one do you get any speed up?

Dave

________________________________________
From: j artieda [[hidden email]]
Sent: Friday, November 06, 2009 3:02 AM
To: Ossim-Developer (E-mail)
Subject: [OSSIM] MPI problem

Hi,

I am trying to run my own plugin using ossim-igen (.spec file) and MPI in a 4 core PC.

The plugin is correctly registered:

C:\>ossim_plugin
Plugin: C:\programas\superres2\libsuperres.dll
DESCRIPTION:
    Superresolution Plugin
CLASSES SUPPORTED
    ossimSuperResFilter


When I run "ossim-igen test.spec" everything works fine.

The problem comes when I try to use all 4 cores with MPI: "mpiexec -localonly 4 ossim-igen test.spec". I see Ossim sends all the image tiles to the 4 processors instead of sending each tile to a different processor. So the image is processed 4 times.

When I use other filter in the .spec file, for example a border filter, It seems to run ok but I don't know how to be sure of this.

Ossim is built against MPICH2 library without error.

Could you please give me any hints about how to solve this problem?

Thanks in advance for your help.

Jorge



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer

------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ www.ossim.org Ossim-developer mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/ossim-developer


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
j artieda

Re: MPI problem

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
we are using ossim-igen,
but we have developed our own plugin with a combiner.
so we are using ossim-igen with an spec file that includes our filter.
thanks
jorge
PD. If I use a sequencer in a custom app, can I launch it with MPI?



From: David Burken <[hidden email]>
To: j artieda <[hidden email]>
Cc: [hidden email]
Sent: Fri, November 6, 2009 8:23:51 PM
Subject: Re: [OSSIM] MPI problem

Oh sorry,

Are you using our apps, i.e. ossim-igen or ossim-orthoigen or is this a custom app?

Dave


On 11/06/2009 01:13 PM, j artieda wrote:
I don't have a sequencer on the chain.
should I put one?

my chain is reader(x4) --> combiner --> writer

Jorge



From: David Burken [hidden email]
To: [hidden email]
Sent: Fri, November 6, 2009 6:32:14 PM
Subject: Re: [OSSIM] MPI problem

Hi,

Your filter should be to the left of the sequencer.  That should fix you.

Dave


On 11/06/2009 12:21 PM, j artieda wrote:
Hi,
we don't get any speed up with our filter.
I have recompiled ossim with a printf on bandmerge filter and now i can confirm that works with this filter, each slave process a different tile
It seems that the problem is only with our filter, the same tile is processed 4 times
do we have to implement something specific on the filter?
our filter is a combiner with an input of 4 images, I don't know if this can give you any hint.
Any ideas?

thanks
Jorge


From: David R. Burken [hidden email]
To: j artieda [hidden email]; Ossim-Developer (E-mail) [hidden email]
Sent: Fri, November 6, 2009 3:35:44 PM
Subject: Re: [OSSIM] MPI problem

Hi,

You should have three slaves and one master.  Each slave should be processing a different tile in the sequence.  When you time four versus one do you get any speed up?

Dave

________________________________________
From: j artieda [[hidden email]]
Sent: Friday, November 06, 2009 3:02 AM
To: Ossim-Developer (E-mail)
Subject: [OSSIM] MPI problem

Hi,

I am trying to run my own plugin using ossim-igen (.spec file) and MPI in a 4 core PC.

The plugin is correctly registered:

C:\>ossim_plugin
Plugin: C:\programas\superres2\libsuperres.dll
DESCRIPTION:
    Superresolution Plugin
CLASSES SUPPORTED
    ossimSuperResFilter


When I run "ossim-igen test.spec" everything works fine.

The problem comes when I try to use all 4 cores with MPI: "mpiexec -localonly 4 ossim-igen test.spec". I see Ossim sends all the image tiles to the 4 processors instead of sending each tile to a different processor. So the image is processed 4 times.

When I use other filter in the .spec file, for example a border filter, It seems to run ok but I don't know how to be sure of this.

Ossim is built against MPICH2 library without error.

Could you please give me any hints about how to solve this problem?

Thanks in advance for your help.

Jorge



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer

------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ www.ossim.org Ossim-developer mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/ossim-developer



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer
David Burken

Re: MPI problem

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
As long as your filter is before the writer in the spec file you're OK. 

So things should look like:
(proc0)master-seq(pulling from slaves)->writer
(proc1)reader(x4) --> combiner -->slave-seq
(proc2)reader(x4) --> combiner -->slave-seq
(proc3)reader(x4) --> combiner -->slave-seq

On the same machine you might be better off increasing your cache size and not using mpi.  Don't know, you'd have to test.  It is hot on our list to get a "thread safe" getTile.  I think that would work better in your case.

Sorry that's not much help.

Take care,
Dave

On 11/07/2009 06:32 AM, j artieda wrote:
we are using ossim-igen,
but we have developed our own plugin with a combiner.
so we are using ossim-igen with an spec file that includes our filter.
thanks
jorge
PD. If I use a sequencer in a custom app, can I launch it with MPI?



From: David Burken [hidden email]
To: j artieda [hidden email]
Cc: [hidden email]
Sent: Fri, November 6, 2009 8:23:51 PM
Subject: Re: [OSSIM] MPI problem

Oh sorry,

Are you using our apps, i.e. ossim-igen or ossim-orthoigen or is this a custom app?

Dave


On 11/06/2009 01:13 PM, j artieda wrote:
I don't have a sequencer on the chain.
should I put one?

my chain is reader(x4) --> combiner --> writer

Jorge



From: David Burken [hidden email]
To: [hidden email]
Sent: Fri, November 6, 2009 6:32:14 PM
Subject: Re: [OSSIM] MPI problem

Hi,

Your filter should be to the left of the sequencer.  That should fix you.

Dave


On 11/06/2009 12:21 PM, j artieda wrote:
Hi,
we don't get any speed up with our filter.
I have recompiled ossim with a printf on bandmerge filter and now i can confirm that works with this filter, each slave process a different tile
It seems that the problem is only with our filter, the same tile is processed 4 times
do we have to implement something specific on the filter?
our filter is a combiner with an input of 4 images, I don't know if this can give you any hint.
Any ideas?

thanks
Jorge


From: David R. Burken [hidden email]
To: j artieda [hidden email]; Ossim-Developer (E-mail) [hidden email]
Sent: Fri, November 6, 2009 3:35:44 PM
Subject: Re: [OSSIM] MPI problem

Hi,

You should have three slaves and one master.  Each slave should be processing a different tile in the sequence.  When you time four versus one do you get any speed up?

Dave

________________________________________
From: j artieda [[hidden email]]
Sent: Friday, November 06, 2009 3:02 AM
To: Ossim-Developer (E-mail)
Subject: [OSSIM] MPI problem

Hi,

I am trying to run my own plugin using ossim-igen (.spec file) and MPI in a 4 core PC.

The plugin is correctly registered:

C:\>ossim_plugin
Plugin: C:\programas\superres2\libsuperres.dll
DESCRIPTION:
    Superresolution Plugin
CLASSES SUPPORTED
    ossimSuperResFilter


When I run "ossim-igen test.spec" everything works fine.

The problem comes when I try to use all 4 cores with MPI: "mpiexec -localonly 4 ossim-igen test.spec". I see Ossim sends all the image tiles to the 4 processors instead of sending each tile to a different processor. So the image is processed 4 times.

When I use other filter in the .spec file, for example a border filter, It seems to run ok but I don't know how to be sure of this.

Ossim is built against MPICH2 library without error.

Could you please give me any hints about how to solve this problem?

Thanks in advance for your help.

Jorge



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer

------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ www.ossim.org Ossim-developer mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/ossim-developer



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
www.ossim.org
Ossim-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/ossim-developer