-
Notifications
You must be signed in to change notification settings - Fork 29
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
bf.map does not work on ci32 type #130
Comments
The only thing I can think of is that there it could be related to the underlying Complex class. If you look in Complex.hpp, |
While I'm at it this also reminds me of the off-and-on problems I hit with map and mixing various complex types. It usually involves trying to work with storage types and them not getting automatically promoted when they are involved in some math. |
What all do you want to do with ci32? There are two ways to go: a pure storage type and something you can do arithmetic on. |
cb0c7a2 adds support for ci32 as a storage formation, i.e., you can work with it but it has to be converted to |
This seems reasonable to me. Assuming it's the same for ci4 / ci8 / ci16? |
Yes, that's the plan. I'm also trying to decide if it is worth the effort to build all of the coercion rules in for the |
Closing with the release of v0.10.0. |
The complex int32 type doesn't work with the
map
function at the moment:This raises a runtime error:
It looks like the
dtype2ctype_string
hasn't been implemented https://github.com/ledatelescope/bifrost/blob/8e1c0e13f8ba916ee1fc271943f7a2d0a836e849/src/array_utils.hpp#L63 (it's commented out).Int32 is probably more useful now than it was previously, as the dp4a instruction takes 8-bit inputs and accumulates into a 32-bit integer. I'll see if I can get things working, but any thoughts / comments about why this was tricky / left as a todo would be appreciated.
The text was updated successfully, but these errors were encountered: