Giter VIP home page Giter VIP logo

tdr-inverse's Introduction

GPU Matrix Inverse

A collection of three programs developed to demonstrate the usefulness of Thread-Data Remapping for inverting a matrix.

Usage

cpu-inverse [input matrix] [inverse matrix]
inverse     [input matrix] [inverse matrix]
tdr-inverse [input matrix] [inverse matrix]

Matrices may either be in comma separated CSV format or Matrix Market Coordinate Format.

About

The code in developed in service of a masters research project. The related documents can be found here.

Contents

There are three programs included in this repository:

  • cpu-inverse: Inverts a matrix on-CPU.
  • inverse: Inverts a matrix on-GPU utilizing a standard CUDA approach.
  • tdr-inverse: Inverts a matrix on-GPU utilizing an asynchronous approach, see Harmonize.

In addition, a few subdirectories contain tools to aid in comparing each implementation:

  • matrix_gen/: Python scripts for generating matrices and generating inverses for matrices in Matrix Market format.
  • results/: Scripts for running benchmarks against all implementations and interpreting results.
  • tests/: Some basic matrices to confirm programs are working as intended.

Getting Started

This repository contains submodules, please checkout recursively:

git clone --recursive https://github.com/scrufulufugus/tdr-inverse.git

Dependencies

The only hard dependencies outside of submodules are CUDA and gnumake. Both should be installed though the correct repositories for your distribution of choice.

The matrix_gen/ and results/ subdirectories additionally require anaconda or a python environment with the dependencies detailed in their respective environment files. See the README in each subdirectory for more information.

Building

All three inverse programs can be built by running:

make

Running

Once built, the binaries can be found in bin/. Each program takes two arguments: an input matrix and its inverse. The program will then perform an inverse and return the error from the second argument.

./bin/tdr-inverse ./tests/3x3.csv ./tests/3x3_soln.csv

tdr-inverse's People

Contributors

braxtoncuneo avatar scrufulufugus avatar

Watchers

 avatar

Forkers

braxtoncuneo

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.