Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
162e0367
Commit
162e0367
authored
Oct 04, 2018
by
Praetorius, Simon
Browse files
Added some changes to compiler AMDiS on APPLE systems
parent
beb965bd
Changes
8
Hide whitespace changes
Inline
Side-by-side
AMDiS/cmake3/target_enable_bddcml.cmake
View file @
162e0367
...
@@ -19,7 +19,7 @@ macro(target_enable_bddcml _TARGET_ _SCOPE_)
...
@@ -19,7 +19,7 @@ macro(target_enable_bddcml _TARGET_ _SCOPE_)
message
(
FATAL_ERROR
"Could not find BDDCML headers."
)
message
(
FATAL_ERROR
"Could not find BDDCML headers."
)
endif
()
endif
()
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
find_library
(
BDDCML_LIB bddcml
find_library
(
BDDCML_LIB bddcml
HINTS ENV LIBRARY_PATH
HINTS ENV LIBRARY_PATH
DOC
"BDDCML library"
)
DOC
"BDDCML library"
)
...
@@ -29,7 +29,7 @@ macro(target_enable_bddcml _TARGET_ _SCOPE_)
...
@@ -29,7 +29,7 @@ macro(target_enable_bddcml _TARGET_ _SCOPE_)
else
()
else
()
message
(
FATAL_ERROR
"Could not find the BDDCML library"
)
message
(
FATAL_ERROR
"Could not find the BDDCML library"
)
endif
()
endif
()
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
target_compile_definitions
(
${
_TARGET_
}
${
_SCOPE_
}
HAVE_BDDCML=1
)
target_compile_definitions
(
${
_TARGET_
}
${
_SCOPE_
}
HAVE_BDDCML=1
)
endmacro
(
target_enable_bddcml
)
endmacro
(
target_enable_bddcml
)
AMDiS/cmake3/target_enable_boost.cmake
View file @
162e0367
...
@@ -28,9 +28,9 @@ macro(target_enable_boost _TARGET_ _SCOPE_)
...
@@ -28,9 +28,9 @@ macro(target_enable_boost _TARGET_ _SCOPE_)
find_package
(
Boost
${
BOOST_VERSION
}
REQUIRED
${
BOOST_LIBS_REQUIRED
}
)
find_package
(
Boost
${
BOOST_VERSION
}
REQUIRED
${
BOOST_LIBS_REQUIRED
}
)
target_include_directories
(
${
_TARGET_
}
${
_SCOPE_
}
${
Boost_INCLUDE_DIR
}
)
target_include_directories
(
${
_TARGET_
}
${
_SCOPE_
}
${
Boost_INCLUDE_DIR
}
)
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
Boost_LIBRARIES
}
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
Boost_LIBRARIES
}
)
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
if
(
MSVC_SHARED_LIBS AND LINK_EXECUTABLE
)
if
(
MSVC_SHARED_LIBS AND LINK_EXECUTABLE
)
link_directories
(
${
Boost_LIBRARY_DIRS
}
)
link_directories
(
${
Boost_LIBRARY_DIRS
}
)
...
...
AMDiS/cmake3/target_enable_hypre.cmake
View file @
162e0367
...
@@ -21,7 +21,7 @@ macro(target_enable_hypre _TARGET_ _SCOPE_)
...
@@ -21,7 +21,7 @@ macro(target_enable_hypre _TARGET_ _SCOPE_)
target_include_directories
(
${
_TARGET_
}
${
_SCOPE_
}
${
HYPRE_INCLUDE_DIRECTORIES
}
)
target_include_directories
(
${
_TARGET_
}
${
_SCOPE_
}
${
HYPRE_INCLUDE_DIRECTORIES
}
)
endif
(
_HYPRE_H
)
endif
(
_HYPRE_H
)
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
find_library
(
_HYPRE_LIB HYPRE
find_library
(
_HYPRE_LIB HYPRE
HINTS
${
PETSC_LIBRARY_DIRS
}
)
HINTS
${
PETSC_LIBRARY_DIRS
}
)
...
@@ -41,10 +41,10 @@ macro(target_enable_hypre _TARGET_ _SCOPE_)
...
@@ -41,10 +41,10 @@ macro(target_enable_hypre _TARGET_ _SCOPE_)
find_package
(
LAPACK REQUIRED
)
find_package
(
LAPACK REQUIRED
)
endif
(
LAPACK_LIB
)
endif
(
LAPACK_LIB
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
LAPACK_LIBRARIES
}
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
LAPACK_LIBRARIES
}
)
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
if
(
_HYPRE_H
AND
(
NOT LINK_EXECUTABLE OR _HYPRE_LIB
))
if
(
_HYPRE_H
AND
(
NOT LINK_EXECUTABLE OR _HYPRE_LIB
OR APPLE
))
set
(
HAVE_HYPRE ON
)
set
(
HAVE_HYPRE ON
)
target_compile_definitions
(
${
_TARGET_
}
${
_SCOPE_
}
MTL_HAS_HYPRE
)
target_compile_definitions
(
${
_TARGET_
}
${
_SCOPE_
}
MTL_HAS_HYPRE
)
else
()
else
()
...
...
AMDiS/cmake3/target_enable_petsc.cmake
View file @
162e0367
...
@@ -13,7 +13,7 @@ macro(target_enable_mpi _TARGET_ _SCOPE_)
...
@@ -13,7 +13,7 @@ macro(target_enable_mpi _TARGET_ _SCOPE_)
target_compile_options
(
${
_TARGET_
}
${
_SCOPE_
}
target_compile_options
(
${
_TARGET_
}
${
_SCOPE_
}
${
MPI_CXX_COMPILE_FLAGS
}
)
${
MPI_CXX_COMPILE_FLAGS
}
)
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
# the parameter --enable-new-dtags causes a linker problem, i.e. some libraries are
# the parameter --enable-new-dtags causes a linker problem, i.e. some libraries are
# linked without an rpath (or any other path information) and can not be found while
# linked without an rpath (or any other path information) and can not be found while
# running the executable. The hack below removes this flag manually from the linker flags.
# running the executable. The hack below removes this flag manually from the linker flags.
...
@@ -21,7 +21,7 @@ macro(target_enable_mpi _TARGET_ _SCOPE_)
...
@@ -21,7 +21,7 @@ macro(target_enable_mpi _TARGET_ _SCOPE_)
string
(
STRIP
"
${
MY_MPI_CXX_LINK_FLAGS
}
"
MY_MPI_CXX_LINK_FLAGS
)
string
(
STRIP
"
${
MY_MPI_CXX_LINK_FLAGS
}
"
MY_MPI_CXX_LINK_FLAGS
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
MPI_CXX_LIBRARIES
}
${
MY_MPI_CXX_LINK_FLAGS
}
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
MPI_CXX_LIBRARIES
}
${
MY_MPI_CXX_LINK_FLAGS
}
)
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
endmacro
(
target_enable_mpi
)
endmacro
(
target_enable_mpi
)
macro
(
target_enable_petsc _TARGET_ _SCOPE_
)
macro
(
target_enable_petsc _TARGET_ _SCOPE_
)
...
@@ -74,7 +74,7 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
...
@@ -74,7 +74,7 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
PETSC_VERSION=
${
PETSC_VERSION
}
)
PETSC_VERSION=
${
PETSC_VERSION
}
)
target_compile_options
(
${
_TARGET_
}
${
_SCOPE_
}
${
PETSC_DEFINITIONS
}
)
target_compile_options
(
${
_TARGET_
}
${
_SCOPE_
}
${
PETSC_DEFINITIONS
}
)
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
set
(
PETSC_LINK_LIBRARIES
""
)
set
(
PETSC_LINK_LIBRARIES
""
)
foreach
(
_PETSC_LIB
${
PETSC_LIBRARIES
}
)
foreach
(
_PETSC_LIB
${
PETSC_LIBRARIES
}
)
find_library
(
_PETSC_LINK_LIB
${
_PETSC_LIB
}
PATHS
${
PETSC_LIBRARY_DIRS
}
NO_DEFAULT_PATH
)
find_library
(
_PETSC_LINK_LIB
${
_PETSC_LIB
}
PATHS
${
PETSC_LIBRARY_DIRS
}
NO_DEFAULT_PATH
)
...
@@ -82,7 +82,7 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
...
@@ -82,7 +82,7 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
endforeach
()
endforeach
()
message
(
STATUS
" Found PETSc library
${
PETSC_LINK_LIBRARIES
}
"
)
message
(
STATUS
" Found PETSc library
${
PETSC_LINK_LIBRARIES
}
"
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
PETSC_LINK_LIBRARIES
}
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
PETSC_LINK_LIBRARIES
}
)
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
# parmetis is required
# parmetis is required
...
@@ -104,7 +104,7 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
...
@@ -104,7 +104,7 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
message
(
FATAL_ERROR
"Could not find ParMetis header file 'parmetis.h'!"
)
message
(
FATAL_ERROR
"Could not find ParMetis header file 'parmetis.h'!"
)
endif
(
PARMETIS_HEADER_FILE
)
endif
(
PARMETIS_HEADER_FILE
)
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
find_library
(
PARMETIS_LIB parmetis
find_library
(
PARMETIS_LIB parmetis
HINTS
${
PARMETIS_DIR
}
/lib
${
PETSC_LIBRARY_DIRS
}
)
HINTS
${
PARMETIS_DIR
}
/lib
${
PETSC_LIBRARY_DIRS
}
)
if
(
NOT PARMETIS_LIB
)
if
(
NOT PARMETIS_LIB
)
...
@@ -112,7 +112,7 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
...
@@ -112,7 +112,7 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
endif
(
NOT PARMETIS_LIB
)
endif
(
NOT PARMETIS_LIB
)
message
(
STATUS
" Found ParMetis library
${
PARMETIS_LIB
}
"
)
message
(
STATUS
" Found ParMetis library
${
PARMETIS_LIB
}
"
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
PARMETIS_LIB
}
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
PARMETIS_LIB
}
)
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
# metis is required
# metis is required
...
@@ -125,7 +125,7 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
...
@@ -125,7 +125,7 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
message
(
FATAL_ERROR
"Could not find Metis header file 'metis.h'!"
)
message
(
FATAL_ERROR
"Could not find Metis header file 'metis.h'!"
)
endif
(
METIS_HEADER_FILE
)
endif
(
METIS_HEADER_FILE
)
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
find_library
(
METIS_LIB metis
find_library
(
METIS_LIB metis
HINTS
${
METIS_DIR
}
/lib
${
PETSC_LIBRARY_DIRS
}
)
HINTS
${
METIS_DIR
}
/lib
${
PETSC_LIBRARY_DIRS
}
)
if
(
NOT METIS_LIB
)
if
(
NOT METIS_LIB
)
...
@@ -133,11 +133,11 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
...
@@ -133,11 +133,11 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
endif
(
NOT METIS_LIB
)
endif
(
NOT METIS_LIB
)
message
(
STATUS
" Found Metis library
${
METIS_LIB
}
"
)
message
(
STATUS
" Found Metis library
${
METIS_LIB
}
"
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
METIS_LIB
}
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
METIS_LIB
}
)
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
# blas library is required
# blas library is required
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
find_library
(
BLAS_LIB
find_library
(
BLAS_LIB
NAMES blas fblas openblas
NAMES blas fblas openblas
HINTS
${
BLAS_DIR
}
/lib
${
PETSC_LIBRARY_DIRS
}
/usr/lib/openblas-base /usr/lib/atlas-base
)
HINTS
${
BLAS_DIR
}
/lib
${
PETSC_LIBRARY_DIRS
}
/usr/lib/openblas-base /usr/lib/atlas-base
)
...
@@ -147,11 +147,11 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
...
@@ -147,11 +147,11 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
find_package
(
BLAS REQUIRED
)
find_package
(
BLAS REQUIRED
)
endif
(
BLAS_LIB
)
endif
(
BLAS_LIB
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
BLAS_LIBRARIES
}
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
BLAS_LIBRARIES
}
)
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
# lapack library is required
# lapack library is required
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
find_library
(
LAPACK_LIB
find_library
(
LAPACK_LIB
NAMES lapack flapack
NAMES lapack flapack
HINTS
${
LAPACK_DIR
}
/lib
${
PETSC_LIBRARY_DIRS
}
${
PETSC_DIR
}
/lib
)
HINTS
${
LAPACK_DIR
}
/lib
${
PETSC_LIBRARY_DIRS
}
${
PETSC_DIR
}
/lib
)
...
@@ -161,5 +161,5 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
...
@@ -161,5 +161,5 @@ macro(target_enable_petsc _TARGET_ _SCOPE_)
find_package
(
LAPACK REQUIRED
)
find_package
(
LAPACK REQUIRED
)
endif
(
LAPACK_LIB
)
endif
(
LAPACK_LIB
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
LAPACK_LIBRARIES
}
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
LAPACK_LIBRARIES
}
)
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
endmacro
(
target_enable_petsc
)
endmacro
(
target_enable_petsc
)
AMDiS/cmake3/target_enable_png.cmake
View file @
162e0367
...
@@ -25,7 +25,7 @@ macro(target_enable_png _TARGET_ _SCOPE_)
...
@@ -25,7 +25,7 @@ macro(target_enable_png _TARGET_ _SCOPE_)
get_filename_component
(
PNG_PATH
${
_PNG_H
}
PATH
)
get_filename_component
(
PNG_PATH
${
_PNG_H
}
PATH
)
target_include_directories
(
${
_TARGET_
}
${
_SCOPE_
}
${
PNG_PATH
}
)
target_include_directories
(
${
_TARGET_
}
${
_SCOPE_
}
${
PNG_PATH
}
)
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
find_library
(
_PNG_LIB png
find_library
(
_PNG_LIB png
HINTS ENV LIBRARY_PATH
HINTS ENV LIBRARY_PATH
DOC
"The PNG library"
)
DOC
"The PNG library"
)
...
@@ -34,7 +34,7 @@ macro(target_enable_png _TARGET_ _SCOPE_)
...
@@ -34,7 +34,7 @@ macro(target_enable_png _TARGET_ _SCOPE_)
else
()
else
()
message
(
FATAL_ERROR
"Could not find the PNG library"
)
message
(
FATAL_ERROR
"Could not find the PNG library"
)
endif
()
endif
()
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
target_compile_definitions
(
${
_TARGET_
}
${
_SCOPE_
}
HAVE_PNG=1
)
target_compile_definitions
(
${
_TARGET_
}
${
_SCOPE_
}
HAVE_PNG=1
)
endmacro
(
target_enable_png
)
endmacro
(
target_enable_png
)
AMDiS/cmake3/target_enable_umfpack.cmake
View file @
162e0367
...
@@ -18,9 +18,9 @@ macro(target_enable_umfpack _TARGET_ _SCOPE_)
...
@@ -18,9 +18,9 @@ macro(target_enable_umfpack _TARGET_ _SCOPE_)
if
(
SuiteSparse_FOUND
)
if
(
SuiteSparse_FOUND
)
message
(
STATUS
"Found SuiteSparse CMake-library"
)
message
(
STATUS
"Found SuiteSparse CMake-library"
)
include
(
${
USE_SuiteSparse
}
)
include
(
${
USE_SuiteSparse
}
)
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
SuiteSparse_LIBRARIES
}
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
SuiteSparse_LIBRARIES
}
)
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
target_include_directories
(
${
_TARGET_
}
${
_SCOPE_
}
${
SuiteSparse_INCLUDE_DIR
}
${
SuiteSparse_METIS_INCLUDE_DIR
}
)
target_include_directories
(
${
_TARGET_
}
${
_SCOPE_
}
${
SuiteSparse_INCLUDE_DIR
}
${
SuiteSparse_METIS_INCLUDE_DIR
}
)
set
(
FOUND_SUITESPARSE_LIBS
${
SuiteSparse_LIBRARIES
}
)
set
(
FOUND_SUITESPARSE_LIBS
${
SuiteSparse_LIBRARIES
}
)
else
(
SuiteSparse_FOUND
)
else
(
SuiteSparse_FOUND
)
...
@@ -39,7 +39,7 @@ macro(target_enable_umfpack _TARGET_ _SCOPE_)
...
@@ -39,7 +39,7 @@ macro(target_enable_umfpack _TARGET_ _SCOPE_)
get_filename_component
(
UMFPACK_LIB_PATH
${
UMFPACK_LIBRARY
}
PATH
)
get_filename_component
(
UMFPACK_LIB_PATH
${
UMFPACK_LIBRARY
}
PATH
)
set
(
FOUND_SUITESPARSE_LIBS
${
UMFPACK_LIBRARY
}
)
set
(
FOUND_SUITESPARSE_LIBS
${
UMFPACK_LIBRARY
}
)
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
# find all connected libraries
# find all connected libraries
find_library
(
AMD_LIBRARY amd HINTS
${
UMFPACK_LIB_PATH
}
)
find_library
(
AMD_LIBRARY amd HINTS
${
UMFPACK_LIB_PATH
}
)
...
@@ -70,7 +70,7 @@ macro(target_enable_umfpack _TARGET_ _SCOPE_)
...
@@ -70,7 +70,7 @@ macro(target_enable_umfpack _TARGET_ _SCOPE_)
endif
(
SUITESPARSECONFIG_LIBRARY
)
endif
(
SUITESPARSECONFIG_LIBRARY
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
FOUND_SUITESPARSE_LIBS
}
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
FOUND_SUITESPARSE_LIBS
}
)
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
else
()
else
()
message
(
FATAL_ERROR
"Could not find the UMFPACK header umfpack.h."
)
message
(
FATAL_ERROR
"Could not find the UMFPACK header umfpack.h."
)
endif
(
UMFPACK_H AND UMFPACK_LIBRARY
)
endif
(
UMFPACK_H AND UMFPACK_LIBRARY
)
...
@@ -78,7 +78,7 @@ macro(target_enable_umfpack _TARGET_ _SCOPE_)
...
@@ -78,7 +78,7 @@ macro(target_enable_umfpack _TARGET_ _SCOPE_)
# Check for clock_gettime in librt
# Check for clock_gettime in librt
if
(
NOT WIN32 AND LINK_EXECUTABLE
)
if
(
NOT WIN32
AND
(
LINK_EXECUTABLE
OR APPLE
)
)
include
(
CheckLibraryExists
)
include
(
CheckLibraryExists
)
check_library_exists
(
rt clock_gettime
"time.h"
HAVE_CLOCK_GETTIME
)
check_library_exists
(
rt clock_gettime
"time.h"
HAVE_CLOCK_GETTIME
)
if
(
HAVE_CLOCK_GETTIME
)
if
(
HAVE_CLOCK_GETTIME
)
...
@@ -86,7 +86,7 @@ macro(target_enable_umfpack _TARGET_ _SCOPE_)
...
@@ -86,7 +86,7 @@ macro(target_enable_umfpack _TARGET_ _SCOPE_)
else
()
else
()
check_library_exists
(
c clock_gettime
""
HAVE_CLOCK_GETTIME
)
check_library_exists
(
c clock_gettime
""
HAVE_CLOCK_GETTIME
)
endif
(
HAVE_CLOCK_GETTIME
)
endif
(
HAVE_CLOCK_GETTIME
)
endif
(
NOT WIN32 AND LINK_EXECUTABLE
)
endif
(
NOT WIN32
AND
(
LINK_EXECUTABLE
OR APPLE
)
)
# collect informations about umfpack version and found libraries
# collect informations about umfpack version and found libraries
...
@@ -98,12 +98,12 @@ macro(target_enable_umfpack _TARGET_ _SCOPE_)
...
@@ -98,12 +98,12 @@ macro(target_enable_umfpack _TARGET_ _SCOPE_)
unset
(
_UMFPACK_H CACHE
)
unset
(
_UMFPACK_H CACHE
)
message
(
STATUS
"UMFPACK version:
${
UMFPACK_VERSION
}
"
)
message
(
STATUS
"UMFPACK version:
${
UMFPACK_VERSION
}
"
)
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
message
(
STATUS
"Found the following SuiteSparse libraries:"
)
message
(
STATUS
"Found the following SuiteSparse libraries:"
)
foreach
(
lib
${
FOUND_SUITESPARSE_LIBS
}
)
foreach
(
lib
${
FOUND_SUITESPARSE_LIBS
}
)
message
(
STATUS
"
${
lib
}
"
)
message
(
STATUS
"
${
lib
}
"
)
endforeach
()
endforeach
()
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
endif
(
FOUND_SUITESPARSE_LIBS
)
endif
(
FOUND_SUITESPARSE_LIBS
)
target_compile_definitions
(
${
_TARGET_
}
${
_SCOPE_
}
target_compile_definitions
(
${
_TARGET_
}
${
_SCOPE_
}
...
...
AMDiS/cmake3/target_enable_zoltan.cmake
View file @
162e0367
...
@@ -11,7 +11,7 @@ macro(target_enable_zoltan _TARGET_ _SCOPE_)
...
@@ -11,7 +11,7 @@ macro(target_enable_zoltan _TARGET_ _SCOPE_)
find_file
(
ZOLTAN_HEADER_FILE
"zoltan.h"
PATHS
${
Zoltan_INCLUDE_DIRS
}
)
find_file
(
ZOLTAN_HEADER_FILE
"zoltan.h"
PATHS
${
Zoltan_INCLUDE_DIRS
}
)
target_include_directories
(
${
_TARGET_
}
${
_SCOPE_
}
${
Zoltan_INCLUDE_DIRS
}
)
target_include_directories
(
${
_TARGET_
}
${
_SCOPE_
}
${
Zoltan_INCLUDE_DIRS
}
)
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
foreach
(
LIB_NAME
${
Zoltan_LIBRARIES
}
)
foreach
(
LIB_NAME
${
Zoltan_LIBRARIES
}
)
find_library
(
_ZOLTAN_LIB
${
LIB_NAME
}
HINTS
${
Zoltan_LIBRARY_DIRS
}
)
find_library
(
_ZOLTAN_LIB
${
LIB_NAME
}
HINTS
${
Zoltan_LIBRARY_DIRS
}
)
if
(
NOT _ZOLTAN_LIB
)
if
(
NOT _ZOLTAN_LIB
)
...
@@ -21,7 +21,7 @@ macro(target_enable_zoltan _TARGET_ _SCOPE_)
...
@@ -21,7 +21,7 @@ macro(target_enable_zoltan _TARGET_ _SCOPE_)
endif
()
endif
()
unset
(
_ZOLTAN_LIB CACHE
)
unset
(
_ZOLTAN_LIB CACHE
)
endforeach
(
LIB_NAME
)
endforeach
(
LIB_NAME
)
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
else
(
Zoltan_FOUND
)
else
(
Zoltan_FOUND
)
find_file
(
ZOLTAN_HEADER_FILE
"zoltan.h"
HINTS
${
ZOLTAN_DIR
}
/include
${
PETSC_INCLUDE_DIRS
}
)
find_file
(
ZOLTAN_HEADER_FILE
"zoltan.h"
HINTS
${
ZOLTAN_DIR
}
/include
${
PETSC_INCLUDE_DIRS
}
)
if
(
ZOLTAN_HEADER_FILE
)
if
(
ZOLTAN_HEADER_FILE
)
...
@@ -31,7 +31,7 @@ macro(target_enable_zoltan _TARGET_ _SCOPE_)
...
@@ -31,7 +31,7 @@ macro(target_enable_zoltan _TARGET_ _SCOPE_)
message
(
FATAL_ERROR
"Could not find Zoltan include file 'zoltan.h'!"
)
message
(
FATAL_ERROR
"Could not find Zoltan include file 'zoltan.h'!"
)
endif
(
ZOLTAN_HEADER_FILE
)
endif
(
ZOLTAN_HEADER_FILE
)
if
(
LINK_EXECUTABLE
)
if
(
LINK_EXECUTABLE
OR APPLE
)
find_library
(
ZOLTAN_LIB zoltan
find_library
(
ZOLTAN_LIB zoltan
HINTS
${
Zoltan_INCLUDE_DIR
}
/../lib DOC
"Full path to the zoltan library"
)
HINTS
${
Zoltan_INCLUDE_DIR
}
/../lib DOC
"Full path to the zoltan library"
)
if
(
NOT ZOLTAN_LIB
)
if
(
NOT ZOLTAN_LIB
)
...
@@ -45,7 +45,7 @@ macro(target_enable_zoltan _TARGET_ _SCOPE_)
...
@@ -45,7 +45,7 @@ macro(target_enable_zoltan _TARGET_ _SCOPE_)
else
()
else
()
message
(
WARNING
"Zoltan configuration file Makefile.export.zoltan not found!"
)
message
(
WARNING
"Zoltan configuration file Makefile.export.zoltan not found!"
)
endif
()
endif
()
endif
(
LINK_EXECUTABLE
)
endif
(
LINK_EXECUTABLE
OR APPLE
)
target_compile_definitions
(
${
_TARGET_
}
${
_SCOPE_
}
HAVE_ZOLTAN=1
)
target_compile_definitions
(
${
_TARGET_
}
${
_SCOPE_
}
HAVE_ZOLTAN=1
)
endif
(
Zoltan_FOUND
)
endif
(
Zoltan_FOUND
)
...
...
AMDiS/src/CreatorInterface.h
View file @
162e0367
...
@@ -76,13 +76,11 @@ namespace AMDiS {
...
@@ -76,13 +76,11 @@ namespace AMDiS {
class
NullCreator
:
public
CreatorInterface
<
BaseClass
>
class
NullCreator
:
public
CreatorInterface
<
BaseClass
>
{
{
/// Creates no object.
/// Creates no object.
BaseClass
*
create
()
virtual
BaseClass
*
create
()
override
{
{
return
NULL
;
return
NULL
;
}
}
virtual
~
NullCreator
()
{}
/// Implementation of \ref CreatorInterface::isNullCreator()
/// Implementation of \ref CreatorInterface::isNullCreator()
virtual
bool
isNullCreator
()
override
virtual
bool
isNullCreator
()
override
{
{
...
@@ -101,8 +99,6 @@ namespace AMDiS {
...
@@ -101,8 +99,6 @@ namespace AMDiS {
class
CreatorInterfaceName
:
public
CreatorInterface
<
BaseClass
>
class
CreatorInterfaceName
:
public
CreatorInterface
<
BaseClass
>
{
{
public:
public:
virtual
~
CreatorInterfaceName
()
{}
/// Sets \ref name
/// Sets \ref name
void
setName
(
std
::
string
str
)
void
setName
(
std
::
string
str
)
{
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment