-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from leobago/devel
Release candidate for version 0.9.6
- Loading branch information
Showing
33 changed files
with
2,487 additions
and
1,498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
sudo: required | ||
dist: trusty | ||
|
||
language: c | ||
|
||
env: | ||
global: | ||
- BUILD_DIR="$TRAVIS_BUILD_DIR/build" | ||
- secure: "Dw0r4cbZoT0QoIlI7XWLdhPQxL62CQzskdw3tUth4eSWJd/0IIvLq/ogaZZbYWGH4lifI4p5NMzEpHJ5yFjWnO/ZcpVTZ26SJEFwfBrPUzeu3MV30poX89EYxWz+dE4xPFKzAAKnemlcVxfTHE+z3vW5klnjg5bRH3+pFKoFVBX6M2ABPXcigkpbd1dnXqQK+36v0yx/SF4Yg607vLLPVfcmcU+ohT52OENVkoeEllOxmGxdVfdskEVQ9O16BbtxNSthYQFplvFn5RrpvknRarby51E+7eMf9sOey2H6MWtZYFKXKiascUz5ZLPIt0mFCW1x2wFC39cxMZNFURg+hHlGKUGV9Bt7B7K/XAwvPhY6X+td4OYPR2B68vywxpPlShiTg8iduYg1H4bdVzt+1qdRHsg2qmyJe5eQBMwW5fEVOffJhfVAiG5ceDWzQJQt5cEKn/2yxt1bX3sC7Hl6lzTQ1X6DuLWi9cCsKqsAB7ht/ZC1m13YGRyjghG9RDsRfM2FPy0w0iOHDAGrNzQVPPDDxxgNi/xpmqPlkvjRSz3Pmj6VeAZ2cG68pls+oKyzcWEhCeSL3uT3ShKBfrpQcFxVFzsdTWzH6XYul/HHrUnYKGtd3K1MW59Dng5WcD5xi8n76/wmlkXUoWmYNjfGsP5wwcz/yLfc/CRDRB3P4jo=" | ||
|
||
addons: | ||
coverity_scan: | ||
project: | ||
name: sclaomir/fti | ||
description: Fault Tolerance Interface | ||
notification_email: [email protected] | ||
build_command_prepend: cmake .. | ||
build_command: make | ||
branch_pattern: devel | ||
|
||
os: | ||
- linux | ||
|
||
compiler: | ||
- gcc | ||
|
||
cache: | ||
apt: true | ||
|
||
before_install: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -y cmake gcc gfortran openmpi-bin libopenmpi-dev | ||
|
||
before_script: | ||
- mkdir $BUILD_DIR | ||
- cd $BUILD_DIR | ||
- cmake .. | ||
|
||
script: make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ Author: | |
Collaborators: | ||
|
||
Julien BIGOT | ||
Slawomir Zdanowski | ||
Adele VILLIERMET | ||
Sheng DI | ||
Faysal BOUI | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,85 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeScripts") | ||
cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR) | ||
|
||
if ( "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}" ) | ||
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") | ||
project(FTI C Fortran) | ||
endif() | ||
|
||
option(ENABLE_FORTRAN "Enables the generation of the Fortran wrapper for FTI" ON) | ||
option(ENABLE_EXAMPLES "Enables the generation of examples" ON) | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeScripts") | ||
include(AppendProperty) | ||
include(BPP) | ||
include(FortranCInterface) | ||
|
||
find_package(MPI REQUIRED) | ||
|
||
option(ENABLE_FORTRAN "Enables the generation of the Fortran wrapper for FTI" ON) | ||
add_subdirectory(deps) | ||
|
||
include_directories("${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/src" "${CMAKE_CURRENT_SOURCE_DIR}/include" ${MPI_Fortran_INCLUDE_PATH} ${MPI_C_INCLUDE_PATH}) | ||
include_directories("${CMAKE_CURRENT_BINARY_DIR}" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src" "${CMAKE_CURRENT_SOURCE_DIR}/include" | ||
${MPI_Fortran_INCLUDE_PATH} ${MPI_C_INCLUDE_PATH}) | ||
|
||
set (LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/lib) | ||
set (CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include) | ||
set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/lib) | ||
set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include) | ||
|
||
set(SRC_FTI | ||
src/galois.c | ||
src/jerasure.c | ||
src/dictionary.c | ||
src/iniparser.c | ||
src/checkpoint.c | ||
src/postckpt.c | ||
src/recover.c | ||
src/postreco.c | ||
src/topo.c | ||
src/conf.c | ||
src/meta.c | ||
src/tools.c | ||
src/api.c | ||
) | ||
append_property(SOURCE ${SRC_FTI} PROPERTY COMPILE_FLAGS " ${MPI_C_COMPILE_FLAGS} ") | ||
|
||
add_library(fti.static STATIC ${SRC_FTI}) | ||
src/api.c src/checkpoint.c src/conf.c src/meta.c | ||
src/postckpt.c src/postreco.c src/recover.c | ||
src/tools.c src/topo.c) | ||
|
||
append_property(SOURCE ${SRC_FTI} | ||
PROPERTY COMPILE_FLAGS "${MPI_C_COMPILE_FLAGS}") | ||
|
||
add_library(fti.static STATIC ${SRC_FTI} | ||
$<TARGET_OBJECTS:iniparser> $<TARGET_OBJECTS:jerasure>) | ||
add_library(fti.shared SHARED ${SRC_FTI} | ||
$<TARGET_OBJECTS:iniparser> $<TARGET_OBJECTS:jerasure>) | ||
|
||
append_property(TARGET fti.static fti.shared | ||
PROPERTY LINK_FLAGS "${MPI_C_LINK_FLAGS}") | ||
set_property(TARGET fti.static fti.shared | ||
PROPERTY OUTPUT_NAME fti) | ||
|
||
target_link_libraries(fti.static ${MPI_C_LIBRARIES}) | ||
add_library(fti.shared SHARED ${SRC_FTI}) | ||
target_link_libraries(fti.shared ${MPI_C_LIBRARIES}) | ||
append_property(TARGET fti.static fti.shared PROPERTY LINK_FLAGS " ${MPI_C_LINK_FLAGS} ") | ||
set_property(TARGET fti.static fti.shared PROPERTY OUTPUT_NAME fti) | ||
|
||
install(TARGETS fti.static fti.shared DESTINATION lib) | ||
install(FILES "include/fti.h" "include/dictionary.h" "include/galois.h" "include/iniparser.h" "include/jerasure.h" DESTINATION include) | ||
install(TARGETS fti.static fti.shared | ||
DESTINATION lib) | ||
install(FILES "include/fti.h" | ||
DESTINATION include) | ||
|
||
if ( ENABLE_FORTRAN ) | ||
if(ENABLE_FORTRAN) | ||
bpp_preprocess(BPP_FTI_F90 | ||
src/interface.F90.bpp | ||
) | ||
set(SRC_FTI_F90 | ||
${BPP_FTI_F90} | ||
src/ftif.c | ||
) | ||
append_property(SOURCE ${SRC_FTI_F90} PROPERTY COMPILE_FLAGS " ${MPI_Fortran_COMPILE_FLAGS} ") | ||
src/fortran/interface.F90.bpp) | ||
set(SRC_FTI_F90 ${BPP_FTI_F90} | ||
src/fortran/ftif.c) | ||
append_property(SOURCE ${SRC_FTI_F90} | ||
PROPERTY COMPILE_FLAGS "${MPI_Fortran_COMPILE_FLAGS}") | ||
|
||
add_library(fti_f90.static STATIC ${SRC_FTI_F90}) | ||
target_link_libraries(fti_f90.static fti.static ${MPI_Fortran_LIBRARIES} ${MPI_C_LIBRARIES}) | ||
target_link_libraries(fti_f90.static | ||
fti.static ${MPI_Fortran_LIBRARIES} ${MPI_C_LIBRARIES}) | ||
|
||
add_library(fti_f90.shared SHARED ${SRC_FTI_F90}) | ||
target_link_libraries(fti_f90.shared fti.shared ${MPI_Fortran_LIBRARIES} ${MPI_C_LIBRARIES}) | ||
append_property(TARGET fti_f90.static fti_f90.shared PROPERTY LINK_FLAGS " ${MPI_Fortran_LINK_FLAGS} ${MPI_C_LINK_FLAGS} ") | ||
set_property(TARGET fti_f90.static fti_f90.shared PROPERTY OUTPUT_NAME fti_f90) | ||
target_link_libraries(fti_f90.shared | ||
fti.shared ${MPI_Fortran_LIBRARIES} ${MPI_C_LIBRARIES}) | ||
|
||
install(TARGETS fti_f90.static fti_f90.shared DESTINATION lib) | ||
install(FILES ${CMAKE_Fortran_MODULE_DIRECTORY}/fti.mod DESTINATION include) | ||
append_property(TARGET fti_f90.static fti_f90.shared | ||
PROPERTY LINK_FLAGS "${MPI_Fortran_LINK_FLAGS} ${MPI_C_LINK_FLAGS}") | ||
set_property(TARGET fti_f90.static fti_f90.shared | ||
PROPERTY OUTPUT_NAME fti_f90) | ||
|
||
install(TARGETS fti_f90.static fti_f90.shared | ||
DESTINATION lib) | ||
install(FILES ${CMAKE_Fortran_MODULE_DIRECTORY}/fti.mod | ||
DESTINATION include) | ||
endif() | ||
|
||
if ( NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}" ) | ||
if(NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") | ||
set(FTI_INCLUDE_PATH "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/include" PARENT_SCOPE) | ||
endif() | ||
|
||
if(ENABLE_EXAMPLES) | ||
add_subdirectory(examples) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
add_subdirectory(iniparser) | ||
add_subdirectory(jerasure) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
set(SRC_iniparser | ||
dictionary.h dictionary.c | ||
iniparser.h iniparser.c) | ||
|
||
append_property(SOURCE ${SRC_iniparser} | ||
PROPERTY COMPILE_FLAGS "-fPIC") | ||
|
||
add_library(iniparser OBJECT ${SRC_iniparser}) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
set(SRC_jerasure | ||
galois.h galois.c | ||
jerasure.h jerasure.c) | ||
|
||
append_property(SOURCE ${SRC_jerasure} | ||
PROPERTY COMPILE_FLAGS "-fPIC") | ||
|
||
add_library(jerasure OBJECT ${SRC_jerasure}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
link_directories(${CMAKE_BINARY_DIR}/lib) | ||
|
||
add_executable(hd.exe heatdis.c) | ||
target_link_libraries(hd.exe ${CMAKE_BINARY_DIR}/lib/libfti.a ${MPI_C_LIBRARIES} m) | ||
|
||
if(MPI_C_COMPILE_FLAGS) | ||
set_target_properties(hd.exe PROPERTIES | ||
COMPILE_FLAGS "${MPI_C_COMPILE_FLAGS}") | ||
endif() | ||
|
||
if(MPI_C_LINK_FLAGS) | ||
set_target_properties(hd.exe PROPERTIES | ||
LINK_FLAGS "${MPI_C_LINK_FLAGS}") | ||
endif() | ||
|
||
add_executable(hd2.exe heatd2.c) | ||
target_link_libraries(hd2.exe ${CMAKE_BINARY_DIR}/lib/libfti.a ${MPI_C_LIBRARIES} m) | ||
|
||
if(MPI_C_COMPILE_FLAGS) | ||
set_target_properties(hd2.exe PROPERTIES | ||
COMPILE_FLAGS "${MPI_C_COMPILE_FLAGS}") | ||
endif() | ||
|
||
if(MPI_C_LINK_FLAGS) | ||
set_target_properties(hd2.exe PROPERTIES | ||
LINK_FLAGS "${MPI_C_LINK_FLAGS}") | ||
endif() | ||
|
||
if(ENABLE_FORTRAN) | ||
add_executable(hdf.exe fheatdis.f90) | ||
target_link_libraries(hdf.exe fti_f90 ${CMAKE_BINARY_DIR}/lib/libfti.a ${MPI_Fortran_LIBRARIES} m) | ||
|
||
if(MPI_Fortran_COMPILE_FLAGS) | ||
set_target_properties(hdf.exe PROPERTIES | ||
COMPILE_FLAGS "${MPI_Fortran_COMPILE_FLAGS}") | ||
endif() | ||
|
||
if(MPI_Fortran_LINK_FLAGS) | ||
set_target_properties(hdf.exe PROPERTIES | ||
LINK_FLAGS "${MPI_Fortran_LINK_FLAGS}") | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.