mirror of
https://github.com/luxfhe/torus.git
synced 2026-10-30 17:07:26 +00:00
The MLIR dialect, its conversion passes (TFHEToConcrete, ConcreteToCAPI, ConcreteToLLVM), the optimizer component, the compiler binary, the Rust crate and the program_info parameter file all still carried the upstream project's name. They now carry this one's. Two things deliberately keep the word, because in them it is not the name. mlir::OpTrait CRTP parameters mean "the derived type", so they are spelled Derived and OpTy — LLVM's other conventional spelling for the same idiom. concreteShape is a capnp field: renaming it would change the serialized protocol, and the prose describing it is ordinary English. This also repairs references the earlier partial rename left dangling: Security.cpp included concrete/curves.gen.h and the directory is torus/, torus-cpu.h included concrete-num_complex.h, the Torus dialect CMakeLists named ConcreteOps.td, and compiler/setup.py asked find_namespace_packages for a "concrete" package that no longer exists — so it built without the package it ships.
17 lines
627 B
Docker
17 lines
627 B
Docker
FROM python:3.10-slim
|
|
|
|
ARG version
|
|
|
|
# provide the `ld` binary required by the compiler
|
|
# hadolint ignore=DL3008
|
|
RUN apt-get update && apt-get install --no-install-recommends -y binutils graphviz \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
# Add a non-root user and group
|
|
RUN groupadd -g 10001 grp02 && \
|
|
useradd -u 10000 -g grp02 usr01 && \
|
|
mkdir -p /home/usr01 && chown -R usr01:grp02 /home/usr01
|
|
# Switch to the non-root user
|
|
USER usr01:grp02
|
|
RUN pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.luxfhe.com/cpu/ torus-python==${version}
|