From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653669621899.tru64-unix-managers.marc@archive.invalid> From: Sung Moon Kang Date: Wed, 15 Aug 2001 01:04:57 +0000 To: tru64-unix-managers Subject: SUMMARY: Fortran v5.4A OpenMP call errors X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653669621899 I'd like to thank the following folks for their suggestions: Peter Stern Udo Grabowski sys admin of astro.su.se> John Venier 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