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

Update README.md with TBB_FIND_PACKAGE variable info #1471

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

sarathnandu
Copy link
Contributor

@sarathnandu sarathnandu commented Aug 6, 2024

Description

Add a comprehensive description of proposed changes

Fixes # - issue number(s) if exists

Type of change

Choose one or multiple, leave empty if none of the other choices apply

Add a respective label(s) to PR if you have permissions

  • bug fix - change that fixes an issue
  • new feature - change that adds functionality
  • tests - change in tests
  • infrastructure - change in infrastructure and CI
  • [x ] documentation - documentation update

Tests

  • added - required for new features and some bug fixes
  • not needed

Documentation

  • [x ] updated in # - add PR number
  • needs to be updated
  • not needed

Breaks backward compatibility

  • Yes
  • No
  • Unknown

Notify the following users

List users with @ to send notifications

Other information

@sarathnandu sarathnandu requested review from aepanchi and isaevil August 6, 2024 21:02
cmake/README.md Outdated
@@ -10,6 +10,7 @@ TBB_SANITIZE:STRING - Sanitizer parameter, passed to compiler/linker
TBB_SIGNTOOL:FILEPATH - Tool for digital signing, used in post-install step for libraries if provided.
TBB_SIGNTOOL_ARGS:STRING - Additional arguments for TBB_SIGNTOOL, used if TBB_SIGNTOOL is set.
TBB_BUILD:BOOL - Enable Intel(R) oneAPI Threading Building Blocks (oneTBB) build (ON by default)
DTBB_FIND_PACKAGE - Enable search for external oneTBB using find_package instead of build from sources (OFF by default)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
DTBB_FIND_PACKAGE - Enable search for external oneTBB using find_package instead of build from sources (OFF by default)
TBB_FIND_PACKAGE - Enable search for external oneTBB using find_package instead of build from sources (OFF by default)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the variable.

cmake/README.md Outdated
Comment on lines 238 to 241
1. Set TBB_FIND_PACKAGE=ON
2. Let CMake know where to search for TBBConfig, e.g. specify the location of ``TBBConfig.cmake`` in `TBB_DIR` (for more details about search paths, see [find_package](https://cmake.org/cmake/help/latest/command/find_package.html)).
3. Use [find_package](https://cmake.org/cmake/help/latest/command/find_package.html) to find oneTBB.
4. Use provided variables and/or imported targets (described below) to work with the found oneTBB.
Copy link
Contributor

Choose a reason for hiding this comment

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

These are the steps for using TBB in different projects using find_package functionality. No need to update anything here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the Set TBB_FIND_PACKAGE=ON from instructions.

cmake/README.md Outdated
@@ -268,7 +270,7 @@ Variable | Description
`TBB_IMPORTED_TARGETS` | All created oneTBB imported targets (not supported for builds from source code)

Starting from [oneTBB 2021.1](https://github.com/oneapi-src/oneTBB/releases/tag/v2021.1), GitHub* release TBBConfig files in the binary packages are located under `<tbb-root>/lib/cmake/TBB`.
For example, `TBB_DIR` should be set to `<tbb-root>/lib/cmake/TBB`.
For example, 'TBB_FIND_PACKAGE' should be set to ON and `TBB_DIR` should be set to `<tbb-root>/lib/cmake/TBB`.
Copy link
Contributor

Choose a reason for hiding this comment

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

See the comment above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed TBB_FIND_PACKAGE from the instructions.

Copy link
Contributor

@isaevil isaevil left a comment

Choose a reason for hiding this comment

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

LGTM

@sarathnandu sarathnandu merged commit 182e8e7 into master Aug 14, 2024
24 of 25 checks passed
@sarathnandu sarathnandu deleted the TBB_FIND_PACKAGE_readme_updates branch August 14, 2024 14:52
kboyarinov pushed a commit that referenced this pull request Oct 1, 2024
* Update README.md with TBB_FIND_PACKAGE variable info
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