This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/34533] DTIME returns total process time and not since last invocation



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]