Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KiT-RT
KiT-RT
Commits
2f615d5d
Commit
2f615d5d
authored
Mar 30, 2020
by
Jannick Wolters
Browse files
fixed preprocessor blaze configuration in cmakelists
parent
7dde9c66
Pipeline
#79784
passed with stages
in 4 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
code/CMakeLists.txt
View file @
2f615d5d
...
...
@@ -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
)
...
...
code/src/main.cpp
View file @
2f615d5d
...
...
@@ -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
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment