SUMMARY: Fortran v5.4A OpenMP call errors

From: Sung Moon Kang <sung.kang.bk.94_at_aya.yale.edu>
Date: Tue, 14 Aug 2001 18:04:57 -0700

I'd like to thank the following folks for their suggestions:

Peter Stern <Peter.Stern_at_xxx.xxx.xxx>
Udo Grabowski <udo.grabowski_at_xxx.xxx.xxx>
sys admin of astro.su.se>
John Venier <venier_at_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_at_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_at_aya.yale.edu | http://www.bol.ucla.edu/~kangs
Received on Wed Aug 15 2001 - 01:06:11 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT