According to the documentation at CuPy 8.0.0 https://docs.cupy.dev/en/stable/reference/generated/cupy.linalg.eigh.html the function cupy.linalg.eigh should be able to take m