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 Your Name committed Aug 28, 2024
1 parent da1c5f7 commit 2b27159
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 2b27159

Please sign in to comment.