Skip to content

Alan-Leo-Wong/ParallelNTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ParallelNTT

An accelerated NTT to compute the product of two polynomials, based CUDA and multi-threaded CPU.

Usage

The project uses CUDA by default, additional options are as follows:

  • -normal: Force single-threaded NTT on the CPU.
  • -cpu: Force multi-threaded NTT on the CPU instead of GPU.
  • -cuda: Force execute NTT on the GPU.
  • -test: Enable python tests, which are enabled by default when BUILD TYPE is Debug.
  • -ntest: Disenable python tests, which are disenabled by default when BUILD TYPE is Release.
  • -n <number>: Degree(log) of the first polynomial.
  • -m <number>: Degree(log) of the second polynomial.
  • -iter <number>: The number of iterations to run the program.

Dependencies

The project has the following build dependencies:

Build

git clone https://github.com/KMushaL/ParallelNTT.git
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES="your_cuda_compute_capability"
make -j number_of_cores

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published