Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • SLMS/loadbalancing
1 result
Select Git revision
Show changes
Commits on Source (85)
Showing
with 485 additions and 293 deletions
*.swp
*.swo
example/CMakeProject/all_build/*
example/CMakeProject/all_package/*
example/CMakeProject/ALL_test.cpp
example/CMakeProject/build/*
stages:
- init
- test_projects
- build_mpich_gcc8
- build_openmpi_gcc8
- build_openmpi_gcc10_vtk9
- build_mpich_gcc9
- build_openmpi_gcc9
- build_mpich_gcc10
......@@ -16,478 +17,352 @@ before_script:
# - ls -l ci
- mkdir -p badges/
badges:
stage: init
tags:
- linux
when: always
only:
- master
script:
./ci/build_mpi.sh --badge-filename badge_build-openmpi_${CI_COMMIT_REF_NAME}.svg --badge-only
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: true
build-mpich-nofortran-gcc8:
stage: build_mpich_gcc8
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc8-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc8-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-mpich-nofortran-gcc9:
stage: build_mpich_gcc9
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc9-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc9-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-mpich-nofortran-gcc10:
stage: build_mpich_gcc10
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc10-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc10-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-mpich-fortran-gcc8:
stage: build_mpich_gcc8
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc8-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc8-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_fortran.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-mpich-fortran-gcc9:
stage: build_mpich_gcc9
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc9-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc9-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_fortran.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-mpich-fortran-gcc10:
stage: build_mpich_gcc10
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc10-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc10-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_fortran.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
#build-mpich-fortran-f08-gcc8:
# stage: build_mpich_gcc8
# image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc8-full
# image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc8-full
# tags:
# - public-docker
# when: always
# script:
# - ./ci/build_mpi_fortran_f08.sh
# artifacts:
# name: pages
# when: always
# paths:
# - badges/
# allow_failure: true
build-mpich-fortran-f08-gcc9:
stage: build_mpich_gcc9
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc9-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc9-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_fortran_f08.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-mpich-fortran-f08-gcc10:
stage: build_mpich_gcc10
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc10-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc10-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_fortran_f08.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-mpich-voronoi-gcc8:
stage: build_mpich_gcc8
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc8-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc8-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_voronoi.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-mpich-voronoi-gcc9:
stage: build_mpich_gcc9
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc9-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc9-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_voronoi.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-mpich-voronoi-gcc10:
stage: build_mpich_gcc10
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc10-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc10-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_voronoi.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-openmpi-nofortran-gcc8:
stage: build_openmpi_gcc8
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc8-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc8-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-openmpi-nofortran-gcc9:
stage: build_openmpi_gcc9
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc9-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc9-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-openmpi-nofortran-gcc10:
stage: build_openmpi_gcc10
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc10-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc10-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-openmpi-fortran-gcc8:
stage: build_openmpi_gcc8
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc8-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc8-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_fortran.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-openmpi-fortran-gcc9:
stage: build_openmpi_gcc9
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc9-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc9-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_fortran.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-openmpi-fortran-gcc10:
stage: build_openmpi_gcc10
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc10-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc10-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_fortran.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-openmpi-fortran-f08-gcc8:
stage: build_openmpi_gcc8
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc8-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc8-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_fortran_f08.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: true
build-openmpi-fortran-f08-gcc9:
stage: build_openmpi_gcc9
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc9-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc9-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_fortran_f08.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: true
build-openmpi-fortran-f08-gcc10:
stage: build_openmpi_gcc10
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc10-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc10-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_fortran_f08.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: true
build-openmpi-voronoi-gcc8:
stage: build_openmpi_gcc8
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc8-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc8-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_voronoi.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: true
build-openmpi-voronoi-gcc9:
stage: build_openmpi_gcc9
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc9-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc9-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_voronoi.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: true
build-openmpi-voronoi-gcc10:
stage: build_openmpi_gcc10
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc10-full
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc10-full
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_voronoi.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: true
build-mpich-complete-gcc8:
stage: build_mpich_gcc8
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc8-full:latest
image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc8-full:latest
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_complete_gcc8.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: true
build-mpich-complete-gcc9:
stage: build_mpich_gcc9
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc9-full:latest
image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc9-full:latest
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_complete.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-mpich-complete-gcc10:
stage: build_mpich_gcc10
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/mpich-gcc10-full:latest
image: registry.jsc.fz-juelich.de/slms/loadbalancing/mpich-gcc10-full:latest
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_complete.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-openmpi-complete-gcc8:
stage: build_openmpi_gcc8
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc8-full:latest
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc8-full:latest
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_complete.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-openmpi-complete-gcc9:
stage: build_openmpi_gcc9
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc9-full:latest
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc9-full:latest
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_complete.sh
artifacts:
name: pages
when: always
paths:
- badges/
allow_failure: false
build-openmpi-complete-gcc10:
stage: build_openmpi_gcc10
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc10-full:latest
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc10-full:latest
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_complete.sh
artifacts:
name: pages
allow_failure: false
build-openmpi-complete-gcc10-vtk9:
stage: build_openmpi_gcc10_vtk9
image:
name: registry.jsc.fz-juelich.de/slms/loadbalancing/vtk9-v1:latest
tags:
- public-docker
when: always
script:
- ./ci/build_mpi_complete_vtk9.sh
allow_failure: false
test-project-cmake:
stage: test_projects
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc10-full:latest
tags:
- public-docker
when: always
script:
- ./ci/test_project_cmake.sh
allow_failure: false
test-project-cmake-subdir:
stage: test_projects
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc10-full:latest
tags:
- public-docker
when: always
paths:
- badges/
script:
- ./ci/test_project_cmake_subdir.sh
allow_failure: false
test-project-makefile:
stage: test_projects
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc10-full:latest
tags:
- public-docker
when: always
script:
- ./ci/test_project_makefile.sh
allow_failure: false
release:
stage: release
only:
- /^releases/.*$/
image: gitlab.version.fz-juelich.de:5555/slms/loadbalancing/openmpi-gcc8-full:latest
image: registry.jsc.fz-juelich.de/slms/loadbalancing/openmpi-gcc8-full:latest
tags:
- public-docker
script:
......
......@@ -2,8 +2,37 @@
Changelog
=========
Version 1.0
-----------
Version 1.0.0
*************
Version 0.9
-----------
Version 0.9.2
*************
- *CHANGE*: The old CMake policy ``CMP0004``, which was required for some MPI
installations, is no longer set. If this is still required: Please contact
us.
- *CHANGE*: Fortran modules are now installed in ``/lib``, instead of
``/include/modules``.
- Feature: Integration tests are only generated if ``CM_ALL_TESTS_INTEGRATION``
is set.
- Feature: Example CMake and Make projects for integrating ALL into the build
process.
- Bug: CMake dependencies between targets and link and include inheritance
corrected.
- Feature: Add ALL_Tensor feature test.
- Bug: VTK fails to include <limits>, so we take care of that (for GCC 11 and
VTK 9.3.0)
- Bug: setVertices was required for printVTKoutlines to output updated vertices.
- Feature: Fortran API supports retrieval of error string
- Feature: Testing against VTK 7 as well as 9
- Bug: A nested namespace definition was removed, which is only allowed in C++17.
Version 0.9.1
*************
......
......@@ -8,11 +8,12 @@ option(CM_ALL_USE_F08 "Use some Fortran 2008 features (mpi_f08)" OFF)
option(CM_ALL_FORTRAN_ERROR_ABORT "Abort on any error when using the
Fortran interface" OFF)
option(CM_ALL_TESTS "Enables test suite" OFF)
option(CM_ALL_TESTS_INTEGRATION "Enables integration tests" OFF)
option(CM_ALL_AUTO_DOC "Enables creation of auto-documentation")
# leading and trailing whitespace should be silently ignored
# thanks to an old FindMPI script
cmake_policy(SET CMP0004 OLD)
# cmake_policy(SET CMP0004 OLD)
enable_language(CXX)
enable_language(C)
......@@ -48,7 +49,7 @@ add_compile_options("$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C>,$<C_COMPILER_
add_compile_options("$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:GNU>>:-Wall;-Wextra>")
project(ALL
VERSION "0.9.1"
VERSION "0.9.2"
DESCRIPTION "A Loadbalacing Library"
HOMEPAGE_URL "http://slms.pages.jsc.fz-juelich.de/websites/all-website/")
......@@ -56,14 +57,35 @@ project(ALL
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
if (CM_ALL_FORTRAN)
find_package(MPI REQUIRED COMPONENTS CXX Fortran)
find_package(MPI REQUIRED COMPONENTS C CXX Fortran)
else()
find_package(MPI REQUIRED COMPONENTS CXX)
find_package(MPI REQUIRED COMPONENTS C CXX)
endif (CM_ALL_FORTRAN)
# Prepare the Config.cmake.in
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/Config.cmake.in
"@PACKAGE_INIT@\n
\n
include(CMakeFindDependencyMacro)\n
find_dependency(MPI)\n"
)
if(CM_ALL_VTK_OUTPUT)
message("Using VTK output")
find_package(VTK)
if(NOT VTK_FOUND)
message(FATAL_ERROR "VTK not found, help CMake to find it by setting VTK_LIBRARY and VTK_INCLUDE_DIR")
else()
if (VTK_MAJOR_VERSION GREATER_EQUAL 9)
find_package(VTK REQUIRED COMPONENTS
CommonCore
CommonDataModel
FiltersProgrammable
IOParallelXML
IOXML
ParallelMPI
)
else()
find_package(VTK REQUIRED COMPONENTS
vtkCommonCore
vtkCommonDataModel
......@@ -72,24 +94,27 @@ if(CM_ALL_VTK_OUTPUT)
vtkIOXML
vtkParallelMPI
)
if(NOT VTK_FOUND)
message(FATAL_ERROR "VTK not found, help CMake to find it by setting VTK_LIBRARY and VTK_INCLUDE_DIR")
endif()
# todo(s.schulz): this can be replaced from 3.12 onwards with add_compile_definitions
add_compile_options("-DALL_VTK_OUTPUT")
endif()
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/Config.cmake.in "find_dependency(VTK)\n")
endif(CM_ALL_VTK_OUTPUT)
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/Config.cmake.in
"include(\"\${CMAKE_CURRENT_LIST_DIR}/ALLTargets.cmake\")\n
check_required_components(ALL)\n"
)
if (CM_ALL_DEBUG)
message("Using ALL debug information")
add_compile_options("-DALL_DEBUG_ENABLED")
add_compile_definitions("ALL_DEBUG_ENABLED")
endif(CM_ALL_DEBUG)
if(CM_ALL_FORTRAN_ERROR_ABORT)
add_compile_options("-DALL_FORTRAN_ERROR_ABORT")
add_compile_definitions("ALL_FORTRAN_ERROR_ABORT")
endif()
if(CM_ALL_USE_F08 AND MPI_Fortran_HAVE_F08_MODULE)
add_compile_options("-DALL_USE_F08")
add_compile_definitions("DALL_USE_F08")
elseif(CM_ALL_USE_F08 AND NOT MPI_Fortran_HAVE_F08_MODULE)
message(FATAL_ERROR "Fortran 2008 MPI chosen, but MPI installation does not support the Fortran 2008 modules")
endif(CM_ALL_USE_F08 AND MPI_Fortran_HAVE_F08_MODULE)
......@@ -97,12 +122,14 @@ endif(CM_ALL_USE_F08 AND MPI_Fortran_HAVE_F08_MODULE)
if(CM_ALL_VORONOI)
message(STATUS "compiling voro++ version in contrib/voro++")
add_subdirectory(contrib/voro++)
set(CM_ALL_VORO_INC ${CMAKE_SOURCE_DIR}/contrib/voro++/include)
set(CM_ALL_VORO_LIB "-L${CMAKE_BINARY_DIR}/contrib/voro++/src -lvoro")
add_compile_options("-DALL_VORONOI_ACTIVE")
endif()
if(CM_ALL_TESTS_INTEGRATION)
if(NOT CM_ALL_TESTS)
message(WARNING "Integration tests enabled, but testing itself not. No tests will be generated!")
endif()
endif()
set(STB_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/contrib/stb)
set(STB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/contrib/stb)
add_subdirectory(src)
add_subdirectory(example)
......@@ -117,4 +144,46 @@ if(CM_ALL_AUTO_DOC)
add_subdirectory("docs")
endif(CM_ALL_AUTO_DOC)
# Export targets and create package
install(EXPORT ALLTargets
NAMESPACE ALL::
FILE ALLTargets.cmake
DESTINATION lib/cmake/ALL
)
include(CMakePackageConfigHelpers)
configure_package_config_file(${CMAKE_CURRENT_BINARY_DIR}/Config.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/ALLConfig.cmake"
INSTALL_DESTINATION lib/cmake/ALL
)
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/ALLConfigVersion.cmake"
VERSION "${ALL_VERSION}"
COMPATIBILITY SameMajorVersion)
install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/ALLConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/ALLConfigVersion.cmake"
DESTINATION lib/cmake/ALL)
# Create Makefile.libALL.in for inclusion in external Makefile projects
# todo(s.schulz): The include directories and libraries should be auto
# detected... but that is not easily done right now. Ideally, this should also
# provide the very long VTK linker flags.
set(ALL_MAKEFILE_INC ${CMAKE_CURRENT_BINARY_DIR}/Makefile.libALL.in)
get_target_property(_liball_defines ALL INTERFACE_COMPILE_DEFINITIONS)
list(TRANSFORM _liball_defines PREPEND " -D")
list(JOIN _liball_defines " " _liball_defines_string)
file(WRITE ${ALL_MAKEFILE_INC} "LIBALL_DEFINES := ${_liball_defines_string}\n")
file(APPEND ${ALL_MAKEFILE_INC} "LIBALL_INCLUDE := -I\$(ALL_DIR)/include\n")
file(APPEND ${ALL_MAKEFILE_INC} "LIBALL_LIB :=\n")
if(CM_ALL_FORTRAN)
file(APPEND ${ALL_MAKEFILE_INC} "LIBALL_LIB += \$(ALL_DIR)/lib/libALL_fortran.a \$(ALL_DIR)/lib/libALL.a -lstdc++\n")
file(APPEND ${ALL_MAKEFILE_INC} "LIBALL_INCLUDE += -I\$(ALL_DIR)/lib\n")
endif()
if(CM_ALL_VORONOI)
file(APPEND ${ALL_MAKEFILE_INC} "LIBALL_LIB += \$(ALL_DIR)/lib/libvoro.a\n")
endif()
install(FILES ${ALL_MAKEFILE_INC} DESTINATION lib/make)
# vim: sw=4 ts=4 et
#!/bin/bash
source $(cd "$(dirname "$0")"; pwd -P)/ci_funcs.sh
# create badge
create_badge "${BADGE_FILENAME}" build-mpi unknown "--color=#808080"
[[ ${BADGE_ONLY} ]] && pushbadge_exit "${BADGE_FILENAME}" 0
# load MPI environment
load_MPI
......@@ -16,12 +12,4 @@ if [[ $? == 0 ]]; then
#CC=/usr/lib64/mpi/gcc/openmpi3/bin/mpicc CXX=/usr/lib64/mpi/gcc/openmpi3/bin/mpicxx FC=/usr/lib64/mpi/gcc/openmpi3/bin/mpif90 ${CMAKE} ..
${CMAKE} ..
make VERBOSE=1
if [[ $? == 0 ]]; then
create_badge "${BADGE_FILENAME}" build-mpi passed --color=green
pushbadge_exit "${BADGE_FILENAME}" 0
fi
fi
create_badge "${BADGE_FILENAME}" build-mpi failed --color=red
pushbadge_exit "${BADGE_FILENAME}" 1
#!/bin/bash
set -exo pipefail
source $(cd "$(dirname "$0")"; pwd -P)/ci_funcs.sh
# create badge
create_badge "${BADGE_FILENAME}" build-mpi unknown "--color=#808080"
[[ ${BADGE_ONLY} ]] && pushbadge_exit "${BADGE_FILENAME}" 0
dot -v
# load MPI environment
load_MPI
......@@ -16,13 +15,5 @@ if [[ $? == 0 ]]; then
#CC=/usr/lib64/mpi/gcc/openmpi3/bin/mpicc CXX=/usr/lib64/mpi/gcc/openmpi3/bin/mpicxx FC=/usr/lib64/mpi/gcc/openmpi3/bin/mpif90 ${CMAKE} ..
${CMAKE} .. -DCM_ALL_FORTRAN=ON -DCM_ALL_USE_F08=ON -DCM_ALL_VORONOI=ON -DCM_ALL_VTK_OUTPUT=ON -DCM_ALL_TESTS=ON -DCM_ALL_AUTO_DOC=ON -DVTK_DIR=/usr/local/lib/cmake/vtk-7.1
make VERBOSE=1
ctest -L unit
if [[ $? == 0 ]]; then
create_badge "${BADGE_FILENAME}" build-mpi passed --color=green
pushbadge_exit "${BADGE_FILENAME}" 0
make test
fi
fi
create_badge "${BADGE_FILENAME}" build-mpi failed --color=red
pushbadge_exit "${BADGE_FILENAME}" 1
#!/bin/bash
source $(cd "$(dirname "$0")"; pwd -P)/ci_funcs.sh
# create badge
create_badge "${BADGE_FILENAME}" build-mpi unknown "--color=#808080"
[[ ${BADGE_ONLY} ]] && pushbadge_exit "${BADGE_FILENAME}" 0
# load MPI environment
load_MPI
......@@ -16,13 +12,5 @@ if [[ $? == 0 ]]; then
#CC=/usr/lib64/mpi/gcc/openmpi3/bin/mpicc CXX=/usr/lib64/mpi/gcc/openmpi3/bin/mpicxx FC=/usr/lib64/mpi/gcc/openmpi3/bin/mpif90 ${CMAKE} ..
${CMAKE} .. -DCM_ALL_FORTRAN=ON -DCM_ALL_VORONOI=ON -DCM_ALL_VTK_OUTPUT=ON -DCM_ALL_TESTS=ON -DCM_ALL_AUTO_DOC=ON -DVTK_DIR=/usr/local/lib/cmake/vtk-7.1
make VERBOSE=1
ctest -L unit
if [[ $? == 0 ]]; then
create_badge "${BADGE_FILENAME}" build-mpi passed --color=green
pushbadge_exit "${BADGE_FILENAME}" 0
make test
fi
fi
create_badge "${BADGE_FILENAME}" build-mpi failed --color=red
pushbadge_exit "${BADGE_FILENAME}" 1
#!/bin/bash
set -exo pipefail
source $(cd "$(dirname "$0")"; pwd -P)/ci_funcs.sh
#dot -v
which ls
ls /usr/local/lib/cmake/
# load MPI environment
load_MPI
# build
mkdir -p build && cd build
if [[ $? == 0 ]]; then
#CC=/usr/lib64/mpi/gcc/openmpi3/bin/mpicc CXX=/usr/lib64/mpi/gcc/openmpi3/bin/mpicxx FC=/usr/lib64/mpi/gcc/openmpi3/bin/mpif90 ${CMAKE} ..
${CMAKE} .. -DCM_ALL_FORTRAN=ON -DCM_ALL_USE_F08=ON -DCM_ALL_VORONOI=ON -DCM_ALL_VTK_OUTPUT=ON -DCM_ALL_TESTS=ON -DCM_ALL_AUTO_DOC=OFF -DVTK_DIR=/usr/local/lib/cmake/vtk-9.0
make
make test
fi
#!/bin/bash
source $(cd "$(dirname "$0")"; pwd -P)/ci_funcs.sh
# create badge
create_badge "${BADGE_FILENAME}" build-mpi unknown "--color=#808080"
[[ ${BADGE_ONLY} ]] && pushbadge_exit "${BADGE_FILENAME}" 0
# load MPI environment
load_MPI
......@@ -19,12 +15,4 @@ if [[ $? == 0 ]]; then
#CC=/usr/lib64/mpi/gcc/openmpi3/bin/mpicc CXX=/usr/lib64/mpi/gcc/openmpi3/bin/mpicxx FC=/usr/lib64/mpi/gcc/openmpi3/bin/mpifort ${CMAKE} .. -DCM_ALL_FORTRAN=ON
${CMAKE} .. -DCM_ALL_FORTRAN=ON
make VERBOSE=1
if [[ $? == 0 ]]; then
create_badge "${BADGE_FILENAME}" build-mpi passed --color=green
pushbadge_exit "${BADGE_FILENAME}" 0
fi
fi
create_badge "${BADGE_FILENAME}" build-mpi failed --color=red
pushbadge_exit "${BADGE_FILENAME}" 1
#!/bin/bash
source $(cd "$(dirname "$0")"; pwd -P)/ci_funcs.sh
# create badge
create_badge "${BADGE_FILENAME}" build-mpi unknown "--color=#808080"
[[ ${BADGE_ONLY} ]] && pushbadge_exit "${BADGE_FILENAME}" 0
# load MPI environment
load_MPI
......@@ -19,12 +15,4 @@ if [[ $? == 0 ]]; then
#CC=/usr/lib64/mpi/gcc/openmpi3/bin/mpicc CXX=/usr/lib64/mpi/gcc/openmpi3/bin/mpicxx FC=/usr/lib64/mpi/gcc/openmpi3/bin/mpifort ${CMAKE} .. -DCM_ALL_FORTRAN=ON -DCM_ALL_USE_F08=ON
${CMAKE} .. -DCM_ALL_FORTRAN=ON -DCM_ALL_USE_F08=ON
make VERBOSE=1
if [[ $? == 0 ]]; then
create_badge "${BADGE_FILENAME}" build-mpi passed --color=green
pushbadge_exit "${BADGE_FILENAME}" 0
fi
fi
create_badge "${BADGE_FILENAME}" build-mpi failed --color=red
pushbadge_exit "${BADGE_FILENAME}" 1
#!/bin/bash
source $(cd "$(dirname "$0")"; pwd -P)/ci_funcs.sh
# create badge
create_badge "${BADGE_FILENAME}" build-mpi unknown "--color=#808080"
[[ ${BADGE_ONLY} ]] && pushbadge_exit "${BADGE_FILENAME}" 0
# load MPI environment
load_MPI
......@@ -16,12 +12,4 @@ if [[ $? == 0 ]]; then
#CC=/usr/lib64/mpi/gcc/openmpi3/bin/mpicc CXX=/usr/lib64/mpi/gcc/openmpi3/bin/mpicxx FC=/usr/lib64/mpi/gcc/openmpi3/bin/mpif90 ${CMAKE} .. -DCM_ALL_VORONOI=ON
${CMAKE} .. -DCM_ALL_VORONOI=ON
make VERBOSE=1
if [[ $? == 0 ]]; then
create_badge "${BADGE_FILENAME}" build-mpi passed --color=green
pushbadge_exit "${BADGE_FILENAME}" 0
fi
fi
create_badge "${BADGE_FILENAME}" build-mpi failed --color=red
pushbadge_exit "${BADGE_FILENAME}" 1
# make sure profile is really loaded
# source /etc/profile
# create a badge in current directory
function create_badge {
......@@ -35,6 +37,15 @@ function load_MPI {
echo "load MPI libs"
}
function find_ALL {
ALL_ROOT_DIR="$CI_SCRIPT_PATH/.."
}
function find_VTK {
#VTK_DIR="$CI_SCRIPT_PATH/../../vtk_bin" #local machine
VTK_DIR=/usr/local
}
# push badge to tmp-branch and exit
function pushbadge_exit {
local CP_FILE=$1
......
FROM gitlab.version.fz-juelich.de:5555/slms/loadbalancing/spack_v2:latest
LABEL maintainer="Rene Halver <r.halver@fz-juelich.de>"
RUN update-alternatives --force --install /usr/bin/gcc gcc /usr/bin/gcc-10 40 && \
update-alternatives --force --install /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-10 40 && \
update-alternatives --force --install /usr/bin/gcc-nm gcc-nm /usr/bin/gcc-nm-10 40 && \
update-alternatives --force --install /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-10 40 && \
update-alternatives --force --install /usr/bin/g++ g++ /usr/bin/g++-10 40 && \
update-alternatives --force --install /usr/bin/gfortran gfortran /usr/bin/gfortran-10 40 && \
update-alternatives --force --install /usr/bin/gcov gcov /usr/bin/gcov-10 40 && \
update-alternatives --force --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-10 40 && \
update-alternatives --force --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-10 40
ADD packages.yaml /root/.spack/packages.yaml
RUN spack install cmake && \
/root/spack-rm-confdir3.sh && \
spack clean -a && \
spack view --dependencies true symlink --ignore-conflicts /usr/local cmake
RUN spack install mpich && \
/root/spack-rm-confdir3.sh && \
spack clean -a && \
spack view --dependencies true symlink /usr/local mpich
ADD vtk_shrunk.tar.gz /
RUN mkdir vtk_build && \
cd vtk_build && \
CC=gcc CXX=g++ cmake ../vtk \
$(EXT_LTO_CMFLAGS) \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DVTK_Group_MPI=OFF \
-DVTK_Group_Rendering=OFF \
-DVTK_Group_StandAlone=OFF \
-DVTK_RENDERING_BACKEND=None \
-DVTK_USE_CXX11_FEATURES=ON \
-DModule_vtkCommonDataModel=ON \
-DModule_vtkFiltersProgrammable=ON \
-DModule_vtkIOParallelXML=ON \
-DModule_vtkParallelMPI=ON && \
make -j 4 -C . && \
make -C . install
#RUN spack install vtk -osmesa -opengl2 -qt ^mpich && \
# /root/spack-rm-confdir3.sh && \
# spack clean -a && \
# spack view --dependencies false symlink --ignore-conflicts /usr/local vtk
#RUN spack dependencies graphviz~ghostscript && \
# spack graph mesa~llvm && \
# spack graph graphviz~ghostscript ^osmesa~llvm && \
# spack install graphviz~ghostscript ^osmesa~llvm && \
# spack view --dependencies no symlink --ignore-conflicts /usr/local graphviz
RUN apt-get -y install graphviz && \
apt-get -y install libboost-all-dev
RUN spack install doxygen && \
spack install py-sphinx && \
spack install py-breathe && \
spack install py-recommonmark && \
spack install py-commonmark && \
spack install py-pip && \
spack install hugo && \
/root/spack-rm-confdir3.sh && \
spack clean -a && \
spack view --dependencies no symlink --ignore-conflicts /usr/local doxygen && \
spack view --dependencies true symlink --ignore-conflicts /usr/local py-sphinx && \
spack view --dependencies true symlink --ignore-conflicts /usr/local py-pip && \
spack view --dependencies no symlink --ignore-conflicts /usr/local py-breathe && \
spack view --dependencies no symlink --ignore-conflicts /usr/local py-recommonmark && \
spack view --dependencies no symlink --ignore-conflicts /usr/local py-commonmark && \
spack view --dependencies no symlink --ignore-conflicts /usr/local hugo && \
pip install sphinx_rtd_theme
packages:
all:
target: ["x86_64"]
compiler: [gcc@10]
File added
FROM gitlab.version.fz-juelich.de:5555/slms/loadbalancing/spack_v2:latest
LABEL maintainer="Rene Halver <r.halver@fz-juelich.de>"
RUN update-alternatives --force --install /usr/bin/gcc gcc /usr/bin/gcc-8 40 && \
update-alternatives --force --install /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-8 40 && \
update-alternatives --force --install /usr/bin/gcc-nm gcc-nm /usr/bin/gcc-nm-8 40 && \
update-alternatives --force --install /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-8 40 && \
update-alternatives --force --install /usr/bin/g++ g++ /usr/bin/g++-8 40 && \
update-alternatives --force --install /usr/bin/gfortran gfortran /usr/bin/gfortran-8 40 && \
update-alternatives --force --install /usr/bin/gcov gcov /usr/bin/gcov-8 40 && \
update-alternatives --force --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-8 40 && \
update-alternatives --force --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-8 40
ADD packages.yaml /root/.spack/packages.yaml
RUN spack install cmake && \
/root/spack-rm-confdir3.sh && \
spack clean -a && \
spack view --dependencies true symlink --ignore-conflicts /usr/local cmake
RUN spack install mpich && \
/root/spack-rm-confdir3.sh && \
spack clean -a && \
spack view --dependencies true symlink /usr/local mpich
ADD vtk_shrunk.tar.gz /
RUN mkdir vtk_build && \
cd vtk_build && \
CC=gcc CXX=g++ cmake ../vtk \
$(EXT_LTO_CMFLAGS) \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DVTK_Group_MPI=OFF \
-DVTK_Group_Rendering=OFF \
-DVTK_Group_StandAlone=OFF \
-DVTK_RENDERING_BACKEND=None \
-DVTK_USE_CXX11_FEATURES=ON \
-DModule_vtkCommonDataModel=ON \
-DModule_vtkFiltersProgrammable=ON \
-DModule_vtkIOParallelXML=ON \
-DModule_vtkParallelMPI=ON && \
make -j 4 -C . && \
make -C . install
#RUN spack install vtk -osmesa -opengl2 -qt ^mpich && \
# /root/spack-rm-confdir3.sh && \
# spack clean -a && \
# spack view --dependencies false symlink --ignore-conflicts /usr/local vtk
#RUN spack dependencies graphviz~ghostscript && \
# spack graph mesa~llvm && \
# spack graph graphviz~ghostscript ^osmesa~llvm && \
# spack install graphviz~ghostscript ^osmesa~llvm && \
# spack view --dependencies no symlink --ignore-conflicts /usr/local graphviz
RUN apt-get -y install graphviz && \
apt-get -y install libboost-all-dev
RUN spack install doxygen && \
spack install py-sphinx && \
spack install py-breathe && \
spack install py-recommonmark && \
spack install py-commonmark && \
spack install py-pip && \
spack install hugo && \
/root/spack-rm-confdir3.sh && \
spack clean -a && \
spack view --dependencies no symlink --ignore-conflicts /usr/local doxygen && \
spack view --dependencies true symlink --ignore-conflicts /usr/local py-sphinx && \
spack view --dependencies true symlink --ignore-conflicts /usr/local py-pip && \
spack view --dependencies no symlink --ignore-conflicts /usr/local py-breathe && \
spack view --dependencies no symlink --ignore-conflicts /usr/local py-recommonmark && \
spack view --dependencies no symlink --ignore-conflicts /usr/local py-commonmark && \
spack view --dependencies no symlink --ignore-conflicts /usr/local hugo && \
pip install sphinx_rtd_theme
packages:
vtk:
variants: +mpi
version: [8.2]
all:
target: ["x86_64"]
compiler: [gcc@8]
File added
FROM gitlab.version.fz-juelich.de:5555/slms/loadbalancing/spack_v2:latest
LABEL maintainer="Rene Halver <r.halver@fz-juelich.de>"
RUN update-alternatives --force --install /usr/bin/gcc gcc /usr/bin/gcc-9 40 && \
update-alternatives --force --install /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-9 40 && \
update-alternatives --force --install /usr/bin/gcc-nm gcc-nm /usr/bin/gcc-nm-9 40 && \
update-alternatives --force --install /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-9 40 && \
update-alternatives --force --install /usr/bin/g++ g++ /usr/bin/g++-9 40 && \
update-alternatives --force --install /usr/bin/gfortran gfortran /usr/bin/gfortran-9 40 && \
update-alternatives --force --install /usr/bin/gcov gcov /usr/bin/gcov-9 40 && \
update-alternatives --force --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-9 40 && \
update-alternatives --force --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-9 40
ADD packages.yaml /root/.spack/packages.yaml
RUN spack install cmake && \
/root/spack-rm-confdir3.sh && \
spack clean -a && \
spack view --dependencies true symlink --ignore-conflicts /usr/local cmake
RUN spack install mpich && \
/root/spack-rm-confdir3.sh && \
spack clean -a && \
spack view --dependencies true symlink /usr/local mpich
ADD vtk_shrunk.tar.gz /
RUN mkdir vtk_build && \
cd vtk_build && \
CC=gcc CXX=g++ cmake ../vtk \
$(EXT_LTO_CMFLAGS) \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DVTK_Group_MPI=OFF \
-DVTK_Group_Rendering=OFF \
-DVTK_Group_StandAlone=OFF \
-DVTK_RENDERING_BACKEND=None \
-DVTK_USE_CXX11_FEATURES=ON \
-DModule_vtkCommonDataModel=ON \
-DModule_vtkFiltersProgrammable=ON \
-DModule_vtkIOParallelXML=ON \
-DModule_vtkParallelMPI=ON && \
make -j 4 -C . && \
make -C . install
#RUN spack install vtk -osmesa -opengl2 -qt ^mpich && \
# /root/spack-rm-confdir3.sh && \
# spack clean -a && \
# spack view --dependencies false symlink --ignore-conflicts /usr/local vtk
#RUN spack dependencies graphviz~ghostscript && \
# spack graph mesa~llvm && \
# spack graph graphviz~ghostscript ^osmesa~llvm && \
# spack install graphviz~ghostscript ^osmesa~llvm && \
# spack view --dependencies no symlink --ignore-conflicts /usr/local graphviz
RUN apt-get -y install graphviz && \
apt-get -y install libboost-all-dev
RUN spack install doxygen && \
spack install py-sphinx && \
spack install py-breathe && \
spack install py-recommonmark && \
spack install py-commonmark && \
spack install py-pip && \
spack install hugo && \
/root/spack-rm-confdir3.sh && \
spack clean -a && \
spack view --dependencies no symlink --ignore-conflicts /usr/local doxygen && \
spack view --dependencies true symlink --ignore-conflicts /usr/local py-sphinx && \
spack view --dependencies true symlink --ignore-conflicts /usr/local py-pip && \
spack view --dependencies no symlink --ignore-conflicts /usr/local py-breathe && \
spack view --dependencies no symlink --ignore-conflicts /usr/local py-recommonmark && \
spack view --dependencies no symlink --ignore-conflicts /usr/local py-commonmark && \
spack view --dependencies no symlink --ignore-conflicts /usr/local hugo && \
pip install sphinx_rtd_theme
packages:
vtk:
variants: +mpi
version: [8.2]
all:
target: ["x86_64"]
compiler: [gcc@9]