Sign inSign up

suen0/tensorfhe

By suen0

•Updated over 2 years ago

NTT for TensorFHE

Image
Security
0

290

suen0/tensorfhe repository overview

This is the implementation of the NTT in TensorFHE: Achieving Practical Computation on Encrypted Data Using GPGPU.

⁠Preliminary for Docker

  • Docker = 26.0.2
  • NVIDIA Container Toolkit = 1.15.0

⁠Run Docker

First pull this image docker pull suen0/tensorfhe:v0.1,
and then run docker run --rm --runtime=nvidia --gpus all -itd --name YOUR_CON_NAME IMAGE_ID bash
to build a container.

⁠Env for TensorFHE

Run conda activate TensorFHE to enter the environment.

⁠Examples

## There are six params for tensorNTT class.
## input is data for ntt.
## length is length for input.
## level is the level of the current ciphertext.
## isGPU indicates whether to enable GPU, the default is True.
## isTCU indicates whether to enable tensor cores on GPU, the default is True.
ntt = tensorNTT(input, length, batch, level, isGPU, isTCU)

⁠Eval

## isStats indicates whether to count the throughput of the current operation, 
## the default is False.
ntt.ntt(isStats)

Tag summary

Content type

Image

Digest

sha256:f666d8ee4…

Size

14.3 GB

Last updated

over 2 years ago

docker pull suen0/tensorfhe:v0.2