Git Product home page Git Product logo

etl-gpu-blas's Introduction

etl-gpu-blas (egblas)

Mini BLAS-like library for GPU (complementary to CUBLAS).

The goal of this library is principally to be used as a complement to CUBLAS in the ETL library. The goal is to add functions that are not present in CUBLAS and make them available in the same format.

Disclaimer: All the functions are mostly expecting row-major input All functions with more than 2D are always row-major.

Features

So far, the library supports the following features:

  • Vector sum (egblas_Xsum)
  • Vector scalar addition (egblas_scalar_Xadd)
  • Vector scalar division (egblas_scalar_Xdiv)
  • Vector element-wise sqrt (egblas_Xsqrt)
  • Vector element-wise log (egblas_Xlog)
  • Vector element-wise exp (egblas_Xexp)
  • y = (alpha * x) * y (egblas_Xaxmy)
  • y = (alpha * x) / y (egblas_Xaxdy)

All functions are supporting single-precision floating points (s) and double precision floating points (d). When possible, the functions are also supporting single precision complex floating points (c) and double precision complex floating points (z).

Synchronization

By default, most of the kernels executed by this library are not synchronized. In the future, no kernel will be synchronized. If you want to synchronize after the function call, you can use cudaDeviceSynchronize() after the egblas function call. If you want all egblas functions to be synchronized, you can define EGBLAS_SYNCHRONIZE:

EXTRA_CXX_FLAGS=-DEGBLAS_SYNCHRONIZE make

In that case, every egblas function will be terminated by a cudaDeviceSynchronize() call. This can have a big performance impact, especially if working on small collections of data, since the kernel launch has a high overhead.

etl-gpu-blas's People

Contributors

wichtounet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

digideoni

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.