Skip to content

Commit

Permalink
Add libtorch to application containers
Browse files Browse the repository at this point in the history
  • Loading branch information
loganharbour authored and freiler committed Jul 17, 2024
1 parent b62d4b1 commit e034ac2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apptainer/app.def
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ From: {{ APPTAINER_FROM }}
MOOSE_PREFIX=/opt/${BINARY_NAME}
{%- endif %}
cd ${MOOSE_DIR}
if [ -n "$LIBTORCH_DIR" ]; then
MOOSE_OPTIONS+=" --with-libtorch=${LIBTORCH_DIR}"
fi
./configure --prefix=$MOOSE_PREFIX ${MOOSE_OPTIONS}
# Build and install
{%- if BINARY_NAME == 'moose' %}
Expand Down

0 comments on commit e034ac2

Please sign in to comment.