fix(ci): Disable levelled tests {signed_,}mul_eint_Xbits for X >= 10 on MacOS

The tests `end_to_end_leveled.jit.loop_dagmulti.mul_eint_10bits.0` and
`end_to_end_leveled.jit.loop_dagmulti.signed_mul_eint_10bits.0`
reproducibly fail on the mac2.metal instance used by the CI due to
insufficient memory. This change disables all instances of these tests
with 10 or more bits of precision on MacOS.
This commit is contained in:
Andi Drebes
2023-11-07 14:11:55 +01:00
parent 0ffbc13746
commit 13a5dff4fb

View File

@@ -1,5 +1,6 @@
import argparse
import random
import platform
MIN_PRECISON = 1
from end_to_end_linalg_leveled_gen import P_ERROR
@@ -333,7 +334,10 @@ def main(args):
may_check_error_rate()
print("---")
# mul_eint
if p <= 15:
# Disable precision on MacOS, since the instance used for by the CI
# does not provide enough RAM for a precision higher than 8 bits
if (platform.system() == "Darwin" and p <= 8) or \
(platform.system() != "Darwin" and p <= 15):
def gen_random_encodable():
while True:
a = random.randint(1, max_value)
@@ -993,7 +997,8 @@ def main(args):
print("---")
# mul_eint
if 2 <= p <= 15:
if (platform.system() == "Darwin" and 2 <= p <= 8) or \
(platform.system() != "Darwin" and 2 <= p <= 15):
def gen_random_encodable(p):
while True:
a = random.randint(min_value, max_value)