Skip to content

Wrong number of threads used if interactive pool exists. #634

Closed
@IanButterworth

Description

@IanButterworth

My fix in #496 introduced a bug where the number of usable threads is overreported by the size of the interactive pool.

NNlib only uses @spawn ... so uses the :default pool.

Using maxthreadid prevents breaking indexing that uses threadid but means too many threads are expected to be available.

Julia 1.12 is being trialed with an interactive thread by default, so it will always be +1 too high on 1.12.

To fix this, I think either:

  1. the threadid-indexing needs to be removed
  2. go back to nthreads(:default) and make sure threadid-based indexing offsets by the size of the interactive pool

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