Repository navigation
coverage: expand resource, cache, and DLPack regression coverage - #3060
Conversation
Signed-off-by: Rui Luo <[email protected]>
📝 Summary
Priority: ⬇️ Low Change: Other Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository: NVIDIA/cuda-python/.coderabbit.yaml
- Review profile: CHILL
- Plan: Enterprise
- Run ID:
0978b463-1b3d-4ef9-bdec-31e3dbe79d35
📒 Files selected for processing (13)
cuda_core/tests/graph/test_graph_definition_lifetime.pycuda_core/tests/graph/test_graph_definition_mutation.pycuda_core/tests/graph/test_graph_node_update.pycuda_core/tests/memory/test_managed_ops.pycuda_core/tests/system/test_system_events.pycuda_core/tests/test_green_context.pycuda_core/tests/test_memory.pycuda_core/tests/test_module.pycuda_core/tests/test_program.pycuda_core/tests/test_program_cache.pycuda_core/tests/test_tensor_map.pycuda_core/tests/test_texture_surface.pycuda_core/tests/test_utils_dlpack.py
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.
|
Andy-Jost
left a comment
There was a problem hiding this comment.
Thanks, this looks good. CI ran every new test without a failure, and the gated tests ran too: the co-scheduling test passed on all six RTX PRO 6000 jobs with a CUDA 13 build. Two suggestions:
test_vmm_modify_allocation_rejects_non_buffer:object()stops at Cython's check of thebuf: Bufferargument, so the method's ownisinstance(buf, VirtualMemoryBuffer)check still has no test. That check is what makes thevmm_range()call valid. Could you add a case that passes aBufferfrom another resource, such asinit_cuda.memory_resource, and matchesbuf must be a VirtualMemoryBuffer?test_from_dlpack_bfloat16_requires_ml_dtypes: could you userun_python_snippetfromcuda_python_test_helpers.subprocess_runner, as the other snippet tests do? It runs the child in an empty directory and shows both output streams on failure, so-Iis not needed.
Signed-off-by: Rui Luo <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository: NVIDIA/cuda-python/.coderabbit.yaml
- Review profile: CHILL
- Plan: Enterprise
- Run ID:
a184d412-858e-40fd-b9b1-84c6c80eeb61
📒 Files selected for processing (2)
cuda_core/tests/test_memory.pycuda_core/tests/test_utils_dlpack.py
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.
|
Thanks @Andy-Jost . I have updated the tests and addressed both suggestions. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
cuda_core/tests/test_program.py (1)
558-573: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winsuggestion: Assert sink delivery.
The valid NVVM fixture produces an empty log, so this test only proves that
logs=is accepted. A regression that ignores the sink can still return valid PTX and pass. Use a deterministic non-empty NVVM log case or a log-retrieval seam, then assert the sink content.
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository: NVIDIA/cuda-python/.coderabbit.yaml
- Review profile: CHILL
- Plan: Enterprise
- Run ID:
36d79019-5119-4b8c-af68-07f134fafab0
📒 Files selected for processing (8)
cuda_core/tests/graph/test_graph_definition_lifetime.pycuda_core/tests/memory/test_managed_ops.pycuda_core/tests/test_green_context.pycuda_core/tests/test_memory.pycuda_core/tests/test_module.pycuda_core/tests/test_program.pycuda_core/tests/test_tensor_map.pycuda_core/tests/test_utils_dlpack.py
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.
Description
Expand cuda.core regression coverage with 35 new tests and additional cases in existing tests.
Changes are limited to tests and test comments.
Validation