help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to employ openMP in octave


From: Jaroslav Hajek
Subject: Re: How to employ openMP in octave
Date: Mon, 9 Jun 2008 15:26:43 +0200

On Mon, Jun 9, 2008 at 3:02 PM, iaask t <address@hidden> wrote:
>
> Hi,
>
> May I know how do I compile an OpenMP program and use it in octave?
> I have managed to port its sequence version successfully to octave but when I 
> add the openMP directive into the code and try to execute it on octave, i 
> received the following error.
>
> error: /home/dwin/perf/octave_perf/perf-2.86/perf_train.oct: undefined 
> symbol: omp_set_num_threads
> error: `perf_train' undefined near line 1 column 1
>

you must link with your OpenMP runtime library for this to work. E.g.,
when using gcc, you need to do mkoctfile <source files here> -lgomp.

> Kindly advise.
>
> Thank you.
> _________________________________________________________________
> Easily edit your photos like a pro with Photo Gallery.
> http://get.live.com/photogallery/overview
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>
>



-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]