Opened 4 years ago

Last modified 4 years ago

#23892 closed defect

Run doctests with OMP_NUM_THREADS=2 — at Version 5

Reported by: jdemeyer Owned by:
Priority: blocker Milestone: sage-8.1
Component: packages: optional Keywords:
Cc: mderickx Merged in:
Authors: Jeroen Demeyer Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by jdemeyer)

The normaliz package uses OMP for threading, which can create many threads. In doctests, this is bad for two reasons:

  1. Doctests should not use an unexpectedly large number of system resources.
  1. When there are too many threads, the virtual memory limit from #23748 will be hit.

There is a solution: set the environment variable OMP_NUM_THREADS=2 while doctesting.

Change History (5)

comment:1 Changed 4 years ago by mderickx

Again??? :(

comment:2 Changed 4 years ago by mderickx

  • Cc mderickx added

comment:3 Changed 4 years ago by jdemeyer

  • Description modified (diff)

comment:4 Changed 4 years ago by jdemeyer

  • Description modified (diff)

comment:5 Changed 4 years ago by jdemeyer

  • Authors set to Jeroen Demeyer
  • Description modified (diff)
  • Summary changed from Various doctest failures if pynormaliz is installed to Run doctests with OMP_NUM_THREADS=2
Note: See TracTickets for help on using tickets.