Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amdis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
iwr
amdis
Commits
c7b8f81f
Commit
c7b8f81f
authored
Jan 11, 2018
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added cmake flags for openMP and MPI. Now, ENABLE_PARALLEL_DOMAIN requires ENABLE_MPI.
parent
0362b266
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
32 deletions
+39
-32
AMDiS/CMakeLists.txt
AMDiS/CMakeLists.txt
+31
-2
AMDiS/cmake/amdis_parallel.cmake
AMDiS/cmake/amdis_parallel.cmake
+0
-6
AMDiS/cmake/enable_mtl4.cmake
AMDiS/cmake/enable_mtl4.cmake
+5
-13
AMDiS/cmake3/amdis_parallel.cmake
AMDiS/cmake3/amdis_parallel.cmake
+0
-4
AMDiS/cmake3/target_enable_mtl4.cmake
AMDiS/cmake3/target_enable_mtl4.cmake
+3
-7
No files found.
AMDiS/CMakeLists.txt
View file @
c7b8f81f
...
...
@@ -16,12 +16,35 @@ endif ()
# ------------------------------------------------------------------------------
# some options to control the build process
option
(
ENABLE_
PARALLEL_DOMAIN
"Use parallel domain decomposition"
false
)
option
(
ENABLE_
MPI
"Compile with MPI compiler and library"
false
)
option
(
ENABLE_UMFPACK
"Enable support for the UMFPACK solver"
true
)
option
(
ENABLE_EXTENSIONS
"Use extensions for AMDiS"
false
)
option
(
ENABLE_HYPRE
"Use HYPRE AMG solver"
false
)
option
(
ENABLE_PNG
"Use png reader/writer"
false
)
option
(
ENABLE_SEQ_PETSC
"Use sequential PETSc solvers"
false
)
include
(
CMakeDependentOption
)
cmake_dependent_option
(
ENABLE_PARALLEL_DOMAIN
"Use parallel domain decomposition"
true
"ENABLE_MPI"
false
)
# additional options for parallel_domain
# {
include
(
CMakeDependentOption
)
cmake_dependent_option
(
ENABLE_ZOLTAN
"Add support for the Parallel Partitioning suite Zoltan"
false
"ENABLE_PARALLEL_DOMAIN"
false
)
include
(
CMakeDependentOption
)
cmake_dependent_option
(
ENABLE_PARALLEL_SOLVERS
"Add some problem dependent solver, e.g. Feti, Navier-Stokes and Cahn-Hilliard"
true
"ENABLE_PARALLEL_DOMAIN"
false
)
include
(
CMakeDependentOption
)
cmake_dependent_option
(
ENABLE_BDDCML
"Add support for the BDDCML library"
false
"ENABLE_PARALLEL_DOMAIN"
false
)
# }
# enable/disable some more features
option
(
ENABLE_COMPRESSION
"Use output compression for vtu and arh files"
true
)
...
...
@@ -33,6 +56,12 @@ mark_as_advanced(ENABLE_REINIT)
option
(
ENABLE_COMPOSITE_FEM
"Compile compositeFEM library"
true
)
mark_as_advanced
(
ENABLE_COMPOSITE_FEM
)
option
(
ENABLE_OPENMP
"Compile with OpenMP flags. (Experimental)"
false
)
mark_as_advanced
(
ENABLE_OPENMP
)
option
(
ENABLE_SEQ_PETSC
"Use sequential PETSc solvers"
false
)
mark_as_advanced
(
ENABLE_SEQ_PETSC
)
option
(
BUILD_SHARED_LIBS
"Build all libraries as shared or static, default: shared"
true
)
mark_as_advanced
(
BUILD_SHARED_LIBS
)
...
...
AMDiS/cmake/amdis_parallel.cmake
View file @
c7b8f81f
if
(
ENABLE_PARALLEL_DOMAIN
)
option
(
ENABLE_ZOLTAN
"Add support for the Parallel Partitioning suite Zoltan"
false
)
option
(
ENABLE_PARALLEL_SOLVERS
"Add some problem dependent solver, e.g. Feti, Navier-Stokes and Cahn-Hilliard"
true
)
option
(
ENABLE_BDDCML
"Add support for the BDDCML library"
false
)
mark_as_advanced
(
ENABLE_PARALLEL_SOLVERS
)
mark_as_advanced
(
ENABLE_BDDCML
)
set
(
PARALLEL_DOMAIN_AMDIS_SRC
${
SOURCE_DIR
}
/parallel/DofComm.cc
${
SOURCE_DIR
}
/parallel/CheckerPartitioner.cc
...
...
AMDiS/cmake/enable_mtl4.cmake
View file @
c7b8f81f
...
...
@@ -12,22 +12,14 @@ macro(enable_mtl4 _FLAGS_ _INC_DIRS_ _LIBS_)
endif
(
LINK_EXECUTABLE
)
list
(
APPEND
${
_FLAGS_
}
"-DMTL_ASSERT_FOR_THROW=1"
)
if
(
ENABLE_CXX11 OR AMDIS_NEED_CXX11
)
set
(
CXX_ELEVEN_FEATURE_LIST
"MOVE"
"AUTO"
"RANGEDFOR"
"INITLIST"
"STATICASSERT"
"DEFAULTIMPL"
)
foreach
(
feature
${
CXX_ELEVEN_FEATURE_LIST
}
)
list
(
APPEND
${
_FLAGS_
}
"-DMTL_WITH_
${
feature
}
"
)
endforeach
()
endif
()
if
(
ENABLE_OPENMP
)
find_package
(
OpenMP REQUIRED
)
if
(
OPENMP_FOUND
)
list
(
APPEND
${
_FLAGS_
}
"-DMTL_WITH_OPENMP"
${
OpenMP_CXX_FLAGS
}
)
else
()
message
(
FATAL_ERROR
"OpenMP not found"
)
endif
(
OPENMP_FOUND
)
list
(
APPEND
${
_FLAGS_
}
"-DMTL_WITH_OPENMP"
"-DHAVE_OPENMP"
${
OpenMP_CXX_FLAGS
}
)
endif
(
ENABLE_OPENMP
)
endmacro
(
enable_mtl4
)
AMDiS/cmake3/amdis_parallel.cmake
View file @
c7b8f81f
if
(
ENABLE_PARALLEL_DOMAIN
)
option
(
ENABLE_ZOLTAN
"Add support for the Parallel Partitioning suite Zoltan"
false
)
option
(
ENABLE_PARALLEL_SOLVERS
"Add some problem dependent solver, e.g. Feti, Navier-Stokes and Cahn-Hilliard"
true
)
mark_as_advanced
(
ENABLE_PARALLEL_SOLVERS
)
add_library
(
amdis_parallel INTERFACE
)
target_sources
(
amdis PRIVATE
${
SOURCE_DIR
}
/parallel/DofComm.cc
...
...
AMDiS/cmake3/target_enable_mtl4.cmake
View file @
c7b8f81f
...
...
@@ -19,11 +19,7 @@ macro(target_enable_mtl4 _TARGET_ _SCOPE_)
if
(
ENABLE_OPENMP
)
find_package
(
OpenMP REQUIRED
)
if
(
OPENMP_FOUND
)
target_compile_definitions
(
${
_TARGET_
}
${
_SCOPE_
}
MTL_WITH_OPENMP
)
target_compile_definitions
(
${
_TARGET_
}
${
_SCOPE_
}
MTL_WITH_OPENMP HAVE_OPENMP
)
target_compile_options
(
${
_TARGET_
}
${
_SCOPE_
}
${
OpenMP_CXX_FLAGS
}
)
else
()
message
(
FATAL_ERROR
"OpenMP not found"
)
endif
(
OPENMP_FOUND
)
endif
(
ENABLE_OPENMP
)
endmacro
(
target_enable_mtl4
)
Write
Preview
Markdown
is supported
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