Commit ba33d9bf authored by D'azevedo, Ed's avatar D'azevedo, Ed
Browse files

simple instructions to build this plugin for DMRG++

parent 0c665647
Loading
Loading
Loading
Loading
+60 −0
Original line number Diff line number Diff line

# DMRG++PluginSc

## How to build

Download and build PsimagLite
```BASH
$ git clone https://code.ornl.gov/gonzalo_3/PsimagLite
$ cd PsimagLite/lib
$ git checkout features
$ ./configure.pl

# to take advantage of 4 CPU cores 
$ make -j 4
```

Download and build DMRG++PluginSc (this repo)
```BASH
$ git clone https://code.ornl.gov/e6d/dmrgppPluginSc
$ cd dmrgppPluginSc/src

# create a make.inc file by modifying one of the existing ones
# for example to take advantage of OpenMP on multiple CPU cores
# cp make.inc.openmp   make.inc
# or take advantage of MAGMA library on GPU
# cp make.inc.magma   make.inc
$ cp make.inc.openmp  make.inc


$ make -j 4
```

Download DMRG++
```BASH
$ cd ../../
$ git clone https://code.ornl.gov/gonzalo_3/dmrgpp
$ cd dmrgpp/
$ git checkout features
$ cd src
```
Create a file myconfig.psiTag with the following content

```
flavor myflavor = (
< flavor production
< dependency PluginSc
)

default flavor = myflavor
```
and then
```BASH
$ ./configure.pl -c myconfig.psiTag
$ make -j 4
```

To DMRG++ inputs, please add BatchedGemm to SolverOptions, like
```
SolverOptions=BatchedGemm,...
```