Commit f998aa1
committed
Add enhanced BLAS/LAPACK return code interpretation and logging
This commit builds upon PR SciML#622's verbosity system by adding:
1. Detailed BLAS/LAPACK return code interpretation
- Human-readable explanations for all BLAS/LAPACK info codes
- Categorized errors (singular_matrix, not_positive_definite, etc.)
- Operation-specific interpretations for getrf, potrf, geqrf, etc.
2. Extended logging information for BLAS operations
- Matrix properties (size, type, condition number)
- Memory usage estimates
- Performance timing metrics
- Contextual information for debugging
3. New verbosity controls
- blas_errors: Controls BLAS/LAPACK error messages (default: Warn)
- blas_info: Controls informational messages (default: None)
- blas_success: Controls success messages (default: None)
- blas_invalid_args: Controls invalid argument errors (default: Error)
- blas_timing: Controls performance timing (default: None)
4. Integration with BLISLUFactorization
- Added detailed logging to the BLIS extension
- Includes timing and error interpretation
5. Comprehensive documentation
- Updated verbosity documentation with new BLAS options
- Added section on BLAS/LAPACK return codes
- Examples demonstrating enhanced logging capabilities
6. Tests
- Added test suite for BLAS return code interpretation
- Tests for different error categories
- Verbosity integration tests
This enhancement makes debugging numerical issues much easier by providing
clear, actionable information when BLAS/LAPACK operations encounter problems.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 0ca5459 commit f998aa1
File tree
6 files changed
+497
-17
lines changed- docs/src/basics
- ext
- src
- test
6 files changed
+497
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
117 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
220 | 223 | | |
221 | 224 | | |
222 | 225 | | |
| 226 | + | |
| 227 | + | |
223 | 228 | | |
224 | 229 | | |
225 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
226 | 239 | | |
227 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
228 | 249 | | |
229 | 250 | | |
230 | 251 | | |
| |||
236 | 257 | | |
237 | 258 | | |
238 | 259 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
246 | 276 | | |
247 | 277 | | |
248 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
| |||
0 commit comments