Skip to content

problems when running with single processor #19

Description

@seanmacavaney

From #18 -- it seems there are several issues when running the pipeline when only a single processor is available.

First, safe_thread_count returns 0, which causes problems downstream. https://github.com/Georgetown-IR-Lab/OpenNIR/blob/master/onir/util/concurrency.py#L11

Then, places that use util.blocking_tee and util.CtxtThread may have some race conditions.

Ideally, a solution that falls back when only one processor is detected. If not, a configuration switch somewhere could help.

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