Skip to content

Py tests refactor lifecycle - #81

Merged
massimim merged 4 commits into
py-local-srcfrom
py-tests-refactor-lifecycle
Nov 17, 2026
Merged

massimim merged 4 commits into
py-local-srcfrom
py-tests-refactor-lifecycle

Conversation

@massimim

Copy link
Copy Markdown
Collaborator

No description provided.

massimim and others added 4 commits November 17, 2026 21:21
Make concurrent block/voxel registration thread-safe and add gUt_sparseBitMask coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
CudaDriver retains the device primary context instead of creating a private one, so destroying a Backend no longer leaves Warp with a dead cuda:N.M device (error 709 / SIGSEGV on the next wp.synchronize). run_kernel skips zero-sized grids (e.g. empty mGrid levels) instead of aborting in cuLaunchKernel. Container deletion releases its resources.

Co-authored-by: Cursor <cursoragent@cursor.com>
neon.init() is idempotent (kernel cache cleared once unless asked) and neon.is_initialized() is added. Backend, Skeleton, Container, bGrid and bField get idempotent cleanup(), context managers and guarded __del__; use after cleanup raises RuntimeError. Remove the broken py/neon/test package.

Co-authored-by: Cursor <cursoragent@cursor.com>
…tions

Split tests into smoke/, dense/, block/, mres/ and lifecycle/ packages backed by a neon_testing helper package (NeonTestCase with deterministic cleanup, shared masks, grids and NeonTest* operators). Former demos now assert results; Jacobi is checked against NumPy; the sparse test runs; artifacts are opt-in. Add backend/container/init lifecycle tests. run_tests.sh runs discover per area, with --isolated for per-module runs. Move benchmark_axpy to py/benchmarks.

Co-authored-by: Cursor <cursoragent@cursor.com>
@massimim
massimim merged commit aba6432 into py-local-src Nov 17, 2026
12 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant