Re: Odd omp_get_wtime()
- From: Tim Prince <tprince@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 05:44:54 -0700
Reinhold Bader wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gib Bogle wrote:
I've worked with people who make a practice of declaring omp functions locally rather than by 'use omp_lib'. Intel Thread Checker raises a run time warning on this, even though the code is working correctly.[snip]
module wtime_mod
contains
subroutine wtimer2(t)
real(8) :: t
t = omp_get_wtime()
end subroutine
end module
I was just about to post this when I realized that module wtime_mod
lacked 'use omp_lib'. Sure enough, adding that line makes it work
properly. It's surprising, though, that the program as shown compiles
and runs without an error.
You're not really allowed to complain, not having specified "implicit none"
in the module wtime_mod.
.
- References:
- Odd omp_get_wtime()
- From: Gib Bogle
- Re: Odd omp_get_wtime()
- From: Reinhold Bader
- Odd omp_get_wtime()
- Prev by Date: Re: Stack corruption and memory leak problems in c++/Fortran application
- Next by Date: Re: Stack corruption and memory leak problems in c++/Fortran application
- Previous by thread: Re: Odd omp_get_wtime()
- Next by thread: Adding a column to an existing output file
- Index(es):
Relevant Pages
|
|