[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question about compiling mex files
From: |
José Luis García Pallero |
Subject: |
Question about compiling mex files |
Date: |
Wed, 18 Jul 2018 21:34:27 +0200 |
Hello:
Which is the best way to tell the mex function to compile using
OpenMP? I have a mex function for Matlab and I can compile it for
Octave without problems using
mex -O3 myfunc.c
If I use
mex -O3 -fopenmp myfunc.c
I obtain no errors nor warnings and the mex function is generated, but
the code not runs in parallel as I can check using the htop utility.
How is the correct way to use OpenMP in mex files in Octave?
Thanks
--
*****************************************
José Luis García Pallero
address@hidden
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************
- Question about compiling mex files,
José Luis García Pallero <=