Spack: Error resolving providers when additional repos are set

Created on 19 Sep 2016  路  1Comment  路  Source: spack/spack

consider packages.yaml:

packages:
  all:
    compiler: [[email protected]]
        providers:
            mpi: [openmpi]
            blas: [openblas]
            lapack: [openblas]

now I have a local repo with my own openmpi and openblas packages and repos.yaml:

repos:
- ~/spack/local

According to
https://groups.google.com/forum/#!msg/spack/YZMe02JH5Zo/gl11k_s9DwAJ
the local repo should take precedence.

But while mpi resolves correctly to openmpi package from local repo,
the blas/lapack resolve to openblas from the builtin repo...
spack spec blas -> openblas from the builtin repo
spack spec openblas -> openblas from the local repo

Any idea why?

bug impact-low repos workaround

Most helpful comment

Just for reference - this can be solved by specifying providers with full namespace.

packages:
  all:
      providers:
          mpi: [local.openmpi]
          blas: [local.openblas]
          lapack: [local.openblas]

where local is the local repo namespace

>All comments

Just for reference - this can be solved by specifying providers with full namespace.

packages:
  all:
      providers:
          mpi: [local.openmpi]
          blas: [local.openblas]
          lapack: [local.openblas]

where local is the local repo namespace

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eschnett picture eschnett  路  3Comments

JavierCVilla picture JavierCVilla  路  3Comments

TomasPuverle picture TomasPuverle  路  3Comments

davydden picture davydden  路  3Comments

adrienbernede picture adrienbernede  路  3Comments