<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
I haven't done it for 6.4 but tried it in 7.0<BR>
<BR>
You can follow the instruction on compiling grass here:<BR>
<A HREF="http://grass.osgeo.org/wiki/Compile_and_Install">http://grass.osgeo.org/wiki/Compile_and_Install</A><BR>
<BR>
Once you have all the prerequisite, you can set the environment variables<BR>
CFLAGS=&quot;-O3 -Wall -Werror-implicit-function-declaration -fno-common -fopenmp&quot;
<PRE>
LDFLAGS=&quot;-lgomp&quot;
and then compile grass.

Cheers
Sab
 
</PRE>
On Wed, 2010-12-29 at 16:03 -0800, LeeDaniel wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hello,

I'm trying to use multithreading in GRASS 6.4 in OpenSUSE 64-bit installed
from the community repository and am wondering what the best way would be to
set my script. What I'm wanting to do is several r.sun analyses parallel to
one another using a Python script. I've read the wiki page about OpenMP at
<A HREF="http://grass.osgeo.org/wiki/OpenMP#Multithreaded_jobs_in_GRASS">http://grass.osgeo.org/wiki/OpenMP#Multithreaded_jobs_in_GRASS</A> but don't
quite understand it - it seems that I can activate multithreading
capabilities in GRASS by modifying /lib/gpde/Makefile but I don't have that
file. I also wasn't able to find a whole lot of information about it that I
could understand - I meet the requirement listed at
<A HREF="http://grass.osgeo.org/programming6/gpdelib.html">http://grass.osgeo.org/programming6/gpdelib.html</A> of having a compiler that
supports OpenMP (I've got gcc 4.5), but am unsure of how I should proceed.
Does anyone have any tips?

Happy New Year's and thanks a bunch in advance!
Daniel
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>