Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add system's Architecture in install.sh #546

Merged
merged 2 commits into from
Jan 17, 2025
Merged
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
16 changes: 9 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
#!/bin/sh

ARCH=$(uname -m)

print_finish() {
if [ ! -z "$LIBTORCH_ROOT" ]; then
echo " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ="
echo "| deepflame (linked with libcantera and libtorch) compiled successfully! Enjoy!! |"
echo " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ="
echo "| deepflame (linked with libcantera and libtorch) in $ARCH compiled successfully! Enjoy!! |"
elif [ ! -z "$PYTHON_LIB_DIR" ]; then
echo " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ="
echo "| deepflame (linked with libcantera and pytorch) compiled successfully! Enjoy!! |"
echo " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ="
echo "| deepflame (linked with libcantera and pytorch) in $ARCH compiled successfully! Enjoy!! |"
else
echo " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ="
echo "| deepflame (linked with libcantera) compiled successfully! Enjoy!! |"
echo " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ="
echo "| deepflame (linked with libcantera) in $ARCH compiled successfully! Enjoy!! |"
fi
if [ ! -z "$AMGX_DIR" ]; then
echo "| select the GPU solver coupled with AMGx library to solve PDE |"
fi
echo " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ="
echo " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ="
}
if [ $USE_LIBTORCH = true ]; then
cd "$DF_SRC/dfChemistryModel/DNNInferencer"
Expand Down