Skip to content

Conjugate Gradient solver testbench for sparse symmetric matrices

Notifications You must be signed in to change notification settings

Gabrocecco/conjugate_gradient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conjugate Gradient Solver for sparse symmetric matrices

Run CG (x86) using a sample problem from OpenFOAM:

make test_cg
./build/test_cg  

Run vectorized CG in Spyke RISC-V simulator:

make run_test_cg_vec

Supported matrix formats:

- [x] COO
- [x] CSR
- [x] ELL 
- [] SELL

Vectorized kernels (src/vectorized.c ):

  • Matrix Vector product (ELL)
  • Dot product
  • SAXPY
conjugate_gradient/
├── include/        # Header files (.h)
│   ├── cg.h, coo.h, csr.h, ...
├── src/            # algorithm and matrix formats support (.c)
│   ├── cg.c, coo.c, csr.c, ...
├── tests/          
│   ├── tests_cg.c, test_matrix.c, ...  # tests (.c)
├── build/          # Executables 
├── data/           # OpenFoam i/o files
├── riscv/          # Riscv simulated experimets (Spike)
├── Makefile        
└── README.md       

About

Conjugate Gradient solver testbench for sparse symmetric matrices

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published