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

quaternion dtype in cupy to benefit from GPU #231

Open
sdancette opened this issue Jun 11, 2024 · 1 comment
Open

quaternion dtype in cupy to benefit from GPU #231

sdancette opened this issue Jun 11, 2024 · 1 comment

Comments

@sdancette
Copy link

Is your feature request related to a problem? Please describe.
Feature: I would need to deal with quaternion algebra from cupy rather than from numpy.

Describe the solution you'd like
quat.as_quat_array( ) and the resulting algebra from a cupy array on GPU rather than from numpy on CPU.

Describe alternatives you've considered
My own quaternion algebra functions on cupy arrays, with a less compact syntax and presumably slower than with a proper quaternion dtype implemented for cupy.

Additional context
Same context of materials science and 3D imaging community (large datasets) as in the previous issue on float32 precision.
Now the memory issue with a 1024^3 quaternion array is even more severe here, since GPU devices typycally offer (much) less memory than CPU.

@moble
Copy link
Owner

moble commented Jun 14, 2024

Never used cupy, but again it looks like it would be much easier with quaternionic.

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

No branches or pull requests

2 participants