Re: Odd omp_get_wtime()



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gib Bogle wrote:
I've run into a a peculiar behaviour in XL Fortran with the OpenMP
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

[snip]
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-----
.



Relevant Pages

  • Re: Odd omp_get_wtime()
    ... Hash: SHA1 ... Gib Bogle wrote: ... subroutine wtimer2 ... It's surprising, though, that the program as shown compiles ...
    (comp.lang.fortran)
  • Re: Odd omp_get_wtime()
    ... Hash: SHA1 ... Gib Bogle wrote: ... subroutine wtimer2 ...
    (comp.lang.fortran)
  • Re: Cant locate ExtUtils/MakeMaker.pm
    ... subroutine, but the rest of the subroutines are loaded from the standard ... your Perl installation is corrupted. ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
    (freebsd-questions)
  • Re: Allocatable Arrays As Outputs
    ... please forgive my poor mastering of Fortran. ... I am attaching a simplified version of my small program (1 subroutine ... readkeywordName, numberOfProps, ... Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org ...
    (comp.lang.fortran)