Skip to content
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

Add more generic AVX feature detection as well as flags for if avx512… #1041

Merged
merged 10 commits into from
Jan 17, 2024

Conversation

JonathanHenson
Copy link
Contributor

… intrinsics are available.

Clean up some cmake checks for SIMD and export them so AVX512 intrinsics support can be exported to other common runtime modules.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

CMakeLists.txt Outdated Show resolved Hide resolved
cmake/AwsSIMD.cmake Show resolved Hide resolved
cmake/AwsSIMD.cmake Outdated Show resolved Hide resolved
cmake/AwsSIMD.cmake Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Jul 14, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (6ee34b3) 83.30% compared to head (6faf6fa) 83.23%.

Files Patch % Lines
source/arch/intel/cpuid.c 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1041      +/-   ##
==========================================
- Coverage   83.30%   83.23%   -0.08%     
==========================================
  Files          56       56              
  Lines        5803     5808       +5     
==========================================
  Hits         4834     4834              
- Misses        969      974       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

if (HAVE_M_AVX512_FLAG)
# docs imply AVX512 brings in AVX2. And it will compile, but it will break at runtime on
# instructions such as _mm256_load_si256(). Leave it on.
set(AVX_CFLAGS "/arch:AVX512 /arch:AVX2")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is mystery

@JonathanHenson JonathanHenson merged commit 901405e into main Jan 17, 2024
52 checks passed
@JonathanHenson JonathanHenson deleted the AVX512 branch January 17, 2024 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants