[R-pkg-devel] Compile issues on r-devel-linux-x86_64-debian-clang with OpenMP

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Thu May 23 18:04:06 CEST 2024


On 2024-05-23 11:49 a.m., Dirk Eddelbuettel wrote:
> 
> On 22 May 2024 at 14:03, Duncan Murdoch wrote:
> | On 2024-05-22 10:18 a.m., Dirk Eddelbuettel wrote:
> | >
> | > On 22 May 2024 at 13:54, Nixon, Michelle Pistner wrote:
> | > | Thank you both for your responses and help! Kurt-- your message makes a lot of
> | > | sense. I'll try to debug soon and will reach out if I have more questions.
> | >
> | > Interesting.
> | >
> | > Kurt, is there a recommended way to test for this (rare, I may add) case of
> | > 'OpenMP present but usage verboten by R' ?  I do not see an option for 'R CMD
> | > config' jumping out, and there is no pkg-config file either.
> | >
> | > Testing via 'nm' as you show is possible but not exactly 'portable'.  So any
> | > suggestions as to what to condition on here?  Michelle did AFAICT the Right
> | > Thing (TM) by 'borrowing' from the fairly mature check in RcppArmadillo.
> |
> | Not that I know much about writing configure tests, but won't
> | src/include/config.h in the R build dir have "HAVE_OPENMP" defined if
>                         ^^^^^^^^^^^^^^^^^^
> | OpenMP is supported?
> 
> I think what Michelle and I are after is for an _installed_ version of R to
> tell us if we can, or cannot, use OpenMP.  Maybe capabilities() needs and extension?

Right, sorry.  I thought that file was distributed, but it's Rconfig.h 
that gets installed, and it only has a subset of the definitions.

Duncan



More information about the R-package-devel mailing list