[Dune] dunecontrol crash
Aleksejs Fomins
aleksejs.fomins at lspr.ch
Mon May 11 13:58:15 CEST 2015
Dear All,
I wrote a little CMake script to locate SuperLUDist, so I tried to compile my project with it.
So, the only things that were changed was the .opts file and the extra CMake routines.
The compilation went well for all libraries, except our code Hades3d, which crashed
./dune-common/bin/dunecontrol: line 723: 84478 Segmentation fault
Could somebody suggest what such crash could be caused by?
Regards,
Aleksejs
-------------- next part --------------
# objective - implement CMakeLists.txt
# author - benedikt oswald, all rights reserved, 2014.
# hades3ddgfd
################################
# specify the executable #
################################
add_executable(hades3ddgfd "hades3ddgfd.cc")
################################
# Add Dune Libraries #
################################
target_link_libraries("hades3ddgfd" ${DUNE_LIBS})
################################
# Add MPI and ParMETIS #
################################
if(HAVE_MPI)
add_dune_mpi_flags(hades3ddgfd)
add_dune_parmetis_flags(hades3ddgfd)
endif(HAVE_MPI)
################################
# Add ZLIB # # Is this actually necessary?
################################
target_link_libraries(hades3ddgfd ${ZLIB_LIBRARIES})
################################
# Add Boost #
################################
add_hades_boost_flags(hades3ddgfd) # nota bene: This function is not defined in Dune. It is implemented in hades/cmake/modules/
################################
# Add SuperLUDist #
################################
add_hades_supeludist_flags(hades3ddgfd) # nota bene: This function is not defined in Dune. It is implemented in hades/cmake/modules/
################################
# Add Hades-Specific Flags #
################################
set_property(TARGET hades3ddgfd APPEND PROPERTY COMPILE_FLAGS ${HADES_FLAGS})
###############################################################################################
## OLD STUFF - EVERYTHING BELOW THIS LINE SHOULD BE COMMENTED OUT ##
###############################################################################################
##add_definitions(-DHAVE_PARALOG)
#set_property(TARGET hades3ddgfd APPEND PROPERTY COMPILE_FLAGS ${MY_WEIRD_FLAGS})
#set_property(TARGET hades3ddgfd APPEND PROPERTY LINK_FLAGS ${MY_WEIRD_LIB_PATH} )
# specify libraries
#link_libraries(${DUNE_Boost_LIBRARIES})
#include_directories(${Boost_INCLUDE_DIR})
#add_definitions(-DENABLE_BOOST)
#"-L/opt/extlib/superludist/3.3/openmpi/1.8.4/gcc/4.9.2/lib -L/opt/extlib/parmetis/4.0.3/openmpi/1.8.4/gcc/4.9.2/lib -L/opt/extlib/metis/5.1.0/gcc/4.9.2/lib"
-------------- next part --------------
#################################################################################################################
## objective - opts file for building curvilineargrid, based on Dune, with cmake
##
## history - 2014 apr 16, created
##
## usage - time ./dune-common/bin/dunecontrol --use-cmake --opts=af.debian7.lsprag.cmakebuild.minimalistic.opts all
##
##################################################################################################################
USE_CMAKE=yes
CONFIGURE_FLAGS="--enable-parallel --enable-experimental-grid-extensions CC=mpicc CXX=mpicxx"
CMAKE_PREFIX_PATH="\
/opt/extlib/boost/1.58.0/gcc/4.9.0;\
/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0;\
/opt/extlib/metis/5.1.0/gcc/4.9.0;\
/opt/extlib/superludist/3.3/openmpi/1.8.1/gcc/4.9.0;\
/opt/extlib/superludist/3.3/openmpi/1.8.1/gcc/4.9.0/SRC;\
/opt/extlib/superludist/3.3/openmpi/1.8.1/gcc/4.9.0/lib;\
"
GXX_WARNING_OPTS="-Wall -pedantic"
GXX_OPTS="-O0 -g3"
## define superludist paths & library
SUPERLU_DIST_OPTS="-DHAVE_SUPERLU_DIST"
SUPERLU_DIST_INCLUDE_PATH="-I/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0 -I/opt/extlib/metis/5.1.0/gcc/4.9.0/include -I/opt/extlib/superludist/3.3/openmpi/1.8.1/gcc/4.9.0/SRC"
SUPERLU_DIST_LIBRARY="-L/opt/extlib/superludist/3.3/openmpi/1.8.1/gcc/4.9.0/lib -L/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0/lib -L/opt/extlib/metis/5.1.0/gcc/4.9.0/lib -framework Accelerate"
CMAKE_FLAGS="\
-DHADES_FLAGS='-DHAVE_DEBUG' \
-DCMAKE_CXXFLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS $SUPERLU_DIST_INCLUDE_PATH \" \
-DMETIS_ROOT='/opt/extlib/metis/5.1.0/gcc/4.9.0' \
-DPARMETIS_ROOT='/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0' \
-DSUPERLUDIST_ROOT='/opt/extlib/superludist/3.3/openmpi/1.8.1/gcc/4.9.0' \
-DCMAKE_LIBRARY_PATH:RELEASE=\"/opt/extlib/boost/1.58.0/gcc/4.9.0/lib\" \
-DCMAKE_LIBRARY_PATH:DEBUG=\"/opt/extlib/boost/1.58.0/gcc/4.9.0/lib\" \
-DCMAKE_STANDARD_LIBRARIES:RELEASE=\"-lboost_system -lprogram_options\" \
-DCMAKE_STANDARD_LIBRARIES:DEBUG=\"-lboost_system -lprogram_options\" \
-DCMAKE_PREFIX_PATH=\"$CMAKE_PREFIX_PATH\" \
-DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE \
-DCMAKE_SHARED_LINKER_FLAGS=\"-lzlib\" \
"
# -DMY_WEIRD_FLAGS='-DHAVE_SUPERLU_DIST -DBOOST_LOG_DYN_LINK -DHAVE_DEBUG' \
# -DMY_WEIRD_LIB_PATH='-L/opt/extlib/superludist/3.3/openmpi/1.8.1/gcc/4.9.0/lib -L/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0/lib -L/opt/extlib/metis/5.1.0/gcc/4.9.0/lib' \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AddBoostFlags.cmake
Type: text/x-cmake
Size: 695 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150511/06407903/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AddSUPERLUDISTFlags.cmake
Type: text/x-cmake
Size: 720 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150511/06407903/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindSUPERLUDIST.cmake
Type: text/x-cmake
Size: 3447 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150511/06407903/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindBoost.cmake
Type: text/x-cmake
Size: 755 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150511/06407903/attachment-0003.bin>
More information about the Dune
mailing list