Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tom Harke
pystencils
Commits
024717a4
Commit
024717a4
authored
Apr 02, 2019
by
Martin Bauer
Browse files
kerncraft benchmark: use 64 byte alignment to be safe for avx512 code
parent
2cb231b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/kerncraft_coupling/generate_benchmark.py
View file @
024717a4
...
...
@@ -34,7 +34,7 @@ int main(int argc, char **argv)
{%- for field_name, dataType, size in fields %}
// 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)
{{field_name}}[i] = 0.23;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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