Skip to content

Access violation on windows with an openblas compiled with visual studio #773

@slegall56

Description

@slegall56

Dear xianyi,
I compiled OpenBlas with visual studio 2012 in X86
But when I call cblas_sgemm with small matrices it works but with big matrices , I got an access violation.

Below a piece of code
float* AA = (float_)malloc(270000_sizeof(float)); // matrice of 10000x27
memset(AA, 0.1, 270000_sizeof(float));
float_ BB = (float_)malloc(864_sizeof(float)); // matrice of 27x32
memset(BB, 0.2, 864_sizeof(float));
float_ CC = (float_)malloc(320000_sizeof(float)); //Matrice of 10000x32

cblas_sgemm(CblasColMajor, CblasNoTrans, CblasNoTrans, 10000, 32, 27,
1.0, AA, 10000, BB, 27, 0.0, CC, 10000);

free(AA);
free(BB);
free(CC);

This piece of code above works with openblas compiled MinGW but not with the version compile with visual studio

Any idea ?

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