* SUMMARY: Fortran v5.4A OpenMP call errors
@ 2001-08-15 1:04 Sung Moon Kang
0 siblings, 0 replies; only message in thread
From: Sung Moon Kang @ 2001-08-15 1:04 UTC (permalink / raw)
To: tru64-unix-managers
I'd like to thank the following folks for their suggestions:
Peter Stern <Peter.Stern@xxx.xxx.xxx>
Udo Grabowski <udo.grabowski@xxx.xxx.xxx>
sys admin of astro.su.se>
John Venier <venier@xxx.xxx.xxx>
Peter Stern's remarks solved the problem immediately, so I repeat
it verbatim. Turns out the problem was pretty trivial: the hard
part was getting the programmer to actually try it. :-)
Date: Mon, 13 Aug 2001 08:37:48 +0300 (IDT)
From: Peter.Stern@xxxx
You probably have an
implicit none
statement in the calling program. I would try the obvious and put in
the type declaration:
integer omp_get_num_procs, omp_get_thread_num
at the beginning of the program after any include statements.
(If that doesn't work you could try MPI_INTEGER instead of integer.)
Relevant parts of the original question:
>I've just finished setting up a brand new DS20E (with 2 CPU's running
>Tru64 UNIX 5.1A Patch Kit 3 [t64v51AS0003-20010521 -- the new one] ) up
>and running (including the installation of C++ and Fortran from the
>Layer Products CD). However, we are getting an error with a Fortran
>90 program:
>
>------ error message --------
>f90 -O5 -r8 -omp -c subah.f
>f90: Error: subah.f, line 231: This name does not have a type, and must
>have an explicit type. [OMP_GET_NUM_PROCS]
> ntask=omp_get_num_procs()
>------------^
>f90: Error: subah.f, line 311: This name does not have a type, and must
>have an explicit type. [OMP_GET_THREAD_NUM]
> taskID=omp_get_thread_num()
>---------------^
>*** Exit 1
>Stop.
>------ end of error message --------
>
>I've also had the DXML (now apparently obsolete) libraries and the
>CXML libraries installed at the same time. Currently, I have not
>installed the DXML library but have the CXML libraries (which is
>installed by the Fortran installer). There's also the High
>Performance Libraries v 1.8-5 and v1.9 (again by the Fortran installer
>and the EC02 patch).
--
------------------------------------------------------------------
Sung Moon Kang BK94 AA96 | UCLA - Mech & Aerospace Engineering
sung.kang.bk.94@aya.yale.edu | http://www.bol.ucla.edu/~kangs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-08-15 1:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-15 1:04 SUMMARY: Fortran v5.4A OpenMP call errors Sung Moon Kang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox