Skip to content

Do we need -ltbb -ltbbmalloc on Linux and macOS? #129

Description

@krlmlr

Without these, compilation fails in a package that uses parallelReduce() with a Worker . (Compilation works on Windows with the same package.) I haven't checked if work happens in parallel when I add these flags.

RcppParallel::RcppParallelLibs()
RcppParallel:::tbbLdFlags()
#> [1] ""

Created on 2020-08-30 by the reprex package (v0.3.0)

Example package

I was unable to whip up a reprex using Rcpp::compileFunction() .

Error message

undefined symbol: _ZN3tbb4task13note_affinityEt

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