cupy icon indicating copy to clipboard operation
cupy copied to clipboard

Fix segfault when passing `None` to `ascontiguousarray`/`asfortranarray`

Open leofang opened this issue 2 months ago • 2 comments

Close #9358.

leofang avatar Oct 29 '25 23:10 leofang

/test mini

leofang avatar Oct 29 '25 23:10 leofang

Looks good to me, seems like matmul in cupy/_core/_routines_linalg.pyx uses the cimported ascontiguousarray for dtype support (and that looks like the only occurance). I'll wager that this function is heavy enough that switching over to Python there is OK.

seberg avatar Oct 30 '25 10:10 seberg