Commit Graph

50 Commits

Author SHA1 Message Date
Stefano de Gironcoli 86920021c8 revert thread_util to version w/o data chuncking 2018-08-07 20:45:56 +02:00
Stefano de Gironcoli ac8b63bd4c update of previous merge PPCG 2018-08-05 08:25:56 +00:00
Daniel Pinkal 29164dbf9a Update clocks_handler.f90
Fixed broken clock output for WALL times > 1h and harmonized spacing of d-h-m-s time output.
For the WALL time output in the case of mhour>0 there was given "nmin" as first variable for the output string which was wrongly placed there.
Additionally, the spacing of all d-h-m-s outputs where changed in a way, that the Words "CPU" and "WALL" are all in one row with the output in seconds only [if defined(__CLOCK_SECONDS)].
2018-07-24 13:49:02 +00:00
paoloumari f1409c1daf Updated using makedep.sh 2018-06-30 10:18:43 +02:00
Paolo Giannozzi 7a426ad216 Release-notes updated, obsolete script for release deleted.
Slightly improved printout of wall times (format depends upon wall time,
not cpu time as now: no difference except for some cases with OpenMP)
2018-06-20 18:37:23 +02:00
Stefano de Gironcoli 7b84c0114e undo the rescaling of the cpu time per thread.
it can be restored by uncommenting one line in UtilXlib/clocks_handler.f90
search for PRINT_AVG_CPU_TIME_PER_THREAD in that file
2018-06-20 09:32:07 +02:00
Stefano de Gironcoli 8b3eb1752d cpu time rescaling is made only optional with a pre-processing option 2018-06-20 09:32:07 +02:00
Stefano De Gironcoli 87400ecfd3 cpu time per mpi task scaled dow by the number of omp processes participating into it 2018-06-20 09:32:07 +02:00
Ye Luo 6ac7f8c32a Merge branch 'bugfix-ndiag' into opt-threading-all-parts 2018-06-14 19:05:31 -05:00
Paolo Giannozzi 2c4f0dbdac More realistic memory estimate for EXX calculations.
Minor improvements to memory counter.
2018-06-08 08:27:01 +02:00
Ye Luo 8812c4085f Reverted to the old algorithm in hpsi_dot_v. 2018-06-02 16:24:36 -05:00
Ye Luo fa21b8d52a Add functions to do threaded memcpy and memset
threaded_memXXX is contains a parallel do region
threaded_barrier_memXXX contains do region without parallel
threaded_nowait_memXXX contains do region without parallel and a nowait at the end do
2018-06-02 12:22:42 -05:00
Ye Luo c2b2efdaed Use more sensible names. 2018-05-31 12:29:41 -05:00
Ye Luo 14508b0810 Optimize hpsi_dot_v 2018-05-28 19:13:39 -05:00
Ye Luo af2fac5ef9 Replace allgather with gather. 2018-05-28 08:34:42 -05:00
Ye Luo 2c6c859896 Remove all unnecessary mem ops in cegterg. 2018-05-27 21:54:46 -05:00
Paolo Giannozzi 22960e9b37 Quick-and-dirty memory tracker, courtesy Pietro Bonfà, added. Part of it had
already been included by mistake in a previous commit. Can be activated using
script "dev-tools/mem_counter" on selected directories (and recompiling);
can be deactivated using "dev-tools/mem_counter -r" (and recompiling).
A small fortran file added into UtliXlib (seemed the most sensible place).
A small change to qes_libs.f90 to avoid compilation problems (line too long).
Small patch by Scott Brozel signaling download failures added.
Essential and very incomplete documentation of what is inside dev-tools added.
2018-02-17 18:53:49 +01:00
Pietro Bonfa b75f8e7602 Forgot preprocessor directives at the top of the interface 2018-02-13 15:15:36 +01:00
Pietro Bonfa 152e589b7e mp_count_nodes is now compatible with gfortran 4.7 2018-02-13 09:08:59 +01:00
Pietro Bonfa 837629de78 Restored gitlab-ci for merging 2018-02-09 10:10:37 +01:00
Pietro Bonfa b6b21c9a3e Corrected documentation and comments, removed long lines 2018-02-07 17:32:11 +01:00
Pietro Bonfa 29365bb41d Removed useless initialization of character array. 2018-02-07 11:27:35 +01:00
Pietro Bonfa e18c2231f1 Changed allocation for characters. Routine cleaner, but needs some testing 2018-02-06 18:44:08 +01:00
Pietro Bonfa d42c5992af Check parallel+openmp 2018-02-06 16:58:14 +01:00
Pietro Bonfa ef3b0b98b6 Corrected serial build, minor style edits 2018-02-06 15:39:45 +01:00
Pietro Bonfa f83f0fd806 Minimal documentation of the new mp_count_nodes 2018-02-06 12:09:08 +01:00
Pietro Bonfa 63e8328adc Forgot setting key 2018-02-06 12:09:08 +01:00
Pietro Bonfa 13cb28b05b Now mp_count_nodes returns colors and keys possibly needed for mpi_comm_split 2018-02-06 12:09:08 +01:00
Paolo Giannozzi d6ff342a29 Cleanup: release-notes and make.depend updated, a few commented lines and
useless routine deallocate_gvecs deleted
2017-12-26 19:42:09 +01:00
Paolo Giannozzi 772cff434d Routine "divide" cleaned up 2017-12-23 23:00:26 +01:00
Paolo Giannozzi a06d380cf4 Replicated routine "set_bgrp_index" replaced by "divide" 2017-12-23 22:00:32 +01:00
Paolo Giannozzi a60d5adbef Prevous commit didn't contain all needed changes 2017-12-23 09:00:13 +01:00
Paolo Giannozzi 15d27dde4f Generic subroutine "divide" moved from PW/src to UtilXlib. It might be a
good idea to rename it  "mp_divide" and to put into module mp.
2017-12-22 22:12:55 +01:00
pietrodelugas 3107b87185 logic in commit 139000 was not wrong and mp_count_node was not compiled in non gfortran compilers, fixed
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13903 c92efa57-630b-4861-b058-cf58834340f0
2017-10-12 14:59:48 +00:00
pietrodelugas 7608019f47 mp_count_nodes compilation and call preprocessed out for old versions of gfortran (v < 4.8)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13900 c92efa57-630b-4861-b058-cf58834340f0
2017-10-12 07:18:08 +00:00
giannozz 38e20d4374 Compilation for serial execution wasn't working any longer
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13843 c92efa57-630b-4861-b058-cf58834340f0
2017-09-14 17:27:42 +00:00
giannozz 5bea533594 Added utility routine to count number of nodes
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13842 c92efa57-630b-4861-b058-cf58834340f0
2017-09-14 15:47:23 +00:00
degironc f562ff9f9f simple example of use of the fletcher32 check sum functionality
compile as     $F90  hash.f90 libutil.a ../clib/clib.a 



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13825 c92efa57-630b-4861-b058-cf58834340f0
2017-09-03 15:12:46 +00:00
degironc 19b3d59586 Fletcher-32 checksum implemented in clib/fletcher32.c
c-routine for a 16-byte integer array taken verbatim from the 
optimized c version reported in
https://en.wikipedia.org/wiki/Fletcher%27s_checksum#Optimizations
except for the fact that the data size is not an argument of the 
function but rather the address of its location is passed, as this
is what a fortran call passes as reference. 
The type of these variables is also defined as uint32_t 
instead of size_t because this is what fortran implicitely does.

Fortran interfaces to a generic subroutine fletcher32_cksum also
defined in UtilXlib/fletcher32_mod.f90



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13824 c92efa57-630b-4861-b058-cf58834340f0
2017-09-03 15:01:51 +00:00
degironc d1d56024f7 simplification of mp_bands_util module
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13713 c92efa57-630b-4861-b058-cf58834340f0
2017-08-09 05:58:51 +00:00
degironc a8340b4d40 Duplicate routines cdiaghg and rdiaghg moved from KS_Solvers/XX to LAXlib.
Duplicate module mp_bands.f90 moved from KS_Solvers/XX to UtilXlib/mp_bands_util.f90
Makefiles and makedepend.sh updated
 
that should take care of the duplicate symbols




git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13712 c92efa57-630b-4861-b058-cf58834340f0
2017-08-08 21:44:44 +00:00
giannozz 3bf20b2462 Misc problems with error messages
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13698 c92efa57-630b-4861-b058-cf58834340f0
2017-08-07 11:10:41 +00:00
giannozz d0394c253a release-notes, make.depend updated (wasn't compiling from scratch)
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13666 c92efa57-630b-4861-b058-cf58834340f0
2017-07-31 18:00:58 +00:00
degironc 609a34a69f the __TRACE debugging feature in clocks_handler modified so that printing of
clocks can be limited up to a certain depth level (given as optional 
argument to init_clocks) so as to reduce the ammount of printed stuff.
printed message shortened , stdout flushed.



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13665 c92efa57-630b-4861-b058-cf58834340f0
2017-07-31 17:13:53 +00:00
pietrodelugas af6a0b475b partially reversed previuos commit, in case of failure find_free_unit returns a negative value and prints an info message without stopping the program.
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13653 c92efa57-630b-4861-b058-cf58834340f0
2017-07-30 17:28:48 +00:00
pietrodelugas 3881bdc5b9 added optional error flag in output
git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13651 c92efa57-630b-4861-b058-cf58834340f0
2017-07-30 16:42:40 +00:00
giannozz df779596bd F77_FUNC wrapper for C routines deleted with all associated configure machinery.
IMPORTANT: please verify the correct functioning of "ec_fill_radii" for qmmm


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13640 c92efa57-630b-4861-b058-cf58834340f0
2017-07-28 13:55:26 +00:00
giannozz b3bc955a3c All *.o must be present in a library, even those not referenced outside the
library, otherwise  some compilers, notably pgi, may not be able to find them


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13634 c92efa57-630b-4861-b058-cf58834340f0
2017-07-27 20:29:08 +00:00
giannozz 322baa015d Re-installed some minor changes to C and timing functions, aimed towards
removal of old-style fortran to C binding and of configure hacks. The
fortran timing functions are now f_tcpu and f_wall, with obvious meaning


git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13631 c92efa57-630b-4861-b058-cf58834340f0
2017-07-27 17:26:36 +00:00
degironc 7fd27ba0ad UtilXlib directory created to contain a library (libutil.a) for
basic operations: error handling, timing clocks, interfaces to basic mpi 
calls, find free units...
These routines are moved from Modules and dependencies to other modules
are removed. 

MANY files are updated to comply with the move.



git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@13629 c92efa57-630b-4861-b058-cf58834340f0
2017-07-26 11:15:20 +00:00