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?

Dirk

-- 
dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to