From ebea2e3cae98af4bf9ab737b166a54363caf08fb Mon Sep 17 00:00:00 2001 From: Bourgerie Quentin Date: Fri, 9 Feb 2024 16:44:17 +0100 Subject: [PATCH] chore(ci): Reduce number of compiler test for macos --- compilers/concrete-compiler/compiler/Makefile | 7 ++++++- .../tests/end_to_end_fixture/end_to_end_leveled_gen.py | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/compilers/concrete-compiler/compiler/Makefile b/compilers/concrete-compiler/compiler/Makefile index 42f55c75b..87e9b0e36 100644 --- a/compilers/concrete-compiler/compiler/Makefile +++ b/compilers/concrete-compiler/compiler/Makefile @@ -40,6 +40,7 @@ ifeq ($(shell uname), Linux) OS=linux else ifeq ($(shell uname), Darwin) OS=darwin + MINIMAL_TESTS_BOOL=ON endif # Set rust flags to activate target cpu features @@ -291,7 +292,11 @@ generate-cpu-tests: \ $(FIXTURE_CPU_DIR)/end_to_end_linalg_enc_enc_matmul_dot.yaml SECURITY_TO_TEST=128 -OPTIMIZATION_STRATEGY_TO_TEST=dag-mono dag-multi +ifeq ($(MINIMAL_TESTS),ON) + OPTIMIZATION_STRATEGY_TO_TEST=dag-multi +else + OPTIMIZATION_STRATEGY_TO_TEST=dag-mono dag-multi +endif PARALLEL_END_2_END_TESTS= end_to_end_jit_test end_to_end_jit_lambda run-end-to-end-tests: $(GTEST_PARALLEL_PY) build-end-to-end-tests generate-cpu-tests $(foreach TEST,$(PARALLEL_END_2_END_TESTS), \ diff --git a/compilers/concrete-compiler/compiler/tests/end_to_end_fixture/end_to_end_leveled_gen.py b/compilers/concrete-compiler/compiler/tests/end_to_end_fixture/end_to_end_leveled_gen.py index 84b1c896b..07bf1aa15 100644 --- a/compilers/concrete-compiler/compiler/tests/end_to_end_fixture/end_to_end_leveled_gen.py +++ b/compilers/concrete-compiler/compiler/tests/end_to_end_fixture/end_to_end_leveled_gen.py @@ -31,7 +31,10 @@ def main(args): print("# /!\ THIS FILE HAS BEEN GENERATED THANKS THE end_to_end_levelled_gen.py scripts") print("# This reference file aims to test all levelled ops with all bitwidth than we known that the compiler/optimizer support.\n\n") # unsigned - for p in range(MIN_PRECISON, MAX_PRECISION+1): + step = 1 + if args.minimal: + step = 6 + for p in range(MIN_PRECISON, MAX_PRECISION+1, step): if p != 1: print("---") def may_check_error_rate():