Coder Social home page Coder Social logo

kabicm / candmc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from solomonik/candmc

0.0 1.0 0.0 1.71 MB

Communication Avoiding Numerical Dense Matrix Computations

License: BSD 2-Clause "Simplified" License

Makefile 3.03% C++ 90.52% C 5.80% Shell 0.07% Python 0.59%

candmc's Introduction

CANDMC

##Communication Avoiding Numerical Dense Matrix Computations

Purpose:

This repository contains studies for algorithms to perform matrix multiplication and dense matrix factorizations, currently: LU, QR, and the symmetric eigensolve.

Requirements:

Some version of BLAS and LAPACK required for any build. LAPACK version 3.40 or higher required to build QR codes.

Build Instructions:

Running ./configure will generate a config.mk file with build parameters and a Makefile. See the configure file for build options. Profiling may be activated with flag -DPROFILE (add to DEFS in config.mk). After running configure, running 'make' will build the library and place it into lib/libCANDMC.a. Specific contents may be built individually,

  • library of all routines 'CANDMC'
  • library of all shared routines required for use of any individual algorithmic library component 'CANShared'
  • library for matrix multiplication algorithms 'CANMM'
  • library for LU factorization algorithms 'CANLU'
  • library for QR factorization algorithms 'CANQR'
  • library for symmetric eigensolve algorithms 'CANSE'
  • all unit tests 'test', executables appear in bin/tests/
  • all benchmarks 'bench', executables appear in bin/benchmarks/

Installation instructions:

# load all the modules
source ./scripts/piz_daint_cpu.sh

# configure the build
./configure --blas="-L${MKLROOT}/lib/intel64 -lmkl_scalapack_lp64 -Wl,--no-as-needed -lmkl_cdft_core -lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core -lmkl_blacs_intelmpi_lp64 -lgomp -lpthread -lm -ldl -m64 -I\"${MKLROOT}/include\"" --lapack="-L${MKLROOT}/lib/intel64 -lmkl_scalapack_lp64 -Wl,--no-as-needed -lmkl_cdft_core -lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core -lmkl_blacs_intelmpi_lp64 -lgomp -lpthread -lm -ldl -m64 -I\"${MKLROOT}/include\"" --scalapack="-L${MKLROOT}/lib/intel64 -lmkl_scalapack_lp64 -Wl,--no-as-needed -lmkl_cdft_core -lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core -lmkl_blacs_intelmpi_lp64 -lgomp -lpthread -lm -ldl -m64 -I\"${MKLROOT}/include\""

# build from the root folder
make -j

# go inside the bench folder
cd ./bench

# build all the algorithms
make -j

# go back to the root directory
cd ..

# run the algorithm:
# a) for tournament pivoting:
srun -N 32 -n 64 ./bin/benchmarks/lu_25d_tp_bench -n 16384 -b_sm 32 -b_lrg 128

# b) for partial pivoting:
srun -N 32 -n 64 ./bin/benchmarks/lu_25d_pp_bench -n 16384 -b_sm 32 -b_lrg 128

Creating Piz Daint Scripts

You can specify parameters in scripts/params.ini. All combinations between the input parameters will be generated. Go to the root folder and create scripts with the following command python3 scripts/generate_launch_files.py Per default, it will only create commands for tournament pivoting. You can change this with either --pivot part for partial pivoting or --pivot both for both pivoting strategies. You can specify the output folder for the benchmarks with --dir <path_to_folder>. It will default to ./benchmarks.

After having created the bash scripts run the following to launch the jobs on Daint: python3 scripts/launch_on_daint.py

Accrediation:

Code is available under a two-clause BSD license.

Repository created and maintained by Edgar Solomonik (ETH Zurich). Please contact [email protected] with any questions or inquiries.

Thanks to the following developers, snippets of whose code are used in a few places of this repository.

  • Grey Ballard (Sandia Laboratory)
  • Mathias Jacquelin (Lawrence Berkeley National Laboratory)
  • Devin Matthews (University of Texas at Austin)

candmc's People

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.