You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have recently updated the OS on my Mac and decided that it would be a good idea to post a recipe to configure psi4/ambit/forte.
Conda-forge environment. Download Miniconda and install it via:
sh Miniforge3-MacOSX-x86_64.sh
Create a forte environment. We create an environment with Python 3.9 and psi4/forte dependencies:
conda create -n forte cmake nomkl numpy boost hdf5 yaml jupyterlab eigen mpfr pytest scikit-image python=3.9 pydantic pint pybind11
Install libint2. This is required by psi4 and will save a ton of compilation time:
conda install -c psi4/label/dev libint2
Install pythreejs (optional). This is a 3D rendering library required to run fortecubeview:
conda install -c conda-forge pythreejs
conda install nodejs -c conda-forge --repodata-fn=repodata.json # this is here to download a fairly recent version of Node.js
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyter-threejs
Compile ambit. I keep all my source files in the directory /Users/fevange/src. Start by git cloning ambit
In the folder src I store the following script (compile-ambit.sh) which can be called to compile ambit
#! /bin/tcsh# Script to compile ambit on a mac# Modify the following parametersset srcdir = /Users/fevange/Source/ambit # <- location of sourceset build_type = Release # <- debug, release, or relwithdebinfo# define object and prefix dirsset prefix = /Users/fevange/Bin/ambit-$build_type# prepare to run cmakecd$srcdir
rm -rf objdir
rm -rf $prefix
cmake -H. -Bobjdir \
-DCMAKE_BUILD_TYPE=$build_type \
-DCMAKE_INSTALL_PREFIX=$prefix \
cd objdir
make
make install
Compile psi4. Start by git cloning psi4
src> git clone https://github.com/psi4/psi4.git
In the folder src I store the following script (compile-psi4.sh) which can be called to compile psi4
#! /bin/tcsh# Script to compile psi4 on a mac# Modify the following four parametersset srcdir = $HOME/Source/psi4 # <- location of psi4 sourceset bindir = $HOME/Bin/psi4 # <- location of psi4 binset psi4type = Debug # <- debug, release, ...set anaconda = $HOME/miniforge3/envs/forte
# define object and prefix dirsset objdir = $srcdir/objdir-$psi4typeset prefix = $bindir-$psi4type# prepare to run cmake
rm -rf $objdircd$srcdir
cmake -H. -B$objdir \
-DCMAKE_BUILD_TYPE=$psi4type \
-DLibint2_DIR=$anaconda/share/cmake/Libint2 \
-DCMAKE_INSTALL_PREFIX=$prefix \
-DENABLE_PLUGIN_TESTING=OFF \
-DENABLE_OPENMP=OFF \
-DBUILD_SHARED_LIBS=ON
cd$objdir
make -j4
Just sharing in case it could be helpful to someone else:
Step 2 was not working for me because it seems pint is not in the default miniconda channels. I was able to complete step 2 it after adding conda-forge as a channel.
I have recently updated the OS on my Mac and decided that it would be a good idea to post a recipe to configure psi4/ambit/forte.
Conda-forge environment. Download Miniconda and install it via:
Create a forte environment. We create an environment with Python 3.9 and psi4/forte dependencies:
Install libint2. This is required by psi4 and will save a ton of compilation time:
Install pythreejs (optional). This is a 3D rendering library required to run fortecubeview:
conda install -c conda-forge pythreejs conda install nodejs -c conda-forge --repodata-fn=repodata.json # this is here to download a fairly recent version of Node.js jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter labextension install jupyter-threejs
Compile ambit. I keep all my source files in the directory
/Users/fevange/src
. Start bygit cloning
ambitsrc> git clone https://github.com/jturney/ambit.git
In the folder
src
I store the following script (compile-ambit.sh
) which can be called to compile ambitCompile psi4. Start by
git cloning
psi4src> git clone https://github.com/psi4/psi4.git
In the folder
src
I store the following script (compile-psi4.sh
) which can be called to compile psi4Compile forte. Start by
git cloning
fortesrc> git clone https://github.com/evangelistalab/forte.git
In the folder
src
I store the following script (compile-forte.sh
) which can be called to compile psi4The text was updated successfully, but these errors were encountered: