2010/4/16 "Miguel A. Vázquez" <mavazq...@cttc.es <mailto:mavazq...@cttc.es>>:
> Jaroslav Hajek wrote:
>>
>> 2010/4/15 "Miguel A. Vázquez" <mavazq...@cttc.es <mailto:mavazq...@cttc.es>>:
>>
>>>
>>> Thanks a lot for the corrections.
>>>
>>> However, it's still executing just one thread, I don't see two hello
>>> messages.
>>>
>>> I'm using Octave 3.2.4 and gcc 4.1.1
>>>
>>> Regards
>>>
>>> Jaroslav Hajek wrote:
>>>
>>
>>
>> IIRC, gcc 4.1.x only had very experimental OpenMP support. I recommend
>> you upgrade.
>>
>>
>
> I upgrade to gcc  4.4.1 and recompile but the problem is still there.
>

> I compile the same example in c++ with g++ without the octave directives and
> it worked properly.

Did you configure Octave with --enable-openmp? What does mkoctfile -v
show when you compile?



-- 
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: http://www.highegg.matfyz.cz

Yes, I configured Octave with --enable-openmp. But it doesn't work.

The mkoctfile -v shows

g++ -c -fPIC -I/home/mavazquez/octave-3.2.4/include/octave-3.2.4 
-I/home/mavazquez/octave-3.2.4/include/octave-3.2.4/octave 
-I/home/mavazquez/octave-3.2.4/include -mieee-fp -I/usr/include/freetype2 -g 
-O2 pmean.cc -o pmean.o
g++ -shared -Wl,-Bsymbolic -o pmean.oct pmean.o -lgomp 
-L/home/mavazquez/octave-3.2.4/lib/octave-3.2.4 
-L/home/mavazquez/octave-3.2.4/lib -loctinterp -loctave -lcruft -llapack -lblas 
-lfftw3 -lfftw3f -lreadline -lncurses -ldl -lhdf5 -lz -lm 
-L/usr/lib/gcc/i486-linux-gnu/4.4.1 
-L/usr/lib/gcc/i486-linux-gnu/4.4.1/../../../../lib -L/lib/../lib 
-L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.4.1/../../.. 
-L/usr/lib/i486-linux-gnu -lhdf5 -lz -lgfortranbegin -lgfortran -lm

Thank you.




------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to