Progetto di Calcolo Scientifico, Metodo di Arnoldi per Autovalori distribuito utilizzando PETSc
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Antonio De Lucreziis f823ebd150 snapshot 1 year ago
.vscode snapshot 1 year ago
matrices/laplacian fixed final hesseberg bug 1 year ago
spack-env chore: readme and vscode recommends 1 year ago
typst-report added pdf directly 1 year ago
.clang-format finito? 1 year ago
.gitignore added pdf directly 1 year ago
CMakeLists.txt added missing dep 1 year ago
README.md snapshot 1 year ago
arnoldi.c snapshot 1 year ago
experiment-1.sh changes from cluster 1 year ago
experiment-single.sh changes from cluster 1 year ago
experiment-template.sh changes from cluster 1 year ago

README.md

Arnoldi Iteration for Eigenvalues

Download the report

Setup

Spack

I recently wrote an article about this

This assumes that you have spack installed and sourced. If not, you can install it using the following commands

$ git clone -c feature.manyFiles=true --depth=2 https://github.com/spack/spack.git

# For bash/zsh/sh
$ . spack/share/spack/setup-env.sh
# For tcsh/csh
$ source spack/share/spack/setup-env.csh
# For fish
$ . spack/share/spack/setup-env.fish

# Then to discover available compilers
$ spack compiler list
$ spack compiler find

Now in the root directory of this repository, you can load the spack environment that contains the packages needed to build the project.

# 1. Activate the local environment
$ spack env activate ./spack-env

# 2. Compile and install the packages listed in the environment
$ spack install

# 3. (optional, it looks like cmake can still find the packages just by loading the environment using pkg-config)
$ spack load lapack openmpi petsc

CMake

To build main from main.c

$ rm -rf build
$ mkdir build
$ cd build
$ cmake ..
$ make
$ mpirun -n 2 ./main