Skip to content

Correctness test fails to compile on m2 Mac #358

@Szirenke

Description

@Szirenke

Hi,

I would like to compile the correctness tests for clBlas on an m2 Mac. The error I am getting is this:

In file included from /Users/ocl/data/OpenCL/clBLAS-master/src/tests/correctness/blas-lapack.c:28:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/Accelerate.framework/Headers/../Frameworks/vecLib.framework/Headers/vecLib.h:62:
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/vecLib.framework/Headers/fortran_blas.h:27:5: error: conflicting types for 'icamax_'
int icamax_(int *n, void *cx, int *incx)
    ^
/Users/ocl/data/OpenCL/clBLAS-master/src/tests/correctness/blas-lapack.h:1213:5: note: previous declaration is here
int icamax_(int *n, complex *x, int *incx);
    ^

Is there workaround for this? The clBlas itself can be compiled and also brew provides an excellent tap for it but would nice to have the tests as well.

Thanks!!!

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