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

Support static builds of nvbench with nvml enabled. #148

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

robertmaynard
Copy link
Collaborator

To do this we need to ensure that the nvml init handler is both contained in the library/executable that uses nvbench.

The original implementation fails since the singleton can be dropped since it has no usages. So instead we move to a function static which we ensure will always be used.

To do this we need to ensure that the nvml init handler is
both contained in the library/executable that uses nvbench.

The original implementation fails since the singleton can be dropped
since it has no usages. So instead we move to a function static
which we ensure will always be used.
@robertmaynard robertmaynard added type: bug: functional Does not work as intended. helps: rapids Helps or needed by RAPIDS. labels Nov 14, 2023
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

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

This makes sense to me. Thanks!

nvbench/internal/nvml.cuh Outdated Show resolved Hide resolved
Co-authored-by: Bradley Dice <bdice@bradleydice.com>
rapids-bot bot pushed a commit to rapidsai/rapids-cmake that referenced this pull request Nov 14, 2023
Provide NVIDIA/nvbench#148 as a patch to the nvbench that rapids-cmake provides

Authors:
  - Robert Maynard (https://github.com/robertmaynard)

Approvers: None

URL: #486
rapids-bot bot pushed a commit to rapidsai/cudf that referenced this pull request Nov 14, 2023
Port NVIDIA/nvbench#148 to cudf so that nvbench benchmarks work now that we always use a static version of nvbench.

Authors:
  - Robert Maynard (https://github.com/robertmaynard)

Approvers:
  - Bradley Dice (https://github.com/bdice)

URL: #14411
Copy link
Collaborator

@alliepiper alliepiper left a comment

Choose a reason for hiding this comment

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

lgtm

@alliepiper alliepiper merged commit acc8239 into NVIDIA:main Nov 15, 2023
@robertmaynard robertmaynard deleted the support_nvml_with_static_builds branch November 15, 2023 15:35
rapids-bot bot pushed a commit to rapidsai/rapids-cmake that referenced this pull request Nov 20, 2023
With NVIDIA/nvbench#148 being merged we can drop our custom patch for nvbench and use latest upstream.

Authors:
  - Robert Maynard (https://github.com/robertmaynard)

Approvers:
  - Bradley Dice (https://github.com/bdice)

URL: #488
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
helps: rapids Helps or needed by RAPIDS. type: bug: functional Does not work as intended.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants