Skip to content

Update pychm_singuarity build to add MKL library #26

@coleslaw481

Description

@coleslaw481

MKL has a Yum-compatible repo, I just tried it out and it works on my machine at home where I have root access: https://software.intel.com/en-us/articles/installing-intel-free-libs-and-python-yum-repo

After getting the repo up and installing intel-mkl-64-bit-2017 I had to change the environmental variables:

export LD_LIBRARY_PATH=/opt/intel/:$LD_LIBRARY_PATH

and create the file ~/.numpy-site.cfg with the contents:

[mkl]
library_dirs = /opt/intel/mkl/lib/intel64
include_dirs = /opt/intel/mkl/include
mkl_libs = mkl_rt
lapack_libs =
pip install --no-binary :all: numpy scipy

makes numpy and scipy use the MKL. The file ~/.numpy-site.cfg can then be deleted but you must always set the LD_LIBRARY_PATH or import numpy will fail.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions