On 29 June 2011 18:54, <schlo...@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? -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org