Opened 5 years ago

Last modified 5 years ago

#23892 closed defect

Run doctests with OMP_NUM_THREADS=2 — at Version 5

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

Status badges

Description (last modified by Jeroen Demeyer)

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 5 years ago by Maarten Derickx

Again??? :(

comment:2 Changed 5 years ago by Maarten Derickx

Cc: Maarten Derickx added

comment:3 Changed 5 years ago by Jeroen Demeyer

Description: modified (diff)

comment:4 Changed 5 years ago by Jeroen Demeyer

Description: modified (diff)

comment:5 Changed 5 years ago by Jeroen Demeyer

Authors: Jeroen Demeyer
Description: modified (diff)
Summary: Various doctest failures if pynormaliz is installedRun doctests with OMP_NUM_THREADS=2
Note: See TracTickets for help on using tickets.