[Bioc-devel] OpenMP on OS X

Martin Morgan martin.morgan at roswellpark.org
Fri Apr 15 18:02:03 CEST 2016



On 04/15/2016 11:28 AM, Vincent Carey wrote:
> other packages use
>
> #ifdef _OPENMP
>
> #include <omp.h>
>
> #endif
>
>
> have you tried that?

And additional details at

 
https://cran.r-project.org/doc/manuals/r-release/R-exts.html#OpenMP-support

>
> On Fri, Apr 15, 2016 at 11:21 AM, Aaron Taudt <aaron.taudt at gmail.com> wrote:
>
>> Hi,
>>
>> I am using openmp support in my C++ code and it builds just fine on Windows
>> and Linux. The morelia build output for OS X however yields the following
>> error:
>>
>> In file included from ./R_interface.h:5:
>> ./scalehmm.h:16:10: fatal error: 'libiomp/omp.h' file not found
>> #include <libiomp/omp.h> // parallelization options on mac
>>           ^
>> 1 error generated.
>>
>> I use the following code to include the omp.h for OS X:
>>
>> #if defined TARGET_OS_MAC || defined __APPLE__
>> #include <libiomp/omp.h> // parallelization options on mac
>> #elif defined __linux__ || defined _WIN32 || defined _WIN64
>> #include <omp.h> // parallelization options
>> #endif
>>
>> What is the correct way to enable the openMP support for OS X?
>>
>> Regards,
>> Aaron
>>
>>          [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> Bioc-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>>
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> Bioc-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>


This email message may contain legally privileged and/or confidential information.  If you are not the intended recipient(s), or the employee or agent responsible for the delivery of this message to the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or use of this email message is prohibited.  If you have received this message in error, please notify the sender immediately by e-mail and delete this email message from your computer. Thank you.



More information about the Bioc-devel mailing list