Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion compile_withcmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ cd ..

mkdir deploy
cp ./mmwis/deploy/mmwis deploy/
cp ./mmwis/deploy/struction deploy/
if [ -f ./mmwis/deploy/struction ]; then
cp ./mmwis/deploy/struction deploy/
fi
cp ./build/redumis deploy/
cp ./build/graphchecker deploy/
cp ./build/sort_adjacencies deploy/
Expand Down
8 changes: 6 additions & 2 deletions mmwis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,12 @@ target_include_directories(lib_mmwis PRIVATE ${MMWIS_INCLUDES})

add_dependencies(lib_mmwis libkaffpa)

option(STRUCTION_ENABLE_APPS "enable/disable struction executables")
add_subdirectory(extern/struction EXCLUDE_FROM_ALL)
option(STRUCTION_ENABLE_APPS "enable/disable struction executables" ON)
if(STRUCTION_ENABLE_APPS)
add_subdirectory(extern/struction)
else()
add_subdirectory(extern/struction EXCLUDE_FROM_ALL)
endif()

add_executable(mmwis "app/mmwis.cpp" $<TARGET_OBJECTS:libkaffpa>
$<TARGET_OBJECTS:libmapping>
Expand Down
8 changes: 5 additions & 3 deletions mmwis/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
# compile mmwis and hils

rm -rf deploy
# rm -rf build
rm -rf build
mkdir build
cd build
cmake ../ -DCMAKE_C_COMPILER=$(which gcc) -DCMAKE_CXX_COMPILER=$(which g++) -DCMAKE_BUILD_TYPE=${buildtype}
Expand All @@ -28,7 +28,9 @@ cd ..

mkdir deploy
cp ./build/mmwis deploy/mmwis
cp ./build/extern/struction/branch_reduce_convergence deploy/struction
# rm -rf build
if [ -f ./build/extern/struction/branch_reduce_convergence ]; then
cp ./build/extern/struction/branch_reduce_convergence deploy/struction
fi
rm -rf build