[GRASS-dev] Re: [GRASS GIS] #657: add --with-openmp support to
./configure
GRASS GIS
trac at osgeo.org
Sun Dec 11 20:56:00 EST 2011
#657: add --with-openmp support to ./configure
-----------------------+----------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
Type: task | Status: new
Priority: normal | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Keywords: openmp | Platform: All
Cpu: All |
-----------------------+----------------------------------------------------
Comment(by hamish):
added in trunk with r49652 with support for: gcc (>=4.2.1), Intel's C
compiler, AMD's x86 Open64 compiler, and PGI's compiler. Additional
support for Solaris cc, AIX xlc, and SGI IRIX 6.5 MIPSpro C is known but
left commented out for now.
todo:
{{{
# try to build a test program with "$CC $OMPCLFAGS" to confirm it works
#...how?
#echo "int main() {return 0;}" > test.c
#$CC $OMPCLFAGS test.c -o test
}}}
I think the test compile is better than explicitly checking the gcc
version,
{{{
GCC_VERSION=`${CC} -dumpversion`
GCC_VERSION_MAJOR=$(echo $GCC_VERSION | cut -d'.' -f1)
GCC_VERSION_MINOR=$(echo $GCC_VERSION | cut -d'.' -f2)
GCC_VERSION_PATCH=$(echo $GCC_VERSION | cut -d'.' -f3)
}}}
for a gcc version test, see also:
http://git.savannah.gnu.org/gitweb/?p=autoconf-
archive.git;a=blob_plain;f=m4/ax_gcc_version.m4
a positive but reasonably inefficient speedup for v.surf.rst has been
added in r49653.
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/657#comment:6>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list