diff options
Diffstat (limited to 'pkgs/development/python-modules/einops/default.nix')
-rw-r--r-- | pkgs/development/python-modules/einops/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/einops/default.nix b/pkgs/development/python-modules/einops/default.nix index a2de3a70971d5..18b8d671c98af 100644 --- a/pkgs/development/python-modules/einops/default.nix +++ b/pkgs/development/python-modules/einops/default.nix @@ -44,6 +44,11 @@ buildPythonPackage rec { checkPhase = '' export HOME=$TMPDIR + + # Prevent hangs on PyTorch-related tests, see + # https://discuss.pytorch.org/t/pytorch-cpu-hangs-on-nn-linear/17748/4 + export OMP_NUM_THREADS=1 + nosetests -v -w tests ''; |