Closed psteinb closed 6 months ago
@psteinb I can reproduce the error. The problem is your callback was written for single-complex, but you allocated data as double-complex (cp.cfloat
). Changing it to cp.complex64
fixes the problem.
That does it! Thanks so much. The tests runs through alright now without errors. We are running into other problems with CUFFT now which we need to tend to.
Description
We've been struggling to get FFT transforms on 2D complex fields running. We would like to use CUFFT transforms with callbacks on Nvidia GPUs. We've been able to isolate the problem in a minimal reproducing unit test. See https://gist.github.com/psteinb/bc52a4820b1ed743d8dd8c4d24524b7c
If this suite is run, we get a multitude of CUFFT or CUDA Memory access errors. We've been staring at this for some hours now and would appreciate some feedback in case this is a cupy bug.
To Reproduce
After cupy is setup, install
pytest
and execute the following call to run the tests:Installation
Source (
pip install cupy
)Environment
The error also occurs with:
Additional Information
No response