What do you mean by "cannot do step debug"? Are you compiling in debug mode?

On Thu, Aug 5, 2021, 18:34 Michael Li <lianxi...@gmail.com> wrote:

> I put *MultithreadInfo::set_thread_limit(**1**)* in *main* function, but
> still cannot do step debug in the function
>
> *assemble_neumann_contribution_one_cell. *Am I doing something wrong?
>
>
>
>
>
>
>
> *From: *Timo Heister <heis...@clemson.edu>
> *Sent: *Thursday, August 5, 2021 1:19 PM
> *To: *dealii@googlegroups.com
> *Subject: *Re: [deal.II] Debug multithread code
>
>
>
> Take a look at set_thread_limit:
>
> https://www.dealii.org/current/doxygen/deal.II/classMultithreadInfo.html
>
> As you can see, you can also control it using an environment variable, so
> you don't have to recompile.
>
>
>
> On Thu, Aug 5, 2021, 13:36 Michael Lee <lianxi...@gmail.com> wrote:
>
> Hi,
>
>
>
> I find it's difficult to debug multithread code on a multiple-core
> computer. Sometimes it does not step into a function (I'm using vscode +
> wsl). Does deal.II use all the cores available? For the sake of debug, how
> can I limit the cores used? Is there a way to debug the code just like
> series one?
>
>
>
> Regards,
>
> Michael
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/b123aaf2-8d32-4b43-b818-8d2ae9ffac77n%40googlegroups.com
> <https://groups.google.com/d/msgid/dealii/b123aaf2-8d32-4b43-b818-8d2ae9ffac77n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/CAMRj59HvBtTTF1D3SnGHgbnub4nNN_6TC0aYPqHJRK3NYoqdVA%40mail.gmail.com
> <https://groups.google.com/d/msgid/dealii/CAMRj59HvBtTTF1D3SnGHgbnub4nNN_6TC0aYPqHJRK3NYoqdVA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/B6A6B8CA-9E60-4912-BC84-5706D0E86574%40hxcore.ol
> <https://groups.google.com/d/msgid/dealii/B6A6B8CA-9E60-4912-BC84-5706D0E86574%40hxcore.ol?utm_medium=email&utm_source=footer>
> .
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAMRj59G5y%3DjGV%3DnOEUrnDtMNy6F9RoU%3D5c4RGs7HJS%3DcjQDLTA%40mail.gmail.com.

Reply via email to