Skip to content

Build broken with non-MKL/OpenBLAS BLAS and COSMA_BLAS_VENDOR "auto" #171

Description

@mcarmesin

I'm trying to build COSMA with Spack and the AMD BLAS/LAPACK/SCALAPACK libraries. In this case, Spack sets the ScaLAPACK vendor to custom, so that cmake tries the auto mode to detect the BLAS libraries. Unfortunately it stops the search after looking for OpenBLAS even though the corresponding libs are not found.

In cmake/FindBlas.cmake there is a check (line 93)
if(TARGET cosma::BLAS::${_libs}::blas)
but unfortunately the FindXXX.cmake set the target even when the libs are not found.

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