Skip to content

std::bad_array_new_length #82

@jcrbloch

Description

@jcrbloch

Since using TBLIS2 a bug seems to have cropped up. The program aborts with:

terminate called after throwing an instance of 'std::bad_array_new_length’

Here is a minimal example of code producing the bug:

cout << "test new bug on 18/9/2025\n";
tblis::tensor<double> B({10,10,10});
tblis::tensor<double> C({10,10,10});
tblis::tensor<double> BC({10,10,10,10});
tblis::mult<double>(1.0,B,"ija",C.permuted({0,1,2}),"abc",0.0,BC,"ijbc");

The culprit seems to be the permuted input tensor. In the old TBLIS this code runs correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions