Exclude memory check for Apple Silicon

Not yet working as getAvailableMemorySize delivers wrong values.
This commit is contained in:
Holger Vogt 2026-03-30 16:00:32 +02:00
parent ebdaf58ec7
commit 96404e9939
1 changed files with 2 additions and 0 deletions

View File

@ -556,6 +556,7 @@ OUTpD_memory(runDesc *run, IFvalue *refValue, IFvalue *valuePtr)
{
int i, n = run->numData;
#ifndef __APPLE__
if (!cp_getvar("no_mem_check", CP_BOOL, NULL, 0)) {
/* Estimate the required memory */
size_t memrequ = (size_t)n * vlength2delta(0) * sizeof(double);
@ -569,6 +570,7 @@ OUTpD_memory(runDesc *run, IFvalue *refValue, IFvalue *valuePtr)
controlled_exit(1);
}
}
#endif
for (i = 0; i < n; i++) {