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

Fix/tbb cmake macro #194

Merged
merged 2 commits into from
Apr 18, 2023
Merged

Conversation

pkestene
Copy link
Contributor

Trying to fix issue #193

On a system where several nvcc toolkit are installed, this path is often an
alias to the latest installed toolkit; hence when trying to build with an older
version off nvcc you end up in a situation where the old nvcc compiler is using
new header; this situation may lead to error at link time (undefined symbols).
See issue owl-project#191 for discussion.
Currently macro owl/cmake/FindTBB.cmake is slightly out-dated because it tries
to find header task_scheduler_int.h which has been remove from TBB in version 2021.1

So currenlty, the macro fails to find recent TBB (actually OneTBB). This commit
fix this problem by first trying to detect OneTBB using find_package in CONFIG
mode, then use the old macro adapted to older TBB version.
@ingowald
Copy link
Contributor

seems to work just find in all optix versions i tested.

@ingowald ingowald merged commit 8c4d5f1 into owl-project:master Apr 18, 2023
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.

2 participants