Skip to content
Snippets Groups Projects
Commit 024717a4 authored by Martin Bauer's avatar Martin Bauer
Browse files

kerncraft benchmark: use 64 byte alignment to be safe for avx512 code

parent 2cb231b2
No related merge requests found
...@@ -34,7 +34,7 @@ int main(int argc, char **argv) ...@@ -34,7 +34,7 @@ int main(int argc, char **argv)
{%- for field_name, dataType, size in fields %} {%- for field_name, dataType, size in fields %}
// Initialization {{field_name}} // Initialization {{field_name}}
double * {{field_name}} = (double *) aligned_malloc(sizeof({{dataType}}) * {{size}}, 32); double * {{field_name}} = (double *) aligned_malloc(sizeof({{dataType}}) * {{size}}, 64);
for (unsigned long long i = 0; i < {{size}}; ++i) for (unsigned long long i = 0; i < {{size}}; ++i)
{{field_name}}[i] = 0.23; {{field_name}}[i] = 0.23;
......
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