Skip to content

Commit

Permalink
Merge branch 'main' into Gavin
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-moore22 authored Sep 12, 2024
2 parents 498202f + b062594 commit 8944742
Show file tree
Hide file tree
Showing 8 changed files with 503 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
install-*
benchmark/benchmark*
build-matar-*
install/*
install/*
heffte/
Binary file added MATAR-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# MATAR
<p align="center"><img src="https://github.com/lanl/MATAR/blob/main/MATAR_Logo.png" width="350">
<p align="center"><img src="https://github.com/lanl/MATAR/blob/main/MATAR-logo.png" width="350">

MATAR is a C++ library that addresses the need for simple, fast, and memory-efficient multi-dimensional data representations for dense and sparse storage that arise with numerical methods and in software applications. The data representations are designed to perform well across multiple computer architectures, including CPUs and GPUs. MATAR allows users to easily create and use intricate data representations that are also portable across disparate architectures using Kokkos. The performance aspect is achieved by forcing contiguous memory layout (or as close to contiguous as possible) for multi-dimensional and multi-size dense or sparse MATrix and ARray (hence, MATAR) types. Results show that MATAR has the capability to improve memory utilization, performance, and programmer productivity in scientific computing. This is achieved by fitting more work into the available memory, minimizing memory loads required, and by loading memory in the most efficient order.

Expand Down
8 changes: 6 additions & 2 deletions examples/mtr-kokkos-simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,12 @@ int main(int argc, char *argv[]) {

// Matrix examples following the Fortran index convention,
// indicies go from 1 to N, first index varies the fastest
FMatrixDevice <real_t> matrix1D(10); // declare and allocate a 1D matrix of size 10
FMatrixDevice <real_t> matrix2D(10,10); // declare and allocate a 2D matrix with sizes of 10 x 10
FMatrixDevice <real_t> matrix1D(10, "1D_FMatrix"); // declare and allocate a 1D matrix of size 10
FMatrixDevice <real_t> matrix2D(10,10, "2D_FMatrix"); // declare and allocate a 2D matrix with sizes of 10 x 10

std::cout<< "Name of 1D Matrix = "<<matrix1D.get_name()<<std::endl;
std::cout<< "Name of 2D Matrix = "<<matrix2D.get_name()<<std::endl;


FMatrixDevice <real_t> matrix3D; // declare variable and allocate sizes and dimensions later
matrix3D = FMatrixDevice <real_t> (10,10,10); // allocate dimensions and sizes
Expand Down
Loading

0 comments on commit 8944742

Please sign in to comment.