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

Make cufinufft compiles with CUDA 12 on Windows #604

Merged
merged 13 commits into from
Jan 27, 2025

Conversation

DiamonDinoia
Copy link
Collaborator

@DiamonDinoia DiamonDinoia commented Jan 23, 2025

And a bit of cleanup for small measure.

Closes: #577
Fixes: #589 #441 #578

@DiamonDinoia DiamonDinoia requested a review from lu1and10 January 24, 2025 19:46
@DiamonDinoia DiamonDinoia marked this pull request as ready for review January 24, 2025 19:48
@DiamonDinoia
Copy link
Collaborator Author

I guess we could get rid of exporting all symbols in cufinufft and make a CUFINUFFT_EXPORT macro.

Copy link
Member

Choose a reason for hiding this comment

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

Good to know M_1_2PI was renamed to INV_2PI.
Should devel/foldrescale_perf.cpp and devel/foldrescale_perf2.cpp also change to INV_2PI?

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, but as they are not included in cmake I did not spot the compilation error.

@@ -16,7 +16,6 @@

// convenient private finufft internals
#include <finufft/finufft_core.h>
#include <finufft/utils.h>
Copy link
Member

Choose a reason for hiding this comment

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

In this test_defs.h, on windows it has dependency on rand_r defined in finufft_utils.hpp. For linux/Mac, rand_r is included in cstdlib in this header.

Copy link
Collaborator Author

@DiamonDinoia DiamonDinoia Jan 27, 2025

Choose a reason for hiding this comment

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

Yes, I just moved it into the test folder. As it is only needed in tests.

@DiamonDinoia DiamonDinoia merged commit c28744a into flatironinstitute:master Jan 27, 2025
167 checks passed
@DiamonDinoia DiamonDinoia mentioned this pull request Jan 30, 2025
11 tasks
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.

cuFINUFFT does not install correctly in a windows environment, possibly using some linux library
3 participants