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

Allow Nz=2,3,4,5 for MFM images #334

Merged
merged 3 commits into from
Oct 21, 2024
Merged

Allow Nz=2,3,4,5 for MFM images #334

merged 3 commits into from
Oct 21, 2024

Conversation

JonathanMaes
Copy link
Contributor

@JonathanMaes JonathanMaes commented Oct 3, 2024

This PR addresses issue #93.

It is unclear why the culprit, the now removed AssertMsg which checks if Nz is even, exists. Without it, all tests still run fine and MFM images still look as expected for the affected values of Nz.

There is another similar AssertMsg checking if Nx and Ny are even, but also for those everything seems to work as expected if the assert is deactivated. This is not yet included in the PR. Would it be safe to remove this too?

@JonathanMaes JonathanMaes requested a review from JLeliaert October 3, 2024 14:50
@JonathanMaes JonathanMaes self-assigned this Oct 3, 2024
@JonathanMaes JonathanMaes added this to the 3.11 milestone Oct 10, 2024
@JonathanMaes JonathanMaes mentioned this pull request Oct 14, 2024
2 tasks
@JonathanMaes
Copy link
Contributor Author

Checked with odd Nx, Ny and all Nz<=10. Tested with a binary compiled on CUDA v12.6 for CC=8.6, and on CUDA v10.0 (the lowest we will support from 3.11 onwards) for CC=6.1. Both give identical and expected results. If the reason for the even kernel size requirement was CUDA-related, it seems to have been addressed before v10.0.

Therefore, I will merge this change, if anyone still gets errors related to this we can always rollback.

@JonathanMaes JonathanMaes merged commit 7f79c95 into 3.11 Oct 21, 2024
@JonathanMaes JonathanMaes deleted the bugfix/MFM_Nz branch October 21, 2024 07:37
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.

1 participant