tofu icon indicating copy to clipboard operation
tofu copied to clipboard

MemoryError due to large matrices allocation in test suite on Windows conda-forge CI

Open flothesof opened this issue 2 years ago • 1 comments

During the latest conda-forge release (1.5.1) some tests failed randomly but only under Windows. The "random part" seems to be due to memory errors. The relevant PR is here: https://github.com/conda-forge/tofu-feedstock/pull/22.

These errors all seem to be in tofu\tests\tests06_mesh\test_01_checks.py (see log).

A sample error is:

numpy.core._exceptions._ArrayMemoryError: Unable to allocate 199. MiB for an array with shape (26118378,) and data type float64

A possible solution would be to scale down the size of the problem that gets tested.

The full log is attached. log_pr_tofu_azure_build.txt

flothesof avatar Apr 06 '22 14:04 flothesof

Thanks @flothesof for reporting this issue ! :-)

Didou09 avatar Apr 07 '22 08:04 Didou09