[Pkg-octave-devel] Bug#631831: Bug#631831: Bug#631831: build octave with --enable-openmp
Jordi Gutiérrez Hermoso
jordigh at octave.org
Thu Jun 30 02:11:15 UTC 2011
On 29 June 2011 18:54, <schloegl at ist.ac.at> wrote:
>> On Tue, Jun 28, 2011 at 09:03:32AM +0200, Alois Schloegl wrote:
>>> adding -lgomp to mkoctfile call does not do it. And I've not found
>>> any another option to enable openmp at this stage.
>>
>> Did you pass -fopenmp to the compiler?
>>
>> Thomas
>>
>
>
> I tried, but mkoctfile does not accept -fopenmp
>
> $ mkoctfile --mex -fopenmp covm_mex.cpp -lz -lgomp
> mkoctfile: unrecognized argument -fopenmp
Pass it as an environment variable:
CXXFLAGS="-O2 -fopenmp" mkoctifle --mex covm_mex.cpp -lz -lgomp
Does that work?
More information about the Pkg-octave-devel
mailing list