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

TST refactor tests #96

Merged
merged 6 commits into from
Oct 23, 2023
Merged

TST refactor tests #96

merged 6 commits into from
Oct 23, 2023

Conversation

eickenberg
Copy link
Collaborator

@eickenberg eickenberg commented Oct 20, 2023

Consolidate tests

They currently run in 7:51 on cpu on my machine

TODO:

  • add cuda tests back
  • (potentially undo the cartesian product of isign and fftshift and distribute these settings randomly throughout the other configs) won't do this

Copy link
Collaborator

@WardBrian WardBrian left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

Comment on lines 64 to 65
@pytest.mark.parametrize("N_and_dim", Ns_and_dims)
def test_t1_forward_CPU(N_and_dim) -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you split these so it is two arguments N and dim for both of these tests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, and then @pytest.mark.parametrize("N, dims", Ns_and_dims) ?

Copy link
Collaborator

@WardBrian WardBrian left a comment

Choose a reason for hiding this comment

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

This is a dramatic improvment!

The CUDA tests seem quite slow (~3x the CPU times), maybe worth looking into another time?

@WardBrian WardBrian merged commit 1f77130 into main Oct 23, 2023
5 checks passed
@WardBrian WardBrian deleted the mike-refactor-tests branch October 23, 2023 19:25
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.

2 participants