scverse / scverse/fast-array-utils

fork() called from a process already using GNU OpenMP, this is unsafe.

Open
#179 23 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
15
Forks
5
Avg merge
10h 33m
Merged PRs (30d)
9

Description

I got this issue when using fast_array_utils>=1.4.1 and torch DataLoaders with multiple workers. It seems the new fast_array_utils njit decorator is conflicting with torch.

EDIT: see below an MRE.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the MRE referenced in the issue and reproduce the failure using fast_array_utils>=1.4.1 with a PyTorch DataLoader configured for multiple workers. Read the discussion for the njit decorator and fork interaction; done means the reported unsafe GNU OpenMP fork error is resolved or its triggering conditions are clearly addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.