fjarri/reikna

incompatibility with latest numpy 1.24

perdigao1 opened this issue · 4 comments

_register_dtype(numpy.bool, "bool")

Running reikna with latest version of numpy 1.24 throws an error at this line L187

_register_dtype(numpy.bool, "bool")

numpy.bool is deprecated, as per warnings.

Alternative is to use python bool, or temporarily np.bool_, or try-except for registering this dtype.

Thanks for the report. Unfortunately, I do not have time to contribute to reikna at the moment as I am occupied with other projects. Additionally, the cluda part is supposed to be replaced with https://github.com/fjarri/grunnur (which, I know, also hasn't been updated in a while... sorry about that).

If you have a PR that fixes this, I'd be happy to review it.

The same issue occured to me and was solved by replacing np.bool by np.bool_ like @perdigao1 suggested. Besides, thanks @fjarri and Co. for your great work!

Pull request has been submitted
#64

Should be fixed by #64, please reopen if it is not the case.