1. How to install¶
1.1. Requirement¶
LAPACK, BLAS
cpplapack (included in this package)
1.2. Download¶
Stable version
You can download a stable version of the
SpMprogram in https://github.com/SpM-lab/SpM/releases. After download the archive, decompress it by$ tar zxvf v1.0.tar.gz
Latest codes
You can get the latest codes from our GitHub repository. Execute the following command
$ git clone https://github.com/SpM-lab/SpM.git spm.src
and then the source codes are downloaded in the directory
spm.src.
1.3. Build¶
First, create an empty directory and move into it:
$ mkdir spm.build && cd spm.buildWe assume that
spm.buildis located on the same level asspm.src.
Call cmake
$ cmake ../spm.srcand all necessary files including
Makefileare created according to your system configuration. [any cmake options?]
Now, you can compile the codes by
$ makeThe executable file
SpM.outis created in thespm.build/srcdirectory.
1.4. Test¶
Some sample data are provided for test calculations.
Just enter into samples/fermion directory and execute it by
$ ./run.sh
You may need to change the parameter file_exe="../SpM.out" in the script (absolute or relative path to SpM.out) according to your environment.
If succeeded, results including graphs in EPS format are generated in output directory.
For details of the sample script, see Tutorials.