Skip to content

Despecialize blas_mul! for improved compilation time#73

Open
lkdvos wants to merge 3 commits into
mainfrom
blas-conj
Open

Despecialize blas_mul! for improved compilation time#73
lkdvos wants to merge 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.

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