Tim,
> thanks for the feedback!
> I solved the issue by increasing the stack size:
> /-Ihpx.stacks.small_size=0x20000
> /
> So it was not TBB-related.
> Is it possible to increase the stack size programmatically?
This should have the same effect:
int main(int argc, char* argv[])
{
std::vector<std::string> const cfg =
{
"hpx.stacks.small_size=0x20000"
};
return hpx::init(argc, argv, cfg);
}
HTH
Regards Hartmut
---------------
http://boost-spirit.com
http://stellar.cct.lsu.edu
> Best,
> Tim
>
> On 08/31/2016 06:06 PM, Hartmut Kaiser wrote:
> >> I'm trying to use an existing library based on Intel TBB in my HPX
> >> application, however when calling the library within a (single) task
> the
> >> application segfaults. Doing the same call in the HPX main() function
> >> does work.
> >>
> >> Is this expected? Is there some technical conflict between HPX and TBB?
> > Well, segfaults are never an expected thing ;)
> >
> > Generally, using TBB together with HPX is probably not a good idea
> unless you make sure to control the core-affinities used by HPX and by
> TBB. If you don't do that then both libraries will fight over the cores.
> This will cause for your application to expose horrible performance.
> >
> > What TBB facilities do you rely on?
> >
> > For the segfault - it's difficult to tell what's going on without seeing
> some code. Could you provide us with a minimal self-contained reproducing
> example?
> >
> > Regards Hartmut
> > ---------------
> > http://boost-spirit.com
> > http://stellar.cct.lsu.edu
> >
> >
> > _______________________________________________
> > hpx-users mailing list
> > [email protected]
> > https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
>
> <html>
> <head>
> <meta content="text/html; charset=windows-1252"
> http-equiv="Content-Type">
> </head>
> <body bgcolor="#FFFFFF" text="#000000">
> <p>Hi,</p>
> <p>thanks for the feedback! <br>
> </p>
> <p>I solved the issue by increasing the stack size: <i>-
> Ihpx.stacks.small_size=0x20000
> <br>
> </i></p>
> <p>So it was not TBB-related.<br>
> </p>
> <p>Is it possible to increase the stack size programmatically? <br>
> </p>
> <p>Best,</p>
> <p>Tim</p>
> <p><br>
> </p>
> <p><br>
> </p>
> <div class="moz-cite-prefix">On 08/31/2016 06:06 PM, Hartmut Kaiser
> wrote:<br>
> </div>
> <blockquote cite="mid:[email protected]"
> type="cite">
> <pre wrap="">
> </pre>
> <blockquote type="cite">
> <pre wrap="">I'm trying to use an existing library based on Intel
> TBB in my HPX
> application, however when calling the library within a (single) task the
> application segfaults. Doing the same call in the HPX main() function
> does work.
> Is this expected? Is there some technical conflict between HPX and TBB?
> </pre>
> </blockquote>
> <pre wrap="">
> Well, segfaults are never an expected thing ;)
> Generally, using TBB together with HPX is probably not a good idea unless
> you make sure to control the core-affinities used by HPX and by TBB. If
> you don't do that then both libraries will fight over the cores. This will
> cause for your application to expose horrible performance.
> What TBB facilities do you rely on?
> For the segfault - it's difficult to tell what's going on without seeing
> some code. Could you provide us with a minimal self-contained reproducing
> example?
> Regards Hartmut
> ---------------
> <a class="moz-txt-link-freetext" href="http://boost-
> spirit.com">http://boost-spirit.com</a>
> <a class="moz-txt-link-freetext"
> href="http://stellar.cct.lsu.edu">http://stellar.cct.lsu.edu</a>
>
> _______________________________________________
> hpx-users mailing list
> <a class="moz-txt-link-abbreviated" href="mailto:hpx-
> [email protected]">[email protected]</a>
> <a class="moz-txt-link-freetext"
> href="https://mail.cct.lsu.edu/mailman/listinfo/hpx-
> users">https://mail.cct.lsu.edu/mailman/listinfo/hpx-users</a>
> </pre>
> </blockquote>
> <br>
> </body>
> </html>
_______________________________________________
hpx-users mailing list
[email protected]
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users