Skip to content

[d3] Alternative to float128 for Jacobi construction #166

@kburns

Description

@kburns

It looks like ARM processors like the ones on the new macbooks do not support np.float128. As a first step, we can change np.float128 to np.longdouble which will fallback to np.float64 on architectures without np.float128, so the code will still run, though we probably want to emit warnings in this case, since we know it will cause problems at moderate resolutions.

Of course we could just not support ARM... but I don't think that's a great idea, since all the macs are going in that direction and the performance is really good (I'm seeing 3x+ speedup over my intel macbook in running Dedalus).

Longer term I think this means we might need a new strategy for our Jacobi recursions, etc. We might be able to find/use software-based high-precision library like mpmath.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions