GithubHelp home page GithubHelp logo

0xhenriksson / num_lin_alg_cuda Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 25 KB

CUDA implementations of Numerical Linear Algebra concepts following the text by the same name written by Trefen and Bau

License: GNU General Public License v3.0

Cuda 100.00%

num_lin_alg_cuda's Introduction

Matrix Operations in CUDA

CUDA implementations of Numerical Linear Algebra concepts following the text by the same name written by Trefen and Bau

The goal of this project is to develop CUDA kernels for various matrix operations using CUDA math libraries. To start, I'll be implementing the concepts presented in the textbook I used in my Numerical Linear Algebra course at OSU. The text in question is Numerical Linear Algebra by Trefen & Bau. As mentioned, I won't be implementing everything from scratch, rather I'll be making use of NVIDIA's CDUA-X gpu accelerated libraries in an effort to familiarize myself with their capabilities. This is mostly a learning experiment for myself so don't expect anything crazy here, but I will be doing my best to optimize these kernels as best I can. I've

Libraries:

  • cuBLAS
  • CUTLASS (as needed, seems like cuBLAS is p damn good)
  • CUDA Math Library
  • cuRAND
  • cuSolver
  • cuSPARSE
  • cuTensor
  • cuDSS
  • THRUST

TODO:

  • Create a file for generating random matrices of different types ()

Kernel 1: Matrix times a Vector

Let $a_j$ denote the $j$-th column of $A$, an $m$-vector. Then we have $$b = Ax = \sum_{j=1}^{n} x_{j} a_{j}$$

Kernel #: Computing Matrix Inverse

A nonsingular or invertible matrix is a square matrix that has a multiplicative inverse. In other words, if A is an invertible matrix, then there exists another matrix B such that A ร— B = B ร— A = I, where I is the identity matrix. The inverse of A is typically denoted as A^(-1). For a matrix to be invertible, it must be square (i.e., have the same number of rows and columns) and have a non-zero determinant. The determinant is a scalar value that can be computed from the elements of a square matrix and provides information about the matrix's properties. If the determinant of a matrix is zero, the matrix is singular or non-invertible.

num_lin_alg_cuda's People

Contributors

0xhenriksson 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.