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

cufile version #565

Merged
merged 16 commits into from
Dec 5, 2024
Merged

cufile version #565

merged 16 commits into from
Dec 5, 2024

Conversation

madsbk
Copy link
Member

@madsbk madsbk commented Dec 4, 2024

Fixes #566

To clean up and make cufile capability detection more robust, we now use cuFileGetVersion().
Should fix the nightly failure: https://github.com/rapidsai/kvikio/actions/runs/12133477083/job/33877440755

NB: cuFileGetVersion() first became available in cufile v1.8 (CTK v12.3) thus the stream and batch API detection will return false for versions older than v1.8. I think this is acceptable for robustness.

@madsbk madsbk added breaking Introduces a breaking change bug Something isn't working labels Dec 4, 2024
@madsbk madsbk marked this pull request as ready for review December 4, 2024 11:57
@madsbk madsbk requested review from a team as code owners December 4, 2024 11:57
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.

I think I understand the goals here, but can you make the PR description clearer? Something like “we observed a failure on CTK 12.0 because …”. Or file an issue for this PR.

python/kvikio/tests/test_cufile_driver.py Outdated Show resolved Hide resolved
@madsbk
Copy link
Member Author

madsbk commented Dec 4, 2024

I think I understand the goals here, but can you make the PR description clearer? Something like “we observed a failure on CTK 12.0 because …”. Or file an issue for this PR.

Added #566

@madsbk madsbk requested a review from bdice December 4, 2024 14:03
Copy link
Contributor

@wence- wence- left a comment

Choose a reason for hiding this comment

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

Tiny typo suggestion

cpp/include/kvikio/shim/cufile.hpp Outdated Show resolved Hide resolved
cpp/include/kvikio/shim/cufile_h_wrapper.hpp Outdated Show resolved Hide resolved
madsbk and others added 2 commits December 4, 2024 15:45
Co-authored-by: Lawrence Mitchell <wence@gmx.li>
@madsbk
Copy link
Member Author

madsbk commented Dec 4, 2024

Thanks @wence-, @bdice do you have anything else?

Copy link
Contributor

@vyasr vyasr left a comment

Choose a reason for hiding this comment

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

Some minor suggestions but otherwise LGTM.

cpp/include/kvikio/file_handle.hpp Outdated Show resolved Hide resolved
cpp/include/kvikio/file_handle.hpp Outdated Show resolved Hide resolved
@@ -10,6 +11,24 @@
DriverProperties = cufile_driver.DriverProperties


def libcufile_version() -> Tuple[int, int]:
"""Get the libcufile version (or zero if older than v1.8).
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor note that this returns (0, 0) and not 0 for old versions. I would suggest removing the parenthetical here and instead specifying that behavior in the Notes below.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed to:

def libcufile_version() -> Tuple[int, int]:
    """Get the libcufile version.

    Returns (0, 0) for cuFile versions prior to v1.8.

    Notes
    -----
    This is not the version of the CUDA toolkit. cufile is part of the
    toolkit but follows its own version scheme.

    Returns
    -------
    The version as a tuple (MAJOR, MINOR).
    """

cpp/include/kvikio/shim/cufile.hpp Outdated Show resolved Hide resolved
cpp/include/kvikio/shim/cufile_h_wrapper.hpp Show resolved Hide resolved
python/kvikio/kvikio/benchmarks/utils.py Outdated Show resolved Hide resolved
python/kvikio/kvikio/benchmarks/utils.py Show resolved Hide resolved
madsbk and others added 3 commits December 4, 2024 20:14
Co-authored-by: Vyas Ramasubramani <vyas.ramasubramani@gmail.com>
Co-authored-by: Bradley Dice <bdice@bradleydice.com>
@madsbk
Copy link
Member Author

madsbk commented Dec 4, 2024

Thanks everyone

madsbk and others added 2 commits December 5, 2024 08:14
Co-authored-by: jakirkham <jakirkham@gmail.com>
@madsbk
Copy link
Member Author

madsbk commented Dec 5, 2024

/merge

@rapids-bot rapids-bot bot merged commit 3d2ab00 into rapidsai:branch-24.12 Dec 5, 2024
57 checks passed
@madsbk madsbk deleted the cufile_version branch December 6, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Introduces a breaking change bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Getting undefined symbol: cuFileReadAsync on CTK 12.0
5 participants