forked from psi4/libefp
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.sh
More file actions
31 lines (24 loc) · 1023 Bytes
/
setup.sh
File metadata and controls
31 lines (24 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
export TORCH_SWITCH=ON
export LIBEFP_DIR="/Users/lyuda/LIBEFP/libefp_skp_may2025"
export INSTALLATION_DIR="$LIBEFP_DIR"
export PYTHONPATH="$LIBEFP_DIR/lib"
if [[ "$TORCH_SWITCH" == "ON" ]]; then
# Set the installation directory for LibTorch
export TORCH_INSTALLED_DIR="/Users/lyuda/LIBEFP/LIBTORCH/libtorch"
export LIBTORCH_INCLUDE_DIRS="$TORCH_INSTALLED_DIR/include/;$TORCH_INSTALLED_DIR/include/torch/csrc/api/include"
export TORCHANI_DIR="$LIBEFP_DIR/efpmd/torch"
echo "Environment variables set for Torch integration:"
echo "LIBEFP_DIR=$LIBEFP_DIR"
echo "TORCH_INSTALLED_DIR=$TORCH_INSTALLED_DIR"
echo "LIBTORCH_INCLUDE_DIRS=$LIBTORCH_INCLUDE_DIRS"
echo "TORCHANI_DIR=$TORCHANI_DIR"
echo "PYTHON_REQS=$PYTHON_REQS"
else
unset LIBTORCH_INCLUDE_DIRS
unset TORCH_INSTALLED_DIR
unset TORCHANI_DIR
echo "Torch integration is disabled. Only basic environment variables are set:"
echo "LIBEFP_DIR=$LIBEFP_DIR"
fi
echo "TORCH_SWITCH=$TORCH_SWITCH"