[GRASS-dev] Re: [GRASS GIS] #657: add --with-openmp support to ./configure

GRASS GIS trac at osgeo.org
Wed Apr 21 15:17:24 EDT 2010


#657: add --with-openmp support to ./configure
------------------------+---------------------------------------------------
  Reporter:  hamish     |       Owner:  grass-dev at lists.osgeo.org
      Type:  task       |      Status:  new                      
  Priority:  normal     |   Milestone:  7.0.0                    
 Component:  Compiling  |     Version:  svn-trunk                
Resolution:             |    Keywords:  openmp                   
  Platform:  All        |         Cpu:  All                      
------------------------+---------------------------------------------------
Comment (by glynn):

 Replying to [comment:1 hamish]:

 > wrt trunk/lib/gpde/Makefile, does -lgomp have to be before $(GMATHLIB)
 and -lm or could we do
 >   EXTRA_LIBS += -lgomp
 > later?

 lib/gpde/Makefile should just have $(OMPLIB) at the appropriate place in
 EXTRALIBS, probably immediately before $(MATHLIB).

 > should we do the same "+=" trick for EXTRA_CFLAGS=-fopenmp, to stop it
 from clobbering any earlier setting?

 EXTRA_CFLAGS = $(OMPCFLAGS)

 Once the configure checks are written, Platform.make.in would define
 these. Until then, you can use e.g.
 {{{
 make OMPCFLAGS=-fopenmp OMPLIB=-lgomp ...
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/657#comment:3>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list