Commit Graph

14 Commits

Author SHA1 Message Date
giannozz a2fdf32348 More removal of unused variables, or of annoying compiler messages, by SP
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12307 c92efa57-630b-4861-b058-cf58834340f0
2016-04-14 13:04:19 +00:00
giannozz 29f5a76cf0 For some obscure reason, Fermi deson't seem to like mpi_init_thread with
option MPI_THREAD_MULTIPLE, while MPI_THREAD_FUNNELED seems to work ok.
Since the latter case is all we need, I think it is safer to stick to it


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@11797 c92efa57-630b-4861-b058-cf58834340f0
2015-10-22 06:54:42 +00:00
spigafi 27e382ee94 Now works. Better to support MPI_THREAD_MULTIPLE than MPI_THREAD_FUNNELED, more generic and useful for the future.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@11608 c92efa57-630b-4861-b058-cf58834340f0
2015-07-06 18:50:28 +00:00
giannozz eee4fbe6cc MPI_INIT_THREAD should be used instead of MPI_INIT for MPI+OpenMP (suggested
by Fabien Leydier; this patch had been applied some time ago then reverted 
because incompatible with very old MPI libraries)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@11607 c92efa57-630b-4861-b058-cf58834340f0
2015-07-04 17:46:05 +00:00
giannozz af5d095861 Latest commit unfortunately doesn't seem to work on older MPI versions.
reverted to previous version while waiting for better ideas,


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@11314 c92efa57-630b-4861-b058-cf58834340f0
2015-01-13 15:57:31 +00:00
giannozz ac46639f0d MPI_INIT_THREAD should be used instead of MPI_INIT for MPI+OpenMP (suggested
by Fabien Leydier)


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@11313 c92efa57-630b-4861-b058-cf58834340f0
2015-01-13 15:15:38 +00:00
spigafi 14857baf8f Protecting MPI calls with pragmas, now it compiles in serial. -- Happy New Year to everybody!
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10654 c92efa57-630b-4861-b058-cf58834340f0
2013-12-31 10:54:42 +00:00
giannozz f55fbe392a Cleanup of the parallel part: check if mpi is initialized moved from
mp.f90 to mp_world.f90, interface mp_comm_free used instead of direct
call to mpi_comm_free, deallocation of communicators. Should be harmless
but please check.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10649 c92efa57-630b-4861-b058-cf58834340f0
2013-12-28 09:29:14 +00:00
giannozz 95600c8582 More cleanup of parallel modules: mp_global no longer contains references to
variables for the "world" MPI communicator. The latter are to be found in 
world_comm instead. mp_global should be used only to start and to end the
various parallelization levels. Many small but harmless changes: a few 
variables removed or moved to another module in most cases.


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10558 c92efa57-630b-4861-b058-cf58834340f0
2013-10-27 09:09:10 +00:00
giannozz 4c269ac75b All references to world_comm removed: all parallelism in QE takes place
inside a single communicator, passed at the very beginning of the calculation


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10550 c92efa57-630b-4861-b058-cf58834340f0
2013-10-23 06:35:17 +00:00
ccavazzoni 8be0d2f76b - add explicit communicator in "mp" cals
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10483 c92efa57-630b-4861-b058-cf58834340f0
2013-09-26 20:48:16 +00:00
ccavazzoni 68d56dfcf2 - commit of Axel patches to remove dependencies form mpi_world_comm
and to setup blacs grid accordingly



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10480 c92efa57-630b-4861-b058-cf58834340f0
2013-09-26 15:47:31 +00:00
giannozz b76c962d0f Changes to MPI initialization suggested by Axel in order to make gluing with
QMMM easier


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10475 c92efa57-630b-4861-b058-cf58834340f0
2013-09-23 12:57:14 +00:00
giannozz aca32a501a Module mp_global split into more modules, one per parallelization level.
Module mp_global is still there for compatibility and still contains the
routine mp_startup that performs the intialization, but shouldn't be any
longer used in new developments and should be slowly replaced by specific
modules. New module containing command-line options added. Command-line
options are read at the beginning of the run and broadcast to all processors
(there is no guarantee that command-line options cam be accessed by all mpi
 processes). Nothing should be broken by these changes but please verify if
all parallelization levels work (I have limited access to parallel machines
right now)

The reason for these changes, and for those that will come soon, is to make
image parallelization easier (in particular in NEB but also for other cases). 
Right now it is a pain, in part because the initialization is inadequate,
in part because it is never clear who reads/writes what from/to where.
It will take a few weeks before everything converges to a stable state.
Meanwhile, please be patient and fix/report problems.



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@9876 c92efa57-630b-4861-b058-cf58834340f0
2013-01-28 09:21:12 +00:00