Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917473 - sci-libs/rocFFT-5.1.3 crashes.
Summary: sci-libs/rocFFT-5.1.3 crashes.
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-17 07:21 UTC by Benda Xu
Modified: 2023-11-17 07:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2023-11-17 07:21:39 UTC
The following program gets rocFFT-5.1.3 to crash
```
$ cat rocm_fft.py

import cupy as cp
from cupyx.scipy.signal import fftconvolve

print(fftconvolve(cp.ones(1060), cp.ones(62), mode="full"))

$ python3 rocm_fft.py
python3: /tmp/portage/dev-util/hip-5.4.3/work/ROCclr-rocm-5.4.3/cmake/../thread/monitor.hpp:180: bool amd::Monitor::tryLock(): Assertion `thread != NULL && "cannot lock() from (null)"' failed.
[3]    233007 abort      python3 rocm_fft.py
```

[ebuild   R    ] sci-libs/rocFFT-5.1.3-r1:0/5.1::gentoo  USE="-benchmark* -perfscripts -test" AMDGPU_TARGETS="gfx908 -gfx90a -gfx803 -gfx900 -gfx906 -gfx1010 -gfx1011 -gfx1012 -gfx1030 -gfx1031" PYTHON_TARGETS="python3_11 -python3_10" 0 KiB


Reproducible: Always
Comment 1 Yiyang Wu 2023-11-17 07:35:29 UTC
Temporary workaround: 

export ROCFFT_RTC_PROCESS=1

Reference: https://github.com/ROCmSoftwarePlatform/rocFFT/issues/389