GithubHelp home page GithubHelp logo

loretanr / ntt-asl Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 149.86 MB

ASL project: implementation and optimization of the NTT

CMake 1.16% C 33.63% C++ 35.71% Python 8.11% Shell 0.87% HTML 1.71% Makefile 0.08% Roff 1.35% Fortran 16.70% Assembly 0.69%
ntt asl eth

ntt-asl's Introduction

NTT-ASL

This project was part of the course Advanced Systems Lab (Spring 2020) in the computer science master at ETH Zurich.

Task

Select a numerical problem and create a correct (tested) implementation in C/C++. Determine the arithmetic cost, measure the runtime and performance. Profile the implementation to find the parts in which most the runtime spent. Focusing on these, apply various optimization techniques from this class. Write a paper about the work and give a presentation.

NTT

The Number Theoretic Transform (NTT) is a specialization of the DFT. But it's not as well known and optimized, therefore we basically started from scratch.

This repo includes

  • various NTT implementations (naive, iterative and recursive radix-2, recursive radix-4)
  • optimized versions that include various scalar tricks and use of Intel vector intrinsics
  • validation infrastructure and script to generate large random test in/output vectors
  • benchmark infrastructure to measure performance
  • stuff for performance plotting and roofline analysis
  • final paper and presentation

ntt-asl's People

Contributors

loretanr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.