David Bateman wrote: > Miguel A. Vázquez wrote: >> Jaroslav Hajek wrote: >> >>> 2010/4/16 "Miguel A. Vázquez" <mavazq...@cttc.es>: >>> >>>> 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. >>>> >>>> >>> Apparently you don't have the -fopenmp flag in CXXFLAGS, so you failed >>> to configure correctly. What exactly was the configure command you >>> used? What does the part of config.log related to openmp look like? >>> >>> >> I used the command >> >> ./configure --prefix=/usr/local --enable-openmp >> >> The openmp section of the configure.log file looks like >> >> configure:20858: running /bin/bash ./configure >> --disable-option-checking '--prefix=/usr/local' '--enable-openmp' >> --cache-file=/dev/null --srcdir=. >> config_opts=' '\''--prefix=/usr/local'\'' '\''--enable-openmp'\''' >> >> >> > > We require that the compiler support _Pragma so that the pragmas can > be included in macros.. Perhaps yours doesn't. What does > > grep HAVE_OPENMP config.h > > give? > > D. > > The command
cat config.h | grep HAVE_OPENMP doesn't give me any answer. M. A. ------------------------------------------------------------------------------ Download Intel® 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