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

[Pkg-octave-devel] Bug#631831: Bug#631831: Bug#631831: build octave with --enable-openmp



On 29 June 2011 18:54,  <schloegl@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?





Reply to: