Skip to content

vtk_compare: three checks out of date since 0.7 - #521

Merged
berkgeveci merged 1 commit into
Kitware:mainfrom
berkgeveci:bench/vtk-compare-checks
Dec 6, 2026
Merged

berkgeveci merged 1 commit into
Kitware:mainfrom
berkgeveci:bench/vtk-compare-checks

Conversation

@berkgeveci

Copy link
Copy Markdown
Collaborator

The 0.8 round on Windows compared 0.8 with 0.6 using benchmarks/vtk_compare (step 11) and found three checks in the harness that are out of date since 0.7. None of them is a fault in Tack.

  • External faces failed every check. vtkGeometryFilter(merging=False) keeps every input point, while since 0.7 extract_surface keeps only the points its faces use: on 10k tets, 866 points against VTK's 2197. summary() now counts the points the cells use, on both sides.
  • Point to cell timed different work on each side. On the Tack side it timed project's integral average, a quadrature over each cell and the default since 0.7, which was 30x 0.6's time. On the VTK side it timed vtkPointDataToCellData's mean of a cell's points. The pair now passes average="nodes".
  • Cell volume's warm runs read cell_geometry back from the mesh (mesh_kept), so they looked 1000x faster than 0.6. A pair whose result is kept with the mesh (Pair.kept_with_mesh) is now timed warm on a new dataset over the same topology, with the setup outside the timing.

run.py's docstring now also says that TACK_CPU_THREADS changes nothing there, since --config cpuN sets Tack's threads.

Checked on macOS with --config cpu2 --sizes 10k --meshes hex,tet and the external faces, cell volume, point to cell, contour and clip pairs: 18 of 18 checks ok. Cell volume's warm time is now about its fresh time, and the external-faces point counts are equal.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GG7WYUWKreUuUnumV7zzqb

…l volume's warm time computed

Found by the 0.8 round on Windows, against 0.6 (step 11):

- external faces failed every check: vtkGeometryFilter(merging=False) keeps
  every input point, and since 0.7 extract_surface keeps only the points its
  faces use. summary() counts the points the cells use, on both sides.
- point to cell timed project's integral average (a quadrature, the default
  since 0.7) against vtkPointDataToCellData's mean of a cell's points:
  average="nodes" is the same work.
- cell volume's warm runs read cell_geometry back from the mesh (mesh_kept),
  1000x "faster" than 0.6: a pair whose result is kept with the mesh
  (Pair.kept_with_mesh) is timed warm on a new dataset over the same
  topology.

run.py also says TACK_CPU_THREADS changes nothing there: --config cpuN sets
Tack's threads.
@berkgeveci
berkgeveci added this pull request to the merge queue Dec 6, 2026
Merged via the queue into Kitware:main with commit f75ca29 Dec 6, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant