lanl/bml

Name: bml

Owner: Los Alamos National Laboratory

Description: The Basic Matrix Library (bml)

Created: 2015-11-23 19:45:48.0

Updated: 2018-05-21 04:09:03.0

Pushed: 2018-05-24 16:03:50.0

Homepage: https://lanl.github.io/bml/

Size: 6803

Language: C

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status codecov.io Coverage Status Coverity Scan Build Status GitHub issues GitHub pull requests Waffle.io - Columns and their card count Codacy Badge

Activity

Throughput Graph

Introduction

This website is intended to provide some guidance on how to get and install the bml library. LA-UR number LA-UR-17-27373.

The basic matrix library (bml) is a collection of various matrix data formats (in dense and sparse) and their associated algorithms for basic matrix operations. Application programming interfaces (API) are available for both C and FORTRAN. The current status of this library allows us to use two different formats for representing matrix data: dense and ELLPACK.

Mailing List

We are running the following mailing list for discussions on usage and features of the bml library:

Supported Matrix Formats

The bml library supports the following matrix formats:

Binary Packages

We offer binary packages of the bml library in RPM format thanks to SUSE's OpenBuild Service and for Ubuntu in DEB format.

Build Instructions

The bml library is built with CMake. For convenience, we provide a shell script which goes through the necessary motions and builds the library, runs the tests, and installs it (in the install directory).

For a quick installation

We suggest to take a look at the example_build.sh script that sets the most important environmental variables needed by build.sh script. Change the Variables according to the compilers and architecture. The script can be run just by doing:

$ ./example_build.sh
For a more involved installation

By running:

$ ./build.sh install

the library will be built in the build directory and installed in the install directory. In case you change any sources and simply want to rebuild the library, you don't have to run build.sh again, but rather

$ make -C build

The compiled library can be installed by running

$ make -C build install

The install directory can be modified by running

$ CMAKE_INSTALL_PREFIX=/some/path ./build.sh install

(which assumes that you are using the bash shell).

To build with GNU compilers, OpenMP, and Intel MKL do the following.

$ CC=gcc FC=gfortran \
    BLAS_VENDOR=Intel CMAKE_BUILD_TYPE=Release \
    BML_OPENMP=yes CMAKE_INSTALL_PREFIX=/some/path \
    ./build.sh install

To build with MPI, OpenMP, and use Intel MKL do the following.

$ CC=mpicc FC=mpif90 \
    BLAS_VENDOR=Intel CMAKE_BUILD_TYPE=Release \
    BML_OPENMP=yes BML_MPI=yes CMAKE_INSTALL_PREFIX=/some/path \
    ./build.sh install
Prerequisites

In order to build the library, the following tools need to be installed:

If the build fails

In case the build fails for some reason, please contact the developers by opening an issue on GitHub (https://github.com/lanl/bml/issues) and attach the files

build/CMakeFiles/CMakeOutput.log
build/CMakeFiles/CMakeError.log

Developer Suggested Workflow

Our main development happens on the master branch and is continuously verified for correctness. If you would like to contribute your work to the bml project, please follow the instructions at the GitHub help page “About pull requests”. To summarize:

During the review process you might want to update your pull request. Please add commits or amend your existing commits as necessary. If you amend any commits you need to add the --force-with-lease option to the git push command. Please make sure that your pull request contains only one logical change (see “Structural split of change” for further details.

Coding Style

Please indent your C code using

$ indent -gnu -nut -i4 -bli0 -cli4 -ppi0 -cbi0 -npcs -bfda

You can use the script indent.sh to indent all C code.

Citing

If you find this library useful, we encourage you to cite us. Our project has a citable DOI:

DOI

with the following bibtex snipped:

@misc{bml,
  author       = {Nicolas Bock and
                  Susan Mniszewski and
                  Bálint Aradi and
                  Michael Wall and
                  Christian F. A. Negre and
                  Jamal Mohd-Yusof},
  title        = {qmmd/bml v1.2.3},
  month        = feb,
  year         = 2018,
  doi          = {10.5281/zenodo.841949},
  url          = {https://doi.org/10.5281/zenodo.841949}
}

Authors

The core developers of the bml in alphabetical order:

Contributors

License

The bml library is licensed under the BSD 3-clause license.

Copyright 2015. Los Alamos National Security, LLC. This software was produced under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National Laboratory (LANL), which is operated by Los Alamos National Security, LLC for the U.S. Department of Energy. The U.S. Government has rights to use, reproduce, and distribute this software. NEITHER THE GOVERNMENT NOR LOS ALAMOS NATIONAL SECURITY, LLC MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY LIABILITY FOR THE USE OF THIS SOFTWARE. If software is modified to produce derivative works, such modified software should be clearly marked, so as not to confuse it with the version available from LANL.

Additionally, redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY LOS ALAMOS NATIONAL SECURITY, LLC AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LOS ALAMOS NATIONAL SECURITY, LLC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

LA-CC

NOTICE OF OSS COPYRIGHT ASSERTION:

LANS has asserted copyright on the software package entitled Basic Matrix Library (bml), Version 0.x (C16006).

ABSTRACT

The basic matrix library (bml) is a collection of various matrix data formats (in dense and sparse) and their associated algorithms for basic matrix operations.

This code is unclassified and has been assigned LA-CC-15-093. Los Alamos National Laboratory?s Export Control Team made an in-house determination that this software is controlled under Department of Commerce regulations and the Export Control Classification Number (ECCN) EAR99. The export control review is attached.

The developers intend to distribute this software package under the OSI Certified BSD 3-Clause License (http://www.opensource.org/licenses/BSD-3-Clause)

This code was developed using funding from:

Larry Kwei, LAFO Program Manager, has granted his concurrence to asserting copyright and then distributing the Basic Matrix Library (bml), Version 0.x code using an open source software license. See attached memo.

LANS acknowledges that it will comply with the DOE OSS policy as follows:

  1. submit form DOE F 241.4 to the Energy Science and Technology Software Center (ESTSC),
  2. provide the unique URL on the form for ESTSC to distribute, and
  3. maintain an OSS Record available for inspection by DOE.

Following is a table briefly summarizes information for this software package:

| CODE NAME | Basic Matrix Library (bml), Version 0.x (C16006) | | ——————————————- | ———————————————— | | Classification Review Number | LA-CC-15-093 | | Export Control Classification Number (ECCN) | EAR99 | | B&R Code | YN0100000 |


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.