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

Nixon, Michelle Pistner m@p5672 @end|ng |rom p@u@edu
Thu May 30 18:30:29 CEST 2024


Hi all,

First off, I want to thank you all for your help! In case it's useful, I was able to solve my issue by using Ivan's suggestion from May 23rd.

Best,
Michelle
________________________________
From: Duncan Murdoch <murdoch.duncan using gmail.com>
Sent: Thursday, May 23, 2024 12:04 PM
To: Dirk Eddelbuettel <edd using debian.org>
Cc: Nixon, Michelle Pistner <map5672 using psu.edu>; Kurt.Hornik using wu.ac.at <Kurt.Hornik using wu.ac.at>; r-package-devel using r-project.org <r-package-devel using r-project.org>
Subject: Re: [R-pkg-devel] Compile issues on r-devel-linux-x86_64-debian-clang with OpenMP

[You don't often get email from murdoch.duncan using gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

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


	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list