Commit 2f615d5d authored by Jannick Wolters's avatar Jannick Wolters
Browse files

fixed preprocessor blaze configuration in cmakelists

parent 7dde9c66
Pipeline #79784 passed with stages
in 4 minutes and 21 seconds
......@@ -25,10 +25,8 @@ include_directories( ${MPI_INCLUDE_PATH} )
find_package( LAPACK REQUIRED )
include_directories( ${LAPACK_INCLUDE_DIR} )
set( '-DBLAZE_USE_SHARED_MEMORY_PARALLELIZATION=OFF' )
set( '-DBLAZE_USE_VECTORIZATION=ON' )
set( '-DBLAZE_BLAS_MODE=ON' )
set( '-DBLAZE_DEFAULT_STORAGE_ORDER=blaze::rowMajor' )
add_definitions( '-DBLAZE_USE_SHARED_MEMORY_PARALLELIZATION=0' )
add_definitions( '-DBLAZE_BLAS_MODE=1' )
message( "Automatic Cache Size Configuration" )
set(flag 1)
if (WIN32)
......@@ -99,7 +97,7 @@ endif (flag)
string( REGEX MATCH "([0-9][0-9]+)" tmp ${tmp} )
math( EXPR BLAZE_CACHE_SIZE ${tmp}*1024 )
set( '-DBLAZE_CACHE_SIZE="${BLAZE_CACHE_SIZE}UL"' )
add_definitions( '-DBLAZE_CACHE_SIZE=${BLAZE_CACHE_SIZE}UL' )
message( "Configuring Cache Size: ${BLAZE_CACHE_SIZE}" )
include_directories( ${CMAKE_SOURCE_DIR}/ext/blaze )
......
......@@ -23,5 +23,8 @@ int main( int argc, char** argv ) {
Vector foo( 10, 1.0 ); // blaze vector (see typedef.h)
std::cout << foo << std::endl; // is printable
log->info( BLAZE_CACHE_SIZE );
log->info( BLAZE_USE_SHARED_MEMORY_PARALLELIZATION );
return EXIT_SUCCESS;
}
Supports Markdown
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