GithubHelp home page GithubHelp logo

jendralhxr / fft-mpi-openmp-cuda Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexhaoge/fft-mpi-openmp-cuda

0.0 0.0 0.0 341 KB

Parallel FFT for big integer multiplication. Written in three versions: MPI, OpenMP and CUDA(cufft).

License: MIT License

C++ 66.60% Shell 11.32% Cuda 22.08%

fft-mpi-openmp-cuda's Introduction

FFT-MPI-OpenMP-CUDA

Parallel FFT for big integer multiplication. Written in three versions: MPI, OpenMP and CUDA(cufft). It is a course assignment of MPI program design given by Prof. Xiang, 2019 Fall, SMS, Nankai Univ.
大整数乘法的并行FFT,MPI程序设计课程作业,包括MPI、OpenMP、cuFFT三个版本。

For more details, please see the report.

OpenMP version

parallel the doacross loop in serial version.

CUDA version

use cuFFT.

MPI version

For larger data (FFT bits >= 10^8) which cannot be stored in a single processor (and GPU), MPI with distributed memory is a better solution.

Say the total bits is 2^n and we have 2^p processors.
In the first p round butterfly operation, all the processors can work independently, and then each processor needs to share data with a particular processor since p+1 round.

In MPI_FFT.cpp, MPI_Sendrecv is used for data sharing of a pair of processors and MPI_Alltoall is used to swap the positions of all processors bitwisely.

Precision Issue

A flaw of these program is the precision of complex numbers in FFT cannot be guaranteed when 2^n is very large. In big integer multiplication where the final result will be rounded integers, the precision does not matter. But for other application of FFT, that may be a problem.

fft-mpi-openmp-cuda's People

Contributors

alexhaoge 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.