cuda - CUFFT_INVALID_VALUE in cufftGetSize1d -
cuda - CUFFT_INVALID_VALUE in cufftGetSize1d -
what proper way utilize cufftgetsize1d
(or of cufftgetsize*
) functions?
i tried with:
cuffthandle plan; size_t worksize; cufftresult result; cufftcreate(&plan); result = cufftgetsize1d(plan, 1000, cufft_c2c, 1, &worksize);
however, result of lastly phone call cufft_invalid_value
, regardless of size, type, or batch use. same 2d , 3d variants. cufftestimate1d
works correctly.
this appears bug introduced during cuda 6 release cycle , subsequently fixed in cuda 7. next code:
#include <iostream> #include <cufft.h> int main() { cuffthandle plan; size_t worksize; cufftresult result; cufftcreate(&plan); result = cufftgetsize1d(plan, 1000, cufft_c2c, 1, &worksize); std::cout << "result = " << result << std::endl; homecoming 0; }
fails cufft_invalid_value when compiled , run cufft shipped in cuda 6.5, succeeds when built , run against cufft version in cuda 7.0. noted in comments, cufftgetsize
appears work correctly in cuda 6.5. workaround utilize cufftgetsize
or upgrade newer cuda 6.5 version of cufft.
[this community wiki entry added comments question off unanswered question list]
cuda fft cufft
Comments
Post a Comment