Skip to content

When run Eigen with Openblas , ** On entry to DGEMM parameter number 13 had an illegal value #4232

Closed
@wenxingguo

Description

@wenxingguo

When I run the following code using Eigen3.4 and openblas I get an error

** On entry to DGEMM parameter number 13 had an illegal value

environment: windows10 with mingw64
if compile without fortran, the error disappear.

#define EIGEN_USE_BLAS
#include <sys/time.h>
#include <Eigen/Dense>
#include <iostream>

int main(int argc, char* argv[])
{
    struct timeval t1, t2;
    double timeuse;
    gettimeofday(&t1, NULL);
    Eigen::MatrixXd M1, M2;
    M1.resize(10, 10);
    M2.resize(10, 10);
    Eigen::MatrixXd M3 = M1 * M2;

    gettimeofday(&t2, NULL);
    timeuse = (t2.tv_sec - t1.tv_sec)
        + (double)(t2.tv_usec - t1.tv_usec) / 1000000.0;

    std::cout << "time = " << timeuse << std::endl;
    return 0;
}

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