GithubHelp home page GithubHelp logo

panosantoniadis / cuda-exercises-ntua Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 0.0 2.91 MB

Lab exercise of Parallel Processing course in NTUA regarding CUDA programming

License: MIT License

Makefile 13.43% C 33.94% Cuda 36.55% Shell 16.08%
cuda-programming matrix-multiplication tiling gpu-computing cublas

cuda-exercises-ntua's Introduction

Parallel Programming for GPUs - Matrix Multiplication

Dense Matrix Multiplication (DMM) is one of the core components in many scientific computations. In this repository, we implement the DMM algorithm for GPUs in CUDA using 4 algorithms, increasing each time the total performance.

Algorithms

  • Naive: Simple implementation where each thread just computes one element from the output matrix.
  • Coalesced memory acceses of A: Load tiles of the input matrix A in the shared memory.
  • Reduced memory accesses: Load tiles of the input matrices A and B in the shared memory.
  • Using cuBLAS library

Brief results

All experiments were performed in a NVIDIA Tesla K40c (kepler architecture and compute capability=3.5)

  • Total Performance in 2048ร—2048 matrices

  • Choosing the optimal thread block size

  • Performance in different problem sizes

Project Structure

  • cuda: Source code for DMM.
  • common: Helper source code.
  • make: Scripts for compiling the source code.
  • plots: Plots in order to analyze our results.
  • results: Performance of different scenarios.
  • report: Final report in Greek.

Contributors:

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.