Commit 949dad06 authored by jannick.wolters's avatar jannick.wolters
Browse files

added forked parmetis; updated CMakeLists

parent be2aa038
Pipeline #88845 passed with stages
in 19 minutes and 21 seconds
......@@ -10,3 +10,6 @@
[submodule "code/ext/blaze"]
path = code/ext/blaze
url = https://bitbucket.org/blaze-lib/blaze.git
[submodule "code/ext/parmetis"]
path = code/ext/parmetis
url = https://github.com/slydex/parmetis.git
cmake_minimum_required( VERSION 3.12.4 )
project( RTSN LANGUAGES C CXX VERSION 0.0.1 )
project( RTSN VERSION 0.1.0 LANGUAGES CXX )
set( CMAKE_CXX_STANDARD 17 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -march=native -Wno-dev -DNDEBUG" )
set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -O3 -march=native -pg -no-pie" )
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g -Wall -Werror" )
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -march=native -Wno-dev" CACHE STRING "Flags used by the compiler during release builds." FORCE )
set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -march=native -pg -no-pie" CACHE STRING "Flags used by the compiler during release builds with debug information." FORCE )
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -Wall -Werror" CACHE STRING "Flags used by the compiler during debug builds." FORCE )
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin" )
......@@ -27,7 +27,6 @@ include_directories( ${LAPACK_INCLUDE_DIR} )
add_compile_definitions( BLAZE_USE_SHARED_MEMORY_PARALLELIZATION=0 )
add_compile_definitions( BLAZE_BLAS_MODE=1 )
message( "Automatic Cache Size Configuration" )
set(flag 1)
if (WIN32)
execute_process(COMMAND wmic cpu get L3CacheSize
......@@ -98,15 +97,15 @@ endif (flag)
string( REGEX MATCH "([0-9][0-9]+)" tmp ${tmp} )
math( EXPR BLAZE_CACHE_SIZE ${tmp}*1024 )
add_compile_definitions( BLAZE_CACHE_SIZE=${BLAZE_CACHE_SIZE}UL )
message( "Configuring Cache Size: ${BLAZE_CACHE_SIZE}" )
message( "-- Blaze: Automatic Cache Size Configuration = ${BLAZE_CACHE_SIZE} KiB" )
include_directories( ${CMAKE_SOURCE_DIR}/ext/blaze )
add_compile_definitions( METIS_EXPORT= )
set( DISABLE_PARMETIS_PROGRAMS ON )
set( ParMETIS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/ext/parmetis)
include_directories(${ParMETIS_PATH}/include)
include_directories(${ParMETIS_PATH}/metis/include)
add_subdirectory(${ParMETIS_PATH})
set( ParMETIS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/ext/parmetis )
include_directories( ${ParMETIS_PATH}/include )
include_directories( ${ParMETIS_PATH}/metis/include )
add_subdirectory( ${ParMETIS_PATH} )
find_package( VTK REQUIRED COMPONENTS vtkIOGeometry vtkFiltersCore )
......
Subproject commit e68c8e3947f9383e28cb8623d116ca996b3651a9
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