Skip to content
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

CUFFT_INTERNAL_ERROR when attempting torch.stft #29

Open
AznamirWoW opened this issue Jul 13, 2024 · 2 comments
Open

CUFFT_INTERNAL_ERROR when attempting torch.stft #29

AznamirWoW opened this issue Jul 13, 2024 · 2 comments
Labels
implementation Unimplemented feature(s)

Comments

@AznamirWoW
Copy link

Tried zluda 3.72 and 3.80-rocm5 with torch 2.1.1 cu118 and 2.3.0 cu118

Traceback (most recent call last):
File "G:\fft_test\fft.py", line 5, in
fft = torch.stft(
File "G:\fft_test\venv\lib\site-packages\torch\functional.py", line 665, in stft
return _VF.stft(input, n_fft, hop_length, win_length, window, # type: ignore[attr-defined]
RuntimeError: cuFFT error: CUFFT_INTERNAL_ERROR

attached the test script and with tensor files
fft_test.zip

@AznamirWoW
Copy link
Author

just a simple test code with a dummy tensor fails as well

import torch
dev = torch.device("cuda")
t_audio = torch.randn(1, 2048, device=dev)
fft_tensor = torch.fft.fft(t_audio)

@lshqqytiger lshqqytiger added the implementation Unimplemented feature(s) label Jul 14, 2024
@lshqqytiger
Copy link
Owner

Unfortunately, AMD HIP SDK does not have an equivalent of cuFFTW, which is a requirement of PyTorch FFT.
Therefore, at this moment, it is not able to run torch.sfft using ZLUDA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
implementation Unimplemented feature(s)
Projects
None yet
Development

No branches or pull requests

2 participants