Skip to content
Snippets Groups Projects
Commit 4f08cc36 authored by Piet Jarmatz's avatar Piet Jarmatz Committed by Markus Holzer
Browse files

SVE-vector-length-bugfix

parent 005b5293
Branches
Tags
No related merge requests found
......@@ -379,7 +379,9 @@ if( WALBERLA_OPTIMIZE_FOR_LOCALHOST )
endif()
if( EXISTS "/proc/sys/abi/sve_default_vector_length" )
file( READ "/proc/sys/abi/sve_default_vector_length" SVE_LENGTH )
file( READ "/proc/sys/abi/sve_default_vector_length" SVE_LENGTH_BYTES )
string(STRIP "${SVE_LENGTH_BYTES}" SVE_LENGTH_BYTES)
math(EXPR SVE_LENGTH "${SVE_LENGTH_BYTES} * 8")
add_flag ( CMAKE_CXX_FLAGS "-msve-vector-bits=${SVE_LENGTH}" )
add_flag ( CMAKE_C_FLAGS "-msve-vector-bits=${SVE_LENGTH}" )
endif()
......
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