This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gomp merge] Stage 2: OpenMP for the Fortran front end


On Wed, Feb 08, 2006 at 04:56:48PM +0000, Biagio Lucini wrote:
> On Tuesday 07 February 2006 21:54, Jakub Jelinek wrote:
> > On Tue, Feb 07, 2006 at 01:44:45PM -0800, Steve Kargl wrote:
> > > I forgot to ask.  Can one execute the gomp fortran testsuite
> > > with and without openmp?
> >
> > No.  gomp.exp explicitly adds -fopenmp option.
> > There are 2 tests in libgomp/testsuite/libgomp.fortran/
> > (omp_cond2.f and comp_cond4.F90) that test -fno-openmp.
> > Some of the tests in both libgomp.fortran and gfortran.dg/gomp
> > will certainly work even without -fopenmp, but some of them
> > rely on OpenMP being turned on (either for testing error messages,
> > warnings, or some particular runtime behavior).
> 
> I could be wrong, but I think that the OpenMP standard requires a stub 
> library. I had a discussion with Diego about this some time ago, before the 
> gomp project had its latest (and finally successful, good job!) restart.
> Is there any plan to add it?

Without the -fopenmp option, gfortran should treat the lines with
OpenMP directives as comments and the remaining lines of code would
compile as a regular Fortran program.  Why would a stub library be
needed?

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]