Skip to content

Commit a22f25c

Browse files
authored
Merge pull request #13 from byuflowlab/cibinjoseph-supercomputer
Add extra compilation steps for BYU Supercomputer issues
2 parents f26fb6e + a3dae29 commit a22f25c

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

build.sh

+22-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SAVE_DIR=src
2525

2626
echo "Removing existing build"
2727
rm -rf $COMPILE_DIR
28-
rm $SAVE_DIR/fmm.so
28+
rm -f $SAVE_DIR/fmm.so
2929

3030
echo "Copying files"
3131
mkdir $COMPILE_DIR
@@ -49,3 +49,24 @@ cd $THIS_DIR
4949
cp $COMPILE_DIR/3d/fmm $SAVE_DIR/fmm.so
5050

5151
echo "Done!"
52+
53+
# --- UNCOMMENT THIS SECTION FOR ---
54+
# --- ADDITIONAL STEPS FOR BYU SUPERCOMPUTER ---
55+
# rm -f $COMPILE_DIR/3d/fmm $SAVE_DIR/fmm.so
56+
#
57+
# cd $COMPILE_DIR/3d/
58+
#
59+
# # libmpi.so often causes trouble and has to be included with fmm
60+
# MPI_LIB=$(dirname $(which mpicxx))/../lib
61+
#
62+
# # Compiler flags with debugging
63+
# # mpicxx -ffast-math -funroll-loops -fabi-version=6 -Wfatal-errors -fopenmp -g -O2 -o fmm fmm-fmm.o -L$JLCXX_LIB -lcxxwrap_julia -fPIC -march=broadwell -Wunused-parameter -Wextra -Wreorder -std=gnu++1z -O3 -DNDEBUG -shared -Wl,-rpath,$MPI_LIB: -LJLCXX_LIB -lcxxwrap_julia -L$JULIA_LIB -ljulia
64+
#
65+
# # Compiler flags without debugging
66+
# mpicxx -ffast-math -funroll-loops -fabi-version=6 -fopenmp -O2 -o fmm fmm-fmm.o -L$JLCXX_LIB -lcxxwrap_julia -fPIC -march=broadwell -std=gnu++1z -O3 -shared -Wl,-rpath,$MPI_LIB: -LJLCXX_LIB -lcxxwrap_julia -L$JULIA_LIB -ljulia
67+
#
68+
# cd $THIS_DIR
69+
# cp $COMPILE_DIR/3d/fmm $SAVE_DIR/fmm.so
70+
#
71+
# # Testing FLOWExaFMM import
72+
# julia -e "import FLOWExaFMM" && echo "FLOWExaFMM installation successful!"

0 commit comments

Comments
 (0)