diff --git a/.github/workflows/concrete_python_build_and_test.yml b/.github/workflows/concrete_python_build_and_test.yml index aac5eb098..6a7368020 100644 --- a/.github/workflows/concrete_python_build_and_test.yml +++ b/.github/workflows/concrete_python_build_and_test.yml @@ -382,4 +382,4 @@ jobs: - name: PyTest Source Code run: | cd frontends/concrete-python - make pytest \ No newline at end of file + make pytest diff --git a/.gitmodules b/.gitmodules index a2b54fcab..349371fd3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -5,4 +5,4 @@ [submodule "compiler/parameter-curves"] path = compilers/concrete-compiler/compiler/parameter-curves url = git@github.com:zama-ai/parameter-curves.git - shallow = true \ No newline at end of file + shallow = true diff --git a/.linelint.yml b/.linelint.yml index dbac77a86..555964de9 100644 --- a/.linelint.yml +++ b/.linelint.yml @@ -3,7 +3,7 @@ autofix: false # list of paths to ignore, uses gitignore syntaxes (executes before any rule) ignore: - - .git/ + - compilers/concrete-compiler/llvm-project rules: # checks if file ends in a newline character diff --git a/.rustfmt.toml b/.rustfmt.toml index d9c6de2e5..c1578aafb 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -1 +1 @@ -imports_granularity = "Module" \ No newline at end of file +imports_granularity = "Module" diff --git a/README.md b/README.md index 647d2b330..c906f5160 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,4 @@ The `concrete` project is a set of several modules which are high-level frontend - The `frontends` directory contains a `python` frontend. - The `compilers` directory contains the `concrete-compiler` and `concrete-optimizer` modules. The `concrete-compiler` is a compiler that synthetize a FHE computation dag expressed as a [MLIR](https://mlir.llvm.org/) dialect, compile to a set of artifacts, and provide tools to manipulate those artifacts at runtime. The `concrete-optimizer` is a specific module used by the compiler to find the best, secure and accurate set of crypto parameters for a given dag. - The `backends` directory contains implementations of cryptographic primitives on different computation unit, used by the `concrete-compiler` runtime. The `concrete-cpu` module provides CPU implementation, while `concrete-cuda` module provides GPU implementation using the CUDA platform. -- The `tools` directory contains side tools used by the rest of the project. \ No newline at end of file +- The `tools` directory contains side tools used by the rest of the project. diff --git a/backends/concrete-cuda/implementation/include/device.h b/backends/concrete-cuda/implementation/include/device.h index 706d44043..2594bdff3 100644 --- a/backends/concrete-cuda/implementation/include/device.h +++ b/backends/concrete-cuda/implementation/include/device.h @@ -60,4 +60,4 @@ inline void cuda_error(cudaError_t code, const char *file, int line, } } } -#endif \ No newline at end of file +#endif diff --git a/backends/concrete-cuda/implementation/src/complex/operations.cuh b/backends/concrete-cuda/implementation/src/complex/operations.cuh index 47a2665f7..a13a57736 100644 --- a/backends/concrete-cuda/implementation/src/complex/operations.cuh +++ b/backends/concrete-cuda/implementation/src/complex/operations.cuh @@ -84,4 +84,4 @@ __device__ inline double2 operator*(double a, double2 b) { return res; } -#endif \ No newline at end of file +#endif diff --git a/backends/concrete-cuda/implementation/src/crypto/torus.cuh b/backends/concrete-cuda/implementation/src/crypto/torus.cuh index a0ffd1180..eb88883fb 100644 --- a/backends/concrete-cuda/implementation/src/crypto/torus.cuh +++ b/backends/concrete-cuda/implementation/src/crypto/torus.cuh @@ -65,4 +65,4 @@ rescale_torus_element(uint64_t element, uint64_t &output, (__ull2double_rn(std::numeric_limits::max()) + 1.0) * __uint2double_rn(log_shift)); } -#endif // CNCRT_TORUS_H \ No newline at end of file +#endif // CNCRT_TORUS_H diff --git a/backends/concrete-cuda/implementation/src/polynomial/polynomial_twiddles.cuh b/backends/concrete-cuda/implementation/src/polynomial/polynomial_twiddles.cuh index 2d45f44c7..6a690a02a 100644 --- a/backends/concrete-cuda/implementation/src/polynomial/polynomial_twiddles.cuh +++ b/backends/concrete-cuda/implementation/src/polynomial/polynomial_twiddles.cuh @@ -1 +1 @@ -#include "polynomial.cuh" \ No newline at end of file +#include "polynomial.cuh" diff --git a/backends/concrete-cuda/implementation/src/types/int128.cuh b/backends/concrete-cuda/implementation/src/types/int128.cuh index 0cb268dd5..8b5d1cb58 100644 --- a/backends/concrete-cuda/implementation/src/types/int128.cuh +++ b/backends/concrete-cuda/implementation/src/types/int128.cuh @@ -73,4 +73,4 @@ template __device__ int128 make_int128_from_float(T v) { uint128_low64(result)); } -#endif \ No newline at end of file +#endif diff --git a/backends/concrete-cuda/implementation/src/utils/kernel_dimensions.cuh b/backends/concrete-cuda/implementation/src/utils/kernel_dimensions.cuh index 08e504a1a..6d2ccc951 100644 --- a/backends/concrete-cuda/implementation/src/utils/kernel_dimensions.cuh +++ b/backends/concrete-cuda/implementation/src/utils/kernel_dimensions.cuh @@ -18,4 +18,4 @@ inline void getNumBlocksAndThreads(const int n, const int maxBlockSize, blocks = (n + threads - 1) / threads; } -#endif // KERNEL_DIMENSIONS_H \ No newline at end of file +#endif // KERNEL_DIMENSIONS_H diff --git a/backends/concrete-cuda/implementation/src/utils/timer.cuh b/backends/concrete-cuda/implementation/src/utils/timer.cuh index f486e4ca6..469343041 100644 --- a/backends/concrete-cuda/implementation/src/utils/timer.cuh +++ b/backends/concrete-cuda/implementation/src/utils/timer.cuh @@ -27,4 +27,4 @@ public: } }; -#endif // CNCRT_TIMER_H \ No newline at end of file +#endif // CNCRT_TIMER_H diff --git a/compilers/concrete-optimizer/LICENSE b/compilers/concrete-optimizer/LICENSE index ea36b3919..2b134acef 100644 --- a/compilers/concrete-optimizer/LICENSE +++ b/compilers/concrete-optimizer/LICENSE @@ -23,4 +23,4 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *In addition to the rights carried by this license, ZAMA grants to the user a non-exclusive, free and non-commercial license on all patents filed in its name relating to the open-source code (the "Patents") for the sole purpose of evaluation, development, research, prototyping -and experimentation. \ No newline at end of file +and experimentation. diff --git a/compilers/concrete-optimizer/concrete-optimizer-cpp/.gitignore b/compilers/concrete-optimizer/concrete-optimizer-cpp/.gitignore index a1b91a125..0fac6a8e3 100644 --- a/compilers/concrete-optimizer/concrete-optimizer-cpp/.gitignore +++ b/compilers/concrete-optimizer/concrete-optimizer-cpp/.gitignore @@ -1 +1 @@ -tests/tests_exe \ No newline at end of file +tests/tests_exe diff --git a/frontends/concrete-python/.gitignore b/frontends/concrete-python/.gitignore index 11d46b704..594bed4a8 100644 --- a/frontends/concrete-python/.gitignore +++ b/frontends/concrete-python/.gitignore @@ -134,4 +134,4 @@ dmypy.json .pyre/ # Compilation Artifacts -.artifacts \ No newline at end of file +.artifacts