Skip to content

Adding Preferences.jl as Dep - #339

Open
cmhamel wants to merge 2 commits into
mainfrom
preferences
Open

Adding Preferences.jl as Dep#339
cmhamel wants to merge 2 commits into
mainfrom
preferences

Conversation

@cmhamel

@cmhamel cmhamel commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Adding Preferences.jl as dep to allow for setting up machine/architecture specific settings without having to touch source code.

Now consumer packages (e.g. Carina.jl) can provide a toml file LocalPreferences.toml to override the default kernel block size of 256 for all the assembly methods currently in the package except for the WIP block assemblers for mixed fem spaces.

An example file that overrides the matrix free action and vector kernel block sizes would look like

[FiniteElementContainers]
assemble_matrix_free_action_gpu_block_size = 64
assemble_vector_gpu_block_size = 512

This can be used to set optimal system settings for different machines.

@cmhamel
cmhamel requested a review from lxmota August 25, 2026 03:42
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 68.48%. Comparing base (ad91ed8) to head (9253fa3).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/assemblers/WeaklyEnforcedBCs.jl 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #339      +/-   ##
==========================================
- Coverage   68.99%   68.48%   -0.51%     
==========================================
  Files          55       55              
  Lines        6525     6591      +66     
==========================================
+ Hits         4502     4514      +12     
- Misses       2023     2077      +54     

☔ 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.

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