Git Product home page Git Product logo

cucheb's Introduction

Cucheb - CUDA accelerated large sparse eigensolvers

Jared L. Aurentz, Vassilis Kalantzis and Yousef Saad, 2017

GitHub

This README file is written in mark down. For the best experience please view this file, along with the rest of the Cucheb library on GitHub.

Introduction

Cucheb is a collection of C++ subroutines for accurately and efficiently solving large sparse matrix eigenvalue problems using NVIDIA brand GPUs. These methods are well suited for computing eigenvalues and eigenvectors of matrices arising in quantum physics, structural engineering and network analysis.

Current features

cucheb-v0.1.2 has the following features:

  • double precision eigensolvers for real symmetric matrices

Dependencies

Cucheb depends on the NVIDIA CUDA Toolkit (v7.0 or greater).

User-level programs

There are many files in the Cucheb library but only a few will be necessary for most users. The first set of files are the objects used to store computed quantities, such as eigenvalues and eigenvectors. Below we give a brief description of each file and a link for further information:

The next set of files are programs used to initialize and delete objects and compute eigenvalues and eigenvectors:

Installation

Cucheb is built on top of the NVIDIA CUDA Toolkit and a small number of C++ standard libraries. You must have the toolkit installed before the library can be built.

Linux

To install on a Linux machine simply move into the Cucheb root directory, edit the file make.inc to suit your system and type:

make install

This creates a shared object library libcucheb.so.version and copies it into the user specified installation directory. The installation does not create any symbolic links or export any library paths. To add cucheb to the library path type:

export LD_LIBRARY_PATH=/path/to/cucheb/lib:$LD_LIBRARY_PATH

Tests

You can find several examples for using Cucheb in the tests subdirectory. Once Cucheb has been installed the tests can be compiled by typing:

make tests

The test matrices are included as part of Cucheb but more can be found at the Sparse Matrix Collection.

First example

When using Cucheb for the first time we suggest that you start with testparsec.cu. This tests computes a subset of the ground states of a molecular Hamiltonian, which we consider a standard problem for Cucheb. To execute testparsec.cu once compiled type:

./tests/parsec/testparsec

CAUTION: When working on a cluster the relative path to the matrices in the test source files may not be exported properly. To fix this modify the specific test source file to use the absolute path to the matrix.

Removing Cucheb

If the source directory has not been removed simply move into the Cucheb root directory and type:

make uninstall

If the source directory has been removed the install directory will have to be removed explicitly by the user.

Questions and issues

If you have any questions or encounter any issues while using Cucheb please file an issue on the Cucheb issues page of Github.

cucheb's People

Contributors

jaurentz avatar

Stargazers

 avatar Ji Wang avatar Shaden Smith avatar

Watchers

Shaden Smith avatar  avatar Johnny Minor  avatar  avatar

cucheb's Issues

fix makefiles

I created a new branch called fix-makefiles. It drastically simplifies the makefile structure and simplifies the build structure. To build cucheb and the tests configure the make.inc file and type:

make install

then

make tests

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.