Skip to content

Instantly share code, notes, and snippets.

@kaushikcfd
Last active July 20, 2020 23:54
Show Gist options
  • Save kaushikcfd/5bf4b20befc22688f9c78b613117279b to your computer and use it in GitHub Desktop.
Save kaushikcfd/5bf4b20befc22688f9c78b613117279b to your computer and use it in GitHub Desktop.
  • Do a local install of petsc.

  • the configuration options of petsc are:

  • CUDA:

    ./configure --download-eigen=/home/kgk2/pack/eigen-3.3.3.tgz --with-fortran-bindings=0 --download-chaco --download-metis --download-parmetis --download-scalapack --download-hypre --download-mumps --download-netcdf --download-hdf5=https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/src/hdf5-1.10.6.tar.bz2 --download-pnetcdf --download-exodusii --download-fblaslapack --with-cuda=1 --with-cuda-dir=/home/kgk2/pack/cuda --download-zlib --with-cudac=nvcc
    
  • ViennaCL:

    ./configure --download-eigen=/home/kgk2/pack/eigen-3.3.3.tgz --with-fortran-bindings=0 --download-chaco --download-metis --download-parmetis --download-scalapack --download-hypre --download-mumps --download-netcdf --download-hdf5=https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/src/hdf5-1.10.6.tar.bz2 --download-pnetcdf --download-exodusii --download-fblaslapack --download-zlib --with-viennacl=1 --download-viennacl --with-opencl=1
    
  • Then do python3 firedrake-install --honour-petsc-dir

  • Whenever there's a need to re-install petsc4py use:

    python -m pip install --no-binary mpi4py --no-deps -vvv --ignore-installed petsc4py/
    
  • If there is a need to re-install firedrake module: python -m pip install --no-binary mpi4py --no-deps -vvv -e firedrake/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment