Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert scalar arguments to btas::contract and similar functions when needed to the type of the result #163

Closed
evaleev opened this issue Oct 9, 2023 · 0 comments · Fixed by #164

Comments

@evaleev
Copy link
Member

evaleev commented Oct 9, 2023

most kernels expect type of scalars to match the types of arguments/results, thus

float* A, B, C;
btas::contract(1.0, A, {1, 2}, B, {2, 3}, 0.0, C, {1, 3});

fails to compile.

need to convert scalars to the type of result when dispatching to BLAS/LAPACK kernels

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 a pull request may close this issue.

1 participant