diff --git a/recipes/triqs_cthyb/build.sh b/recipes/triqs_cthyb/build.sh new file mode 100644 index 0000000000000..e3d1f540b56f1 --- /dev/null +++ b/recipes/triqs_cthyb/build.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +mkdir build +cd build + +# Openmpi Specific environment setup - Cf. https://github.com/conda-forge/libnetcdf-feedstock/pull/80 +export OMPI_MCA_btl=self,tcp +export OMPI_MCA_plm=isolated +export OMPI_MCA_rmaps_base_oversubscribe=yes +export OMPI_MCA_btl_vader_single_copy_mechanism=none +mpiexec="mpiexec --allow-run-as-root" + +source $PREFIX/share/triqsvars.sh + +cmake \ + -DCMAKE_INSTALL_PREFIX=$PREFIX \ + -DCMAKE_BUILD_TYPE=Release \ + .. + +make -j${CPU_COUNT} VERBOSE=1 +CTEST_OUTPUT_ON_FAILURE=1 ctest +make install diff --git a/recipes/triqs_cthyb/conda_build_config.yaml b/recipes/triqs_cthyb/conda_build_config.yaml new file mode 100644 index 0000000000000..289631faf39ae --- /dev/null +++ b/recipes/triqs_cthyb/conda_build_config.yaml @@ -0,0 +1,3 @@ +mpi: + - mpich + - openmpi diff --git a/recipes/triqs_cthyb/meta.yaml b/recipes/triqs_cthyb/meta.yaml new file mode 100644 index 0000000000000..182ec69adea2e --- /dev/null +++ b/recipes/triqs_cthyb/meta.yaml @@ -0,0 +1,58 @@ +{% set version = "2.2.1" %} + +package: + name: triqs_cthyb + version: {{ version }} + +source: + url: https://github.com/TRIQS/cthyb/releases/download/{{ version }}/cthyb-{{ version }}.tar.gz + sha256: de78b39a354c0e1344987c26403919c23611635ab3d75620aa01bd5b06431bdc + +build: + number: 0 + skip: True # [win or py>30] + +requirements: + build: + - cmake + - make + - {{ compiler('c') }} + - {{ compiler('cxx') }} + host: + - triqs {{ '.'.join(version.split('.')[:2]) }} + - boost-cpp + - nfft + - hdf5 + - {{ mpi }} + - libblas + - liblapack + - python + run: + - {{ pin_compatible("triqs", max_pin="x.x") }} + - nfft + - hdf5 + - {{ mpi }} + - libblas + - liblapack + - python + +test: + commands: + - export OMPI_MCA_btl=self,tcp + - export OMPI_MCA_plm=isolated + - export OMPI_MCA_rmaps_base_oversubscribe=yes + - export OMPI_MCA_btl_vader_single_copy_mechanism=none + - export mpiexec="mpiexec --allow-run-as-root" + - python -c "import triqs_cthyb" + +about: + home: https://triqs.github.io/cthyb + license: GPL-3.0-or-later + license_family: GPL + license_file: LICENSE.txt + summary: 'A fast and generic hybridization-expansion impurity solver' + +extra: + recipe-maintainers: + - wentzell + - pgunn