[Bug fortran/34533] DTIME returns total process time and not since last invocation
kargl at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Dec 20 18:26:00 GMT 2007
------- Comment #4 from kargl at gcc dot gnu dot org 2007-12-20 18:26 -------
(In reply to comment #3)
> Another question: contrary to g77, we now have support for OpenMP. How about
> concurrency issues? Shall DTIME give the time since the last invokation from
> any thread, i.e. maintain a global storage, or the last invokation from the
> same thread, i.e. thread local storage?
>
I think gfortran will need to handle it similar to how random_seed is done.
See libgfortran/intrinsics/random.c. In fact, one could potentially import
the code from random.c into dtime with only a minimum effort (famaous last
words).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34533
More information about the Gcc-bugs
mailing list