Skip to content

numpy isn't linked to any libraries as default.  #696

@terjekv

Description

@terjekv

After installing numpy via hashstack, the end result is somewhat disappointing:

$ module load FEniCS/1.5.0_2015.02.20_dev
$ python
imPython 2.7.8 (default, Feb 20 2015, 22:02:57) 
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__config__.show()
lapack_info:
  NOT AVAILABLE
lapack_opt_info:
  NOT AVAILABLE
blas_info:
  NOT AVAILABLE
atlas_threads_info:
  NOT AVAILABLE
blas_src_info:
  NOT AVAILABLE
atlas_blas_info:
  NOT AVAILABLE
lapack_src_info:
  NOT AVAILABLE
openblas_info:
  NOT AVAILABLE
atlas_blas_threads_info:
  NOT AVAILABLE
blas_mkl_info:
  NOT AVAILABLE
blas_opt_info:
  NOT AVAILABLE
atlas_info:
  NOT AVAILABLE
lapack_mkl_info:
  NOT AVAILABLE
mkl_info:
  NOT AVAILABLE

This is solvable by editing the yaml file to include the following:

build_stages:

- when: platform == 'linux'
  name: create-site.cfg
  before: install
  handler: bash
  bash: |
    cat > site.cfg << EOF
    [blas]
    blas_libs = blas
    library_dirs = ${ARTIFACT}/lib
    [lapack]
    lapack_libs = lapack
    library_dirs = ${ARTIFACT}/lib
    EOF

But I'm not sure if that's a pretty solution.

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