coverage: add cuda.core tests for host, launcher cluster, strided layout, program-cache, and DLPack utils#2168
Open
rluo8 wants to merge 1 commit into
Open
coverage: add cuda.core tests for host, launcher cluster, strided layout, program-cache, and DLPack utils#2168rluo8 wants to merge 1 commit into
rluo8 wants to merge 1 commit into
Conversation
…out, program-cache, and DLPack utils
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Tests covered:
test_host.pyreprfor all threeHostforms; pickle/copy round-trip preserves the singleton via__reduce___host.pytest_launcher.pyDevicemocked); cluster branch of_to_native_launch_config_launch_config.pyxtest_program_cache.pyFileStreamsize-cap__delitem__/clear, entry-path iteration with missing/stray dirs, tmp-size accounting,touch_atimefallback + swallowed open/fstat failuresutils/_program_cache/_file_stream.pytest_strided_layout.pydense_like, repr-with-offset, min/max offset,broadcast_to,unsqueezed,repackedpack/unpack,max_compatible_itemsize_layout.pyxtest_utils.pyas_tensor_mapkwargs assembly; DLPack export round-trip over all NumPy-native dtypes + scalar/zero-volume shapes; versioned/unversioned capsule deleters;from_dlpackTypeError→unversioned fallback; CAI device-pointer/stream-ordering; DLPack C-exchange-API helpers_memoryview.pyxCoverage impact
Measured with paired full-coverage runs (no-patch baseline vs this patch):
cuda/core/overall_memoryview.pyx_host.py_launch_config.pyx_layout.pyx_file_stream.pyTesting