Skip to content

[FIX] Ensure tensors consistently move to backend device and add tests for GPU-specific behavior - #90

Merged
Leguark merged 4 commits into
mainfrom
keops_race_condition
Sep 5, 2026
Merged

[FIX] Ensure tensors consistently move to backend device and add tests for GPU-specific behavior#90
Leguark merged 4 commits into
mainfrom
keops_race_condition

Conversation

@Leguark

@Leguark Leguark commented Jul 27, 2026

Copy link
Copy Markdown
Member

[FIX] Ensure tensors consistently move to backend device and add tests for GPU-specific behavior

Aligns tensor device in _repeat and _array helpers to backend settings. Adds regression tests to validate PyTorch GPU device handling and tensor movement in preprocessing and repeated operations.

[ENH] Add concurrency safety for mutable options and enhance octree-level handling

Introduces thread-safe handling of mutable option states to prevent collisions during concurrent computations. Adds parameterized octree-level support in tests and refactors option initialization for request-level isolation. Includes validations for stacked kernel dimension mismatches and updates relevant symbolic evaluator logic.

Leguark commented Sep 5, 2026

Copy link
Copy Markdown
Member Author

Merge activity

  • Sep 5, 9:11 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Sep 5, 9:13 AM UTC: Graphite rebased this pull request as part of a merge.
  • Sep 5, 9:28 AM UTC: @Leguark merged this pull request with Graphite.

@Leguark
Leguark changed the base branch from snapping to graphite-base/90 September 5, 2026 09:11
@Leguark
Leguark changed the base branch from graphite-base/90 to main September 5, 2026 09:11
…s for GPU-specific behavior

Aligns tensor device in `_repeat` and `_array` helpers to backend settings. Adds regression tests to validate PyTorch GPU device handling and tensor movement in preprocessing and repeated operations.
…evel handling

Introduces thread-safe handling of mutable option states to prevent collisions during concurrent computations. Adds parameterized octree-level support in tests and refactors option initialization for request-level isolation. Includes validations for stacked kernel dimension mismatches and updates relevant symbolic evaluator logic.
…functions`, `main_server_pro`) and related dependencies

Cleans up redundant code and unused FastAPI server utilities. Prepares the codebase for better maintainability and focuses on removing legacy server-side logic.
…diagonal matrix construction

Replaces repetitive `arange` implementations with a unified method in `BackendTensor`. Refactors covariance assemblers to leverage the centralized logic for improved readability and maintainability.
@Leguark
Leguark force-pushed the keops_race_condition branch from 18a2912 to abea548 Compare September 5, 2026 09:12
@Leguark
Leguark merged commit 88581b3 into main Sep 5, 2026
2 of 5 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