Skip to content

OpenMP not detected (fixest) #1

@grantmcdermott

Description

@grantmcdermott

Hi James,

Thanks for maintaining all of these very useful tools.

I might be misunderstanding, but I was surprised to find after (1) enabling the OpenMP runtime using your install-openmp.sh script and (2) setting up the recommended ~/.R/Makevars configuration (with all tests passing)... that installing the CRAN binary version of fixest still reports only 1 thread via fixest::getFixest_nthreads().

(When I install fixest from source, it correctly detects and uses multiple threads.)

My understanding from your blog post was that installing the OpenMP runtime should enable multithreading for binary packages that were compiled with OpenMP support. Is this correct?

Or, does this suggest that CRAN's Mac binary of fixest wasn't actually compiled with OpenMP support to begin with, despite having the required src/Markvars spec?

PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -DSTRICT_R_HEADERS
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS)

As one of the fixest maintainers, I'm trying to understand whether this is an issue with CRAN's Mac build environment or if there's something else we should be doing on our end to ensure that our binary builds have OpenMP support.

Thanks for any insights you can provide!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions