-
Notifications
You must be signed in to change notification settings - Fork 96
Adding options to switch kernel at runtime #763
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
base: master
Are you sure you want to change the base?
Adding options to switch kernel at runtime #763
Conversation
5cff7c3 to
d6cada9
Compare
|
The test now catches the problem spotted by @lu1and10 : https://github.com/flatironinstitute/finufft/actions/runs/20095171541/job/57652014814?pr=763 |
|
very nice, should merge this once master fixed. |
d6cada9 to
d63fac0
Compare
d63fac0 to
dbca829
Compare
95ba004 to
e7fb118
Compare
|
@lu1and10 the failure in the test might have been another issue that it took me a while to spot. I think this is ready for review now. |
|
by another issue, do you mean ns for upsampfac 2.0 in float can't be 2? |
e7fb118 to
404fd89
Compare
|
I moved kernel functions in kernel.h kernel.cpp make a static_library for finufft and cufinufft. A bit of cleanup. Reason why I moved the kernel functions there is that I can link the test against this library and clamp eps to the max_eps allowed per sigma. This function takes kernel_type as input so we can return something different for different kernels.
yes, if you keep ns = 2 in that case it gives 0(1) errors for tol exactly 1e-1 |
404fd89 to
8214f38
Compare
|
I noticed that there are again formatting changes. I will revert them tomorrow. (I'll have time hopefully) |
No worries, it's not urgent and I can try to help with it if you don't have time. |
|
@DiamonDinoia I guess the format is not a problem for this PR, if you run |
8214f38 to
6b06e91
Compare
No description provided.