I worked out an example. The examples has a signal size of 1013 as specified. The 8 signals are multiples of sine 50 hz, which makes the desired outcome obvious.
Cudacode and matlab script are added. My matlab skills are so-so, It could be that I didn’t use Matlab quite right; but the cuda outcomes appear irreproachable.
Please see for yourself - and tell me about it!
The cuda example, as the name says, is derived in a straigtforward manner from the SDK example.
I worked out an example. The examples has a signal size of 1013 as specified. The 8 signals are multiples of sine 50 hz, which makes the desired outcome obvious.
Cudacode and matlab script are added. My matlab skills are so-so, It could be that I didn’t use Matlab quite right; but the cuda outcomes appear irreproachable.
Please see for yourself - and tell me about it!
The cuda example, as the name says, is derived in a straigtforward manner from the SDK example.
Do you know Cuda uses the row-major format for the arrays? I don’t know what matlab uses.
In your 2D FFT you have to read/write your arrays with index [Y + Ny * X],
when Y is your y-index, X is your x-index and Ny the number of points in y-direction.
Do you know Cuda uses the row-major format for the arrays? I don’t know what matlab uses.
In your 2D FFT you have to read/write your arrays with index [Y + Ny * X],
when Y is your y-index, X is your x-index and Ny the number of points in y-direction.
Thank you, I’ve seen your program. However, it’s an example that doesn’t fit at all with my program (and I don’t know how adjust it for my needs). I need “simply” understand why my CUDA instructions doesn’t produce same results of Matlab and how resolve my situation.
However, now I’m waiting for an answer from my professor about this problem. Stay tuned! :)
Thank you, I’ve seen your program. However, it’s an example that doesn’t fit at all with my program (and I don’t know how adjust it for my needs). I need “simply” understand why my CUDA instructions doesn’t produce same results of Matlab and how resolve my situation.
However, now I’m waiting for an answer from my professor about this problem. Stay tuned! :)