-
Notifications
You must be signed in to change notification settings - Fork 22
Add FP32 Armpl Blas optimization [MOD-9011] #613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| namespace spaces { | ||
|
|
||
| #include "implementation_chooser.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Irrelevant but harmless
|
|
||
| namespace spaces { | ||
|
|
||
| #include "implementation_chooser.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Irrelevant but harmless
| if ((chunk) == 1) { \ | ||
| /* Handle the case where chunk is 0 */ \ | ||
| __ret_dist_func = func<1>; \ | ||
| } else { \ | ||
| switch ((dim) % (chunk)) { CASES##chunk(func) } \ | ||
| } \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's revert these changes
| // chunk == 1 means that there's no use of the residual, and we can use the function | ||
| // directly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
| ASSERT_EQ(arch_opt_func, Choose_FP32_L2_implementation_AVX(dim)) | ||
| << "Unexpected distance function chosen for dim " << dim; | ||
| ASSERT_EQ(baseline, arch_opt_func(v, v2, dim)) << "AVX with dim " << dim; | ||
| ASSERT_EQ(alignment, expected_alignment(256, dim)) << "AVX with dim " << dim; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
| ASSERT_EQ(arch_opt_func, Choose_FP32_L2_implementation_SSE(dim)) | ||
| << "Unexpected distance function chosen for dim " << dim; | ||
| ASSERT_EQ(baseline, arch_opt_func(v, v2, dim)) << "SSE with dim " << dim; | ||
| ASSERT_EQ(alignment, expected_alignment(128, dim)) << "SSE with dim " << dim; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
Describe the changes in the pull request
A clear and concise description of what the PR is solving.
Which issues this PR fixes
Main objects this PR modified
Mark if applicable