-
Notifications
You must be signed in to change notification settings - Fork 85
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
cudaFftPlanMany.Exec only works with in place transforms #105
Comments
This does not occur when using cufftType.C2C, maybe i can format just the input data different as a workaround, but this still seems to be a problem for cufftType.R2C |
Can you provide a minimal example showing the problem? Is it a 1D, 2D or 3D transform? Are the input data padded? Because you mention DirectX, I assume you are using 2D transforms, are you sure the array sizes are correct, given that "output arrays twice the size of input arrays" is not correct: For 2D R2C transforms, the output array must be of size |
First, thank you for the great work! I made a workaorund with C2C and don't have the original code anymore. I use a 1D transform with plan many and stride on a Texture2D and it works like charm now :) So this is my redone sample - it should work not to work :) hope I did not miss any edits: `
It does not work on neither Texture2D or the commented out CudaDeviceVariable buffers, the result is always all zero. Having changed that to cufftType.C2C with corresponding Textureformat R32G32_Float (from R32_Float ) and ManagedCuda.VectorTypes.float2 mappings now it's working. So I assume the array sizes are correct, I made no changes to the output buffers from my working code, input buffers of course half the output size for cufftType.R2C |
When calling my cuda plan with only one parameter, I can find a transformed Array on the original position. But whenever I call one of the methods with separate input and output parameters, the resulting array is always filled with just zeros. I have this problem on CudaDeviceVariable als well as with CudaPitchedDeviceVariable (mapped from texture as CudaDirectXInteropResource). Array size should be corrext, using cufftType.R2C with output arrays twice the size of input arrays.
The text was updated successfully, but these errors were encountered: