Skip to content

Despecialize blas_mul! for improved compilation time#73

Merged
lkdvos merged 3 commits into
mainfrom
blas-conj
Jul 15, 2026
Merged

Despecialize blas_mul! for improved compilation time#73
lkdvos merged 3 commits into
mainfrom
blas-conj

Conversation

@lkdvos

@lkdvos lkdvos commented Jul 14, 2026

Copy link
Copy Markdown
Member

This is a slight refactor of the BLAS multiplication strategies that makes it such that we can avoid compiling these methods for a variety of op flags. The main point being that since BLAS takes these as a (runtime) Char instead of compile time flag, there really is no good reason to keep this specialized, and so I simply pulled out the flag earlier in the callchain.
Additionally, I converted the scalar types before the function body, again avoiding unnecessary recompilation.

Finally, I've added some precompilation instructions, since these are exercised by TensorOperations paths so this hopefully takes some of the workload from there.

@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 61.36364% with 17 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/linalg.jl 32.00% 17 Missing ⚠️
Files with missing lines Coverage Δ
src/Strided.jl 42.85% <ø> (ø)
src/mapreduce.jl 81.39% <100.00%> (ø)
src/precompile.jl 100.00% <100.00%> (ø)
src/linalg.jl 71.84% <32.00%> (+1.74%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/precompile.jl Outdated
@lkdvos lkdvos enabled auto-merge (squash) July 14, 2026 23:10
@lkdvos lkdvos merged commit dda55df into main Jul 15, 2026
8 of 12 checks passed
@lkdvos lkdvos deleted the blas-conj branch July 15, 2026 00:06
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.

2 participants