You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct the usage section to emphasize automatic algorithm selection
- Remove manual algorithm specification examples
- Emphasize that users just call solve(prob)
- Explain that autotuning improves the default heuristics
- Clarify that sharing results benefits everyone's automatic selection
- Focus on the simplicity of just using solve() with better defaults
Copy file name to clipboardExpand all lines: news/2025/08/16/linearsolve_autotuning.md
+11-15Lines changed: 11 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,32 +103,28 @@ For complex arithmetic, we found that specialized algorithms matter even more:
103
103
-`LUFactorization` outperforms vendor libraries by **2x** for ComplexF32
104
104
- Apple Accelerate struggles with complex numbers, making pure Julia implementations preferable
105
105
106
-
## Applying Your Results: Using the Optimal Algorithms
106
+
## Using the Results: Automatic Algorithm Selection
107
107
108
-
Once you've identified the best algorithms for your system through autotuning, you can directly use them in your code:
108
+
The beauty of LinearSolve.jl's autotuning system is that you don't need to manually specify algorithms. The benchmark results from the community directly improve the default heuristics, so you simply use:
109
109
110
110
```julia
111
111
using LinearSolve
112
112
113
-
#Based on your autotuning results, choose the appropriate algorithm
113
+
#Create your linear problem
114
114
A =rand(100, 100)
115
115
b =rand(100)
116
-
117
-
# For small matrices on Apple Silicon (from autotuning)
#Just solve - LinearSolve automatically picks the best algorithm!
119
+
sol=solve(prob) # Uses optimized heuristics based on community benchmarks
129
120
```
130
121
131
-
The autotuning results help inform LinearSolve.jl's internal heuristics, which are continuously improved based on community benchmark submissions. Future versions may support automatic preference setting based on your hardware configuration.
122
+
The autotuning results you and others share help LinearSolve.jl make intelligent decisions about:
123
+
- When to use pure Julia implementations vs vendor libraries
124
+
- Matrix size thresholds for GPU acceleration
125
+
- Special handling for complex numbers and sparse matrices
126
+
127
+
By contributing your benchmark results with `share_results()`, you're directly improving the default algorithm selection for everyone. The more diverse hardware configurations we collect, the smarter the automatic selection becomes.
132
128
133
129
## Performance Visualization: A Picture Worth 1000 Benchmarks
0 commit comments