Skip to content

API to introspect the scope of what thread pool limit set/get API actually does #211

Description

@itamarst

There are two things to introspect:

  1. Does setting the thread pool limit affect only the current thread, or the whole process?
  2. If it affects the whole process, is it setting a per-thread limit for the whole process (what MKL does) or is changing the size of a process-wide global thread pool (OpenBLAS with pthreads)? UPDATE: This part is now in API to introspect semantic meaning of setting a thread pool limit #214.

Use cases for introspection:

  • Ensuring documentation on individual controllers is correct.
  • A debugging tool for users, both of their current setup, and of potential bugs in threadpoolctl.
  • Maybe: Getting a sense of what the current FlexiBLAS backend is actually doing when you tell it to set a limit. Given different OpenBLAS behaviors depending on its threading backend, and given limits of FlexiBLAS introspection, this may need to be done at runtime...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions