Setting up petsc as host like this
petsc:
use: host-petsc
gives me this error:
2016/09/12 16:18:53 - INFO: [package:run_job] cp: /Users/salazardetro1/scicomp_libraries/petsc-3.6.3/conf: No such file or directory
2016/09/12 16:18:53 - ERROR: [package:run_job] Command '[u'/bin/bash', '_hashdist/build.sh']' returned non-zero exit status 1
2016/09/12 16:18:53 - ERROR: [package:run_job] command failed (code=1); raising
looking at the yaml file:
https://github.com/hashdist/hashstack/blob/master/pkgs/host-petsc.yaml I see that it is assumed there is a directory conf which is inside ${PETSC_DIR}/lib/petsc and not in ${PETSC_DIR}. I tried changing host-petsc.yaml, the line:
bash: |
cp -r {{HOST_PETSC_DIR}}/conf ${ARTIFACT}/
for
bash: |
cp -r {{HOST_PETSC_DIR}}/lib/petsc/conf ${ARTIFACT}/ but this gave me problems with slepc, I get this error message:
2016/09/13 08:28:24 - INFO: [package:run_job] ERROR: cannot process file /Users/salazardetro1/scicomp_libraries/petsc-3.6.3/include/petscconf.h, maybe you forgot to set PETSC_ARCH
but I do set up PETSC_DIR and PETSC_ARCH in my parameters. All these problems happened because I wasn't able to install petsc with mumps (through hashdist). Mumps needs scalapack, and this fails to compile with the following error message:
2016/09/13 08:25:57 - INFO: [package:run_job] [ 63%] Building C object CMakeFiles/scalapack.dir/SRC/zlamov.c.o
2016/09/13 08:25:57 - INFO: [package:run_job] make[2]: *** No rule to make target `/Users/salazardetro1/.hashdist/bld/lapack/7oavm7funbyi/lib/liblapack.so', needed by `lib/libscalapack.dylib'. Stop.
I am on OSX 10.11. I don't understand how I can need the .so library. This is my yaml file (for the downloaded petsc) :
# In the future, we'll provide better incorporation of
# automatic environment detection. For now, have a look
# at the YAML files in the top-level directory and choose
# the most *specific* file that matches your environment.
extends:
- file: osx.yaml
parameters:
cmake_osx_sysroot: /
empty_osx_deployment_target: true
python_framework: true
HOST_PYTHON: /usr/bin/python
HOST_PETSC_DIR: /Users/salazardetro1/scicomp_libraries/petsc-3.6.3
HOST_PETSC_ARCH: arch-darwin-c-debug
PETSC_ARCH: arch-darwin-c-debug
python_site_packages_rel: Python.framework/Versions/2.7/lib/python2.7/site-packages
PROLOGUE: export FC=/sw/bin/gfortran
# The packages list specifies all the packages that you
# require installed. <#> will ensure that all packages
# and their dependencies are installed when you build this
# profile.
packages:
launcher:
libtiff:
host: true
ply:
cmake:
python:
host: true
use_python_host_packages: true
cython:
host: true
hdf5:
extra : [--enable-parallel]
mpi:
use: mpich
blas:
use: host-osx-framework-accelerate
superlu_dist:
without_check: true
petsc:
# use: host-petsc
# version: '3.6.3'
version: '3.6.1'
build_with: |
parmetis, scotch, suitesparse, lapack, blas, superlu_dist, mumps
coptflags: -O2
link: shared
debug: false
petsc4py:
version: '3.6.0'
slepc:
version: '3.6.1'
slepc4py:
version: '3.6.0'
swig:
boost:
toolset: clang
build_with: python
ipython:
matplotlib:
mpi4py:
vtk:
vtk_wrap_python: false