Skip to content

check and add size checks to all LAPACK functions #149

@bamos

Description

@bamos

Example

#!/usr/bin/env python3

import torch

a=torch.Tensor(((6.80, -2.11,  5.66,  5.97,  8.23),
                (-6.05, -3.30,  5.36, -4.44,  1.08),
                (-0.45,  2.58, -2.70,  0.27,  9.04),
                (8.32,  2.71,  4.35, -7.17,  2.14),
                (-9.67, -5.14, -7.26,  6.08, -6.87))).t()
b=torch.Tensor(((4.02,  6.19, -8.22, -7.57, -3.03),
                (-1.56,  4.00, -8.67,  1.75,  2.86),
                (9.81, -4.09, -4.57, -8.61,  8.99))).t()

a = torch.mm(a, a.t())

U = torch.potrf(a)
x = torch.potrs(b[:4,:], U)

Output

tmp$ ./t.py
*** Error in `python3': malloc(): memory corruption: 0x000000000255e840 ***
[1]    6186 abort (core dumped)  ./t.py

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions