MATRIX: Fix test for very large matrix.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 21 Oct 2024 17:49:00 +0000 (10:49 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 21 Oct 2024 17:49:00 +0000 (10:49 -0700)
commit395ff81461c2f58e9e700ee777f28ffd16241bf1
tree6ec625480e04444aaa13472dcff8a50a01db1ad0
parent69359d97371b41c19f1ff1b8f1fef2e215cc4f24
MATRIX: Fix test for very large matrix.

I kept getting processes killed as out-of-memory for the "MATRIX - very
large matrices" test.  Somehow, GSL was really trying to allocate a
matrix with 230,000,000,000 elements, which would require 1.84 PB of
memory, which I don't have.

This makes the matrix allocator report out-of-memory if a sequence would
have more than about 2 billion elements, fixing my OOM killer problem.
src/language/commands/matrix.c