[petsc-users] prevent linking to multithreaded BLAS?

Jed Brown jed at jedbrown.org
Thu Dec 8 12:12:24 CST 2022


Barry Smith <bsmith at petsc.dev> writes:

>> We could test at runtime whether child threads exist/are created when calling BLAS and deliver a warning. 
>
>   How does one test for this? Some standard Unix API for checking this?

I'm not sure, the ids of child threads are in /proc/$pid/task/ and (when opened by a process) /proc/self/task/. See man procfs for details.


More information about the petsc-users mailing list