Skip to content

add system TBB autodetection on Unix - #178

Merged
kevinushey merged 1 commit into
RcppCore:masterfrom
Enchufa2:feature/autodetection
Jan 31, 2023
Merged

add system TBB autodetection on Unix#178
kevinushey merged 1 commit into
RcppCore:masterfrom
Enchufa2:feature/autodetection

Conversation

@Enchufa2

Copy link
Copy Markdown
Member

Simple glob-based autodetection. Not sure if these cases cover macOS though. Could you check, please?

Closes#163.

@Enchufa2

Copy link
Copy Markdown
MemberAuthor

@kevinushey Any chance of merging this any time soon?

@kevinusheykevinushey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

define(TBB_LIB_AUTO = "", TBB_INC_AUTO = "")
if (.Platform$OS.type == "unix") {
tbbLib <- Sys.glob(c(
"/usr/*/libtbb.so",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we wanted to support common macOS configurations (on arm64 machines) we could check /opt/homebrew/lib and /opt/homebrew/include/tbb.

@kevinushey
kevinushey merged commit 9a6b24e into RcppCore:masterJan 31, 2023
@kevinushey

Copy link
Copy Markdown
Contributor

(Sorry it took me so long to review this; for some reason I must've missed it a long time ago after you prepared the PR.)

@Enchufa2
Enchufa2 deleted the feature/autodetection branch January 31, 2023 21:54
@Enchufa2

Copy link
Copy Markdown
MemberAuthor

No problem, thanks!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System tbb autodetection

2 participants

@Enchufa2@kevinushey