Replies: 5 comments
Is it not possible that low upsamp fact will use ns = 16 in float32? Does the aliasing error kill us in that case?
It might sill be faster on some GPUs we cannot predict if there is a use case for it so I am not sure I want to go down this route unless really necessary.
I would go down this route only if necessary
Yes, we do that but it can be improved. I would say that using LTO also reduces size of binaries. |
I'm fairly sure that a practical limit is reached at ns=10 at the latest, even for upsampfact 1.25. After that, the dynamic range of the kernel will cause so much numerical error that no accuracy is gained by increasing ns.
OK ... it is a guarantee that at least 3/4 of every warp is idle and a synchronisation is needed after every NU point. That feels quite bad. LTO can help with binary size, I agree. |
|
Small update on the In import numpy as np
def get_ns_for_pswf(type, dim, sigma, tol):
tolfac = 0.18 * 1.4**(dim-1)
if type == 3: # compensate for type 3 worse (affects outer spread, not inner t2)
tolfac *= 1.4;
nsoff = 1.0 # width offset (helps balance err over sigma range)
ns = int(np.ceil(
np.log(tolfac / tol) / (np.pi * np.sqrt(1.0 - 1.0 / sigma)) +
nsoff))
return nsFor Not implementing the range from 12 to 16 may not sound like a big deal, but one has to consider that these functions may scale in size superlinearly with |
|
... this may be extremely far-fetched, but I have seen a few other projects (like |
|
I would not open that can of worms. ckFFT would be massive with all the kernels for now I'd say that cufinufft is not so big that we need to do that. |
Uh oh!
There was an error while loading. Please reload this page.
Since it was discussed in the last meeting, it might be helpful to have a list of options for reducing the size of the (cu)finufft binaries.
ns>8. We currently instantiate them up tons=16, and as far as I can tell, it is mathematically impossible to call them fornslarger than (roughly) 8. This can save 25% of overall binary size.Please add to this list if you have more ideas!
All reactions