Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add system TBB autodetection on Unix #178

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

Enchufa2
Copy link
Member

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

Closes #163.

@Enchufa2
Copy link
Member Author

@kevinushey Any chance of merging this any time soon?

Copy link
Contributor

@kevinushey kevinushey left a comment

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
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:master Jan 31, 2023
@kevinushey
Copy link
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
Member Author

No problem, thanks!

Sign up for free to 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