[Q-e-developers] Separate build directory for QE

Axel Kohlmeyer akohlmey at temple.edu
Wed Sep 10 13:29:41 CEST 2014

On Wed, Sep 10, 2014 at 1:19 PM, Paolo Giannozzi
<paolo.giannozzi at uniud.it> wrote:
> I also have occasionally the same problem with the coexistence
> of serial/parallel/openmp builds. My not-so-smart solution
> until now has been to clean and recompile, or to keep several
> copies of the sources. If there is a solution that doesn't
> imply messing up too much the present build system, I am in
> favor (CC: to Axel who may have better ideas than mine).

that is fairly easy to answer. build systems like autoconf/automake or
cmake do in principle support out-of-source builds. cmake even
strongly encourages it. however, Q-E only uses part of the
autoconf/automake setup (only the autoconf part) and otherwise has its
own strategy. so the answer is "not without a major rewrite of the
build system". having multiple checkouts is as close as you can get.


p.s.: it is really funny, that i was having the very same discussion
over the last days with a couple of the LAMMPS developers.

> pw_forum is working, AFAIK: I just sent a message and it has
> appeared in the archive
> Paolo
> On Wed, 2014-09-10 at 11:15 +0200, Lorenzo Paulatto wrote:
>> Dear Developers,
>> do you think it would be interesting to be able to build QE in a
>> separate directory than the source tree?
>> This would allow to have several build (ifort vs. gcc, parallel vs.
>> serial, different optimization levels, openmp or not, etc.) based on the
>> same source tree, which is something I badly miss sometimes during
>> development. I sometime surrogate to this need with some goofy
>> combination of rsync and symlinks, which regularly becomes a mess.
>> Keep in mind, that even if you think it is a great ideas I'm not
>> necessarily going to implement it immediately, or at all.
>> kind regards
>> p.s. Is pw_forum offline?
> --
>  Paolo Giannozzi, Dept. Chemistry&Physics&Environment,
>  Univ. Udine, via delle Scienze 208, 33100 Udine, Italy
>  Phone +39-0432-558216, fax +39-0432-558222

Dr. Axel Kohlmeyer  akohlmey at temple.edu

More information about the developers mailing list