Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions packages/feedsim/install_feedsim_aarch64_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,20 @@ CONDA_DIR="${FEEDSIM_THIRD_PARTY_SRC}/miniconda3"

if ! [ -d "libtorch" ]; then
# Install Miniconda for a clean Python environment
from_user_conda=0
if ! [ -d "${CONDA_DIR}" ]; then
msg "Installing Miniconda..."
ARCH="$(uname -m)"
MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-${MINICONDA_VERSION}-Linux-${ARCH}.sh"
wget "${MINICONDA_URL}" -O miniconda.sh
bash miniconda.sh -b -p "${CONDA_DIR}"
rm miniconda.sh
if ! command -v conda >/dev/null 2>&1; then
msg "Installing Miniconda..."
ARCH="$(uname -m)"
MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-${MINICONDA_VERSION}-Linux-${ARCH}.sh"
wget "${MINICONDA_URL}" -O miniconda.sh
bash miniconda.sh -b -p "${CONDA_DIR}"
rm miniconda.sh
else
from_user_conda=1
msg "Installing benchmark-local conda from user's conda"
conda create -p "${CONDA_DIR}" -y -c conda-forge conda
fi
fi

export PATH="${CONDA_DIR}/bin:${PATH}"
Expand All @@ -210,7 +217,9 @@ if ! [ -d "libtorch" ]; then

# Also install libstdcxx-ng to ensure compatible C++ runtime
eval "$("${CONDA_DIR}/bin/conda" shell.bash hook)"
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main || true
if [ "${from_user_conda}" = 0 ]; then
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main || true
fi
conda install -y -c conda-forge libstdcxx-ng

# Locate the pip-installed torch package
Expand Down
Loading