Closed coreylowman closed 1 year ago
yeah, i'm aware of this. the way i intend gemm
to be used is that you don't use it with the type as is.
instead, you can write your own matmul wrapper that takes the half type you want. (in this case f16 from git), cast the pointers to the ones of the type that gemm
works with (exposed as gemm::f16
), then call gemm
with those pointers.
this is what i do in faer
for complex number support
Ohhhhh wow that is clever! Thank you I'll try this out
Description
I'm not sure if this is a bug or something else, but I'm hitting this explicit panic in gemm dispatch when using f16.
This is because I'm using f16 from
half-rs
main branch (half = { git = "https://github.com/starkat99/half-rs.git", branch = "main", optional = true, features = ["num-traits", "rand_distr"] }
, whereas this crate is usinghalf-rs
from crates.io.You can see this results in two different versions being compiled by
cargo tree
:The following shows that the two type ids are different for me:
Outputs:
Request
I'm not really sure. Do you have thoughts on best approach here? This could also be an issue if using different versions for
num_complex
crate.