Skip to content

Commit 04d9a52

Browse files
committed
kcp.x in conda environment.
1 parent a12890d commit 04d9a52

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# compile_yambo
2-
Collection of configuration scripts, tricks and other stuff on how to compile and set up a running yambo on different machines.
1+
# Compile your quantum engine
2+
Collection of configuration scripts, tricks and other stuff on how to compile and set up different quantum engines on different machines.
3+
This is suited for stuff which is not on conda-forge, otherwise just install from there.
34

45
## File format
56

conda_env/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ Download the Quantum ESPRESSO source from gitlab
3030
./install/configure --with-hdf5 --enable-openmp
3131
```
3232

33+
If you have problems with blacs, just deactivate scalapack support (as done below for kcp).
34+
3335
## How to install Yambo
3436

3537
A comment on the configure: conda install the dynamic netcdf lib (you know it noticing that in the lib, it is *.so and not *.a, the latter being the static version. Yambo by default does not find the dynamical one, you have to explicitely tell him. like in the line below.)
@@ -69,3 +71,29 @@ mechanism if one is available. This may result in lower performance.
6971

7072
Local host: 6f222c4867e7
7173
```
74+
75+
# How to compile `kcp.x`
76+
77+
Download the [last version](https://github.com/epfl-theos/koopmans-kcp.git) of the code.
78+
I suppose you are compiling the code in the same conda environment described above.
79+
80+
```bash
81+
git clone https://github.com/epfl-theos/koopmans-kcp.git
82+
cd koopmans-kcp
83+
export LD_LIBRARY_PATH=/home/jovyan/.conda/envs/codes/lib
84+
./configure BLAS_LIBS="-L/home/jovyan/.conda/envs/codes/lib -lopenblas" LAPACK_LIBS="-L/home/jovyan/.conda/envs/codes/lib -llapack" FFT_LIBS="-L/home/jovyan/.conda/envs/codes/lib -lfftw3" --with-scalapack=no MPIF90=mpif90
85+
```
86+
87+
Then modify the newly generated `make.sys` file:
88+
89+
```bash
90+
IFLAGS = -I/home/jovyan/codes/koopmans-kcp/include -I/home/jovyan/codes/koopmans-kcp/iotk/include
91+
MODFLAGS = -I./ -I/home/jovyan/codes/koopmans-kcp/Modules -I/home/jovyan/codes/koopmans-kcp/iotk/src
92+
```
93+
94+
Otherwise it will not find the modules and iotk library.
95+
Then:
96+
97+
```bash
98+
make kcp # not in parallel.
99+
```

0 commit comments

Comments
 (0)