Commit 68179bfa authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

added mpp_src

parent 497b4242
build/
.idea/
googletest/
sprng5/
[submodule "mpp_src"]
path = mpp_src
url = git@git.scc.kit.edu:yq8188/mpp_src.git
#
# Loads static libraries mpp_src and lib_ps
#
cmake_minimum_required(VERSION 3.5.1)
project(MLMC-M++)
project(mpp_mlmc)
#---------------------------------------------------------------------------------------#
# Google test (Placed here to not compile it with mpiCC)
add_subdirectory(googletest)
include_directories(${PROJECT_BINARY_DIR}/googletest/googletest/include)
include_directories(${PROJECT_BINARY_DIR}/googlemock/googletest/include)
set(GTEST_LIB gtest gtest_main)
## Google test (Placed here to not compile it with mpiCC)
#add_subdirectory(googletest)
#include_directories(${PROJECT_BINARY_DIR}/googletest/googletest/include)
#include_directories(${PROJECT_BINARY_DIR}/googlemock/googletest/include)
#set(GTEST_LIB gtest gtest_main)
#---------------------------------------------------------------------------------------#
# MPI
......@@ -20,8 +24,8 @@ set(CMAKE_CXX_COMPILE_FLAGS ${CMAKE_CXX_COMPILE_FLAGS} ${MPI_COMPILE_FLAGS})
set(CMAKE_CXX_LINK_FLAGS ${CMAKE_CXX_LINK_FLAGS} ${MPI_LINK_FLAGS})
set(CMAKE_BUILD_TYPE distribution)
#set(CMAKE_CXX_FLAGS_DISTRIBUTION "-Ofast")
set(CMAKE_CXX_FLAGS_DISTRIBUTION "-O0")
set(CMAKE_CXX_FLAGS_DISTRIBUTION "-Ofast")
#set(CMAKE_CXX_FLAGS_DISTRIBUTION "-O0")
#set(CMAKE_CXX_FLAGS_DISTRIBUTION "-O1")
#set(CMAKE_CXX_FLAGS_DISTRIBUTION "-O2")
set(CMAKE_CXX_FLAGS "-fPIC -g -Wno-deprecated -std=gnu++11")
......@@ -42,27 +46,14 @@ file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/data/dual)
#---------------------------------------------------------------------------------------#
# Include directories
include_directories(${PROJECT_SOURCE_DIR}/src)
include_directories(${PROJECT_SOURCE_DIR}/src/LIB_PS)
include_directories(${PROJECT_SOURCE_DIR}/mpp_src)
include_directories(${PROJECT_SOURCE_DIR}/mpp_src/LIB_PS)
include_directories(${PROJECT_SOURCE_DIR}/mpp_src/superlu/include)
include_directories(${PROJECT_SOURCE_DIR}/mlmc/src)
include_directories(${PROJECT_SOURCE_DIR}/superlu/include)
include_directories(${PROJECT_SOURCE_DIR}/sprng5/include)
#---------------------------------------------------------------------------------------#
# Link directories
link_directories(${PROJECT_SOURCE_DIR}/superlu/lib)
if (UNIX AND NOT APPLE)
set(SUPERLU superlu_4.3)
elseif (APPLE)
set(SUPERLU superlu_4.3_mac10.10)
elseif (WIN32)
set(SUPERLU superlu_4.3_cygwin)
endif ()
link_directories(${PROJECT_SOURCE_DIR}/sprng5/lib)
#---------------------------------------------------------------------------------------#
# Subdirectories
add_subdirectory(src)
add_subdirectory(mlmc/src)
#---------------------------------------------------------------------------------------#
......@@ -70,16 +61,16 @@ add_subdirectory(mlmc/src)
add_executable(MLMC-M++ mlmc/src/MLMCMain.C)
# Linking
target_link_libraries(MLMC-M++ MLMC sprng SRC SRC_Solver blas lapack ${SUPERLU} fftw3 m)
target_link_libraries(MLMC-M++ MLMC sprng mpp_src lib_ps blas lapack ${SUPERLU} fftw3 m)
#---------------------------------------------------------------------------------------#
# Test Executables
add_executable(TestCirculantEmbedding mlmc/tests/TestCirculantEmbedding.C)
add_executable(TestRNManager mlmc/tests/TestRNManager.C)
#add_executable(TestCirculantEmbedding mlmc/tests/TestCirculantEmbedding.C)
#add_executable(TestRNManager mlmc/tests/TestRNManager.C)
# Linking
target_link_libraries(TestCirculantEmbedding MLMC sprng SRC SRC_Solver
blas lapack ${SUPERLU} fftw3 m ${GTEST_LIB})
target_link_libraries(TestRNManager MLMC sprng fftw3 m ${GTEST_LIB})
set(MPI_COMMAND mpirun -np 4 )
#target_link_libraries(TestCirculantEmbedding MLMC sprng SRC SRC_Solver
# blas lapack ${SUPERLU} fftw3 m ${GTEST_LIB})
#target_link_libraries(TestRNManager MLMC sprng fftw3 m ${GTEST_LIB})
#set(MPI_COMMAND mpirun -np 4 )
#---------------------------------------------------------------------------------------#
Subproject commit ce10a42c46418866ea4684305556017115c9a268
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment