This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Fenics developer tool script fails on Broadwell architecture

0 votes

Hello,

I try to install Fenics from the developer script as:

wget -O - http://fenicsproject.org/fenics-install.sh | bash

however the compilation fails because the stable version of openblas cannot detect the Broadwell processor architecture:

[lapack] Building lapack/qze4d3ok7q47, follow log with:
[lapack]   tail -f /home/petr/.hashdist/tmp/lapack-qze4d3ok7q47-8/_hashdist/build.log
[lapack|ERROR] Command '[u'/bin/bash', '_hashdist/build.sh']' returned non-zero exit status 2
[lapack|ERROR] command failed (code=2); raising

The development version of openblas compiles correctly on Broadwell architecture.

How to correctly create local hashdist profile with dev version of openblas?

Thanks,

Petr

asked Oct 13, 2016 by petrH FEniCS Novice (580 points)
edited Oct 14, 2016 by petrH

1 Answer

+1 vote
 
Best answer

You do not necessarily need to use the dev version of OpenBLAS to do this. Instead you can specify the TARGET manually as explained several times on the fenics-support mailing list. What you need to do is to modify the HashDist profile like this:

blas:
  use: openblas
  extra_flags: TARGET=<target>

where <target> should match your CPU (see the list of available CPU targets).

However, if you do want to use the dev version of OpenBLAS, then you can first run

hit fetchgit -p openblas https://github.com/xianyi/OpenBLAS.git master

and then use the output from that command in your HashDist profile, like this:

blas:
  use: openblas
  sources:
  - key: git:85636ff1a015d04d3a8f960bc644b85ee5157135
    url: https://github.com/xianyi/OpenBLAS.git

BTW, installation related questions like this are better to be directed at the fenics-support mailing list.

answered Oct 14, 2016 by johannr FEniCS Expert (17,350 points)
selected Oct 14, 2016 by petrH

Ok, thank you for the answer. It is very helpful.

Good, you are welcome. Please select the answer if it solved your problem.

...