Skip to content

Uses complex dtypes in cufinufft py tests #705

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

Merged
merged 5 commits into from
Jun 27, 2025

Conversation

janden
Copy link
Collaborator

@janden janden commented Jun 24, 2025

Fixes #413.

@janden janden force-pushed the cufinufft_test_dtypes branch from bbd0bce to dd50854 Compare June 24, 2025 20:00
@janden janden requested a review from lu1and10 June 24, 2025 21:25
@janden janden marked this pull request as ready for review June 24, 2025 21:25
Copy link
Member

@lu1and10 lu1and10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think it's good, just need to make the new merged type3 tests run successfully.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems jenkins failed on the newly merged test_cufinufft3_simple test https://jenkins.flatironinstitute.org/blue/organizations/jenkins/finufft/detail/PR-705/4/pipeline
I guess we need to merge master to this branch do the change for test_cufinufft3_simple too.
And real_dtype seems not used anywhere.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we need to merge master to this branch do the change for test_cufinufft3_simple too.

Ok I rebaed on top of master and made the changes. Let's see how the tests do.

And real_dtype seems not used anywhere.

I don't quite understand. It's used to generate the correct dtypes for the frequencies, no? See here:

k = gen_nu_pts(M, dim=dim).astype(real_dtype)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks, all the jenkins tests pass. I think it's good to merge.
I just happen to see the two variables real_dtype defined in file test_simple.py are not used.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see. I've removed them now. Thanks!

Will wait for tests to finish and then merge.

@janden janden force-pushed the cufinufft_test_dtypes branch from ccba36c to c9e6a27 Compare June 27, 2025 10:02
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks, all the jenkins tests pass. I think it's good to merge.
I just happen to see the two variables real_dtype defined in file test_simple.py are not used.

@janden janden merged commit 3ce7e4b into flatironinstitute:master Jun 27, 2025
150 checks passed
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 this pull request may close these issues.

dtypes in gpu python tests should use complex64/128 not float32/64.
3 participants