mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
chore: rename compiler to concrete-compiler
zamalang => concretelang zamacompiler => concretecompiler
This commit is contained in:
@@ -3,7 +3,7 @@ import tempfile
|
||||
|
||||
import pytest
|
||||
import numpy as np
|
||||
from zamalang import CompilerEngine, library
|
||||
from concretelang import CompilerEngine, library
|
||||
|
||||
KEY_SET_CACHE_PATH = os.path.join(tempfile.gettempdir(), 'KeySetCache')
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ from test_compiler_file_output.utils import assert_exists, content, remove, run
|
||||
TEST_PATH = os.path.dirname(__file__)
|
||||
|
||||
CCOMPILER = 'cc'
|
||||
ZAMACOMPILER = 'zamacompiler'
|
||||
CONCRETECOMPILER = 'concretecompiler'
|
||||
|
||||
SOURCE_1 = f'{TEST_PATH}/return_13.ir'
|
||||
SOURCE_2 = f'{TEST_PATH}/return_0.ir'
|
||||
@@ -25,7 +25,7 @@ assert_exists(SOURCE_1, SOURCE_2, SOURCE_C_1, SOURCE_C_2)
|
||||
def test_roundtrip():
|
||||
remove(OUTPUT)
|
||||
|
||||
run(ZAMACOMPILER, SOURCE_1, '--action=roundtrip', '-o', OUTPUT)
|
||||
run(CONCRETECOMPILER, SOURCE_1, '--action=roundtrip', '-o', OUTPUT)
|
||||
|
||||
assert_exists(OUTPUT)
|
||||
assert content(SOURCE_1) == content(OUTPUT)
|
||||
@@ -36,7 +36,7 @@ def test_roundtrip():
|
||||
def test_roundtrip_many():
|
||||
remove(OUTPUT)
|
||||
|
||||
run(ZAMACOMPILER, SOURCE_1, SOURCE_2, '--action=roundtrip', '-o', OUTPUT)
|
||||
run(CONCRETECOMPILER, SOURCE_1, SOURCE_2, '--action=roundtrip', '-o', OUTPUT)
|
||||
|
||||
assert_exists(OUTPUT)
|
||||
assert f"{content(SOURCE_1)}{content(SOURCE_2)}" == content(OUTPUT)
|
||||
@@ -47,7 +47,7 @@ def test_roundtrip_many():
|
||||
def test_compile_library():
|
||||
remove(LIBS)
|
||||
|
||||
run(ZAMACOMPILER, SOURCE_1, '--action=compile', '-o', LIB)
|
||||
run(CONCRETECOMPILER, SOURCE_1, '--action=compile', '-o', LIB)
|
||||
|
||||
assert_exists(LIBS)
|
||||
|
||||
@@ -69,7 +69,7 @@ def test_compile_library():
|
||||
def test_compile_many_library():
|
||||
remove(LIBS)
|
||||
|
||||
run(ZAMACOMPILER, SOURCE_1, SOURCE_2, '--action=compile', '-o', LIB)
|
||||
run(CONCRETECOMPILER, SOURCE_1, SOURCE_2, '--action=compile', '-o', LIB)
|
||||
|
||||
assert_exists(LIBS)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import pytest
|
||||
from mlir.ir import Context, RankedTensorType, Location
|
||||
from zamalang import register_dialects
|
||||
from zamalang.dialects import hlfhe
|
||||
from concretelang import register_dialects
|
||||
from concretelang.dialects import hlfhe
|
||||
|
||||
|
||||
@pytest.mark.parametrize("width", list(range(1, 8)))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import pytest
|
||||
from zamalang import compiler
|
||||
from concretelang import compiler
|
||||
|
||||
|
||||
VALID_INPUTS = [
|
||||
|
||||
Reference in New Issue
Block a user