Re: Odd omp_get_wtime()
- From: Reinhold Bader <Bader@xxxxxx>
- Date: Wed, 31 Oct 2007 10:28:16 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gib Bogle wrote:
I've run into a a peculiar behaviour in XL Fortran with the OpenMP[snip]
function omp_get_wtime(). I've reduced it to a simple program that
shows the behaviour:
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.
Regards
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFHKEqwFVLhKuD7VgsRAmM5AJ9ghkRWQ9ZXEqWJSa7shhzBbtZRhACfWa6Y
V+6atBUrTHKcfu0qsC0woKs=
=CnmY
-----END PGP SIGNATURE-----
.
- Follow-Ups:
- Re: Odd omp_get_wtime()
- From: Tim Prince
- Re: Odd omp_get_wtime()
- References:
- Odd omp_get_wtime()
- From: Gib Bogle
- 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: Odd omp_get_wtime()
- Next by thread: Re: Odd omp_get_wtime()
- Index(es):
Relevant Pages
|