Skip to content

Cache the memory back-end per device - #630

Open
nishagoswamii wants to merge 1 commit into
JuliaGPU:mainfrom
nishagoswamii:ng/memory-backend-per-device
Open

nishagoswamii wants to merge 1 commit into
JuliaGPU:mainfrom
nishagoswamii:ng/memory-backend-per-device

Conversation

@nishagoswamii

Copy link
Copy Markdown

memory_backend() still checks task-local storage first, because users set :CLMemoryBackend there to override the back-end, as VkFFT.jl's error message tells them to.
A change to the default_memory_backend preference during a session used to apply to new tasks, and now needs a Julia restart once the device's back-end is known.
The other two preferences, llvm_to_spirv_backend and nonblocking_synchronization, always need one.

Part of #524.

@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.68%. Comparing base (da8eb15) to head (a819757).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #630      +/-   ##
==========================================
- Coverage   90.78%   88.68%   -2.11%     
==========================================
  Files          18       18              
  Lines        1748     1688      -60     
==========================================
- Hits         1587     1497      -90     
- Misses        161      191      +30     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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