coverage: add cuda.core tests for graph, IPC, launcher, program, and DLPack - #2728
Open
rluo8 wants to merge 1 commit into
Open
coverage: add cuda.core tests for graph, IPC, launcher, program, and DLPack#2728rluo8 wants to merge 1 commit into
rluo8 wants to merge 1 commit into
Conversation
…DLPack Signed-off-by: Rui Luo <ruluo@nvidia.com>
rluo8
force-pushed
the
test/expand-cuda-core-coverage
branch
from
August 28, 2026 09:27
1dab946 to
21f1913
Compare
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
Adds focused unit tests across
cuda.core, targeting input-validation branches, error paths, and object-lifecycle behavior that were previously uncovered. All tests are real-path: host-only tests exercise pure helpers / argument validation directly, and GPU-required tests use the existing fixtures and skips. No production changes.Measured effect on
cuda/core/line coverage: about +1.65%, +208 lines. Largest gains in_program.pyx,graph/_subclasses.pyx,_memory/_ipc.pyx,_memoryview.pyx,_kernel_arg_handler.pyx, andgraph/_graph_builder.pyx.Note that the coverage numbers are for
cuda/core/only, combined across local systems with Linux, Windows, H800, B10, and B100.graph/test_graph_builder.pyjointype check;__cuda_stream__after close; capture guards (end_building/debug_dot_print/callback/create_condition/embed/if_then); factory-onlyGraphBuilder/Graph;close()ends an active capturegraph/test_graph_definition.pyAllocNodereconstructsmemory_typefrom the driver via a pred walk (CUDA_ERROR_NOT_SUPPORTEDskip)graph/test_graph_definition_lifetime.py_create_from_driverfor memcpy / event record / event wait / freegraph/test_graph_node_update.pyExecutableGraphNode; executable-noderepr; clustered/cooperativeupdatereject; ctypes host-callbackreprmemory_ipc/test_errors.pyfrom_allocation_handle;ForkingPicklerfd dup; registry dedup of repeated imports (Linux)test_launcher.pyprepare_numpy_argfallback (kernel readback);CUgraphConditionalHandlepacked as uint64test_memory.pyBuffer()forbidden; context-manager close; abstractMemoryResourcestubs;copy_to()without a memory resourcetest_optional_dependency_imports.pytest_program.pydefine_macroerror; each NVVM-unsupported option; NVRTCas_bytessequence flags; debug temp-write fallback;use_libdeviceresolves__nv_sintest_utils.py.view();view(dtype=)itemsize mismatchtest_utils_dlpack.pystream=None; versioned readonly; malformed dtype; C-exchange API NULL/scalar/device-accessible cases