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

fix: only use intrinsics SIMD on x86_64 and aarch64 by default #110

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

Cryolitia
Copy link
Contributor

@Cryolitia Cryolitia commented Nov 18, 2024

fix #109

Now we only have the implements of intrinsics SIMD on x86_64 and aarch64. We could just enable the std SIMD on other platforms. Since we have __has_include(<experimental/simd>) , so that it's not a big deal if the target platform even doesn't have the std platform and just fall back to non-SIMD. And we could believe in that once the c++ standard library supports a new platform, we could get benefits in it immediately.

Tested on Arch Linux x86_64 and Arch LInux RISC-V

@github-actions github-actions bot added the CMake label Nov 18, 2024
@Cryolitia Cryolitia force-pushed the master branch 2 times, most recently from 0f85ef3 to 8a44063 Compare November 18, 2024 07:48
@Cryolitia Cryolitia changed the title fix: only enable SIMD on x86_64 and aarch64 by default fix: only use intrinsics SIMD on x86_64 and aarch64 by default Nov 18, 2024
Copy link
Member

@Yaraslaut Yaraslaut left a comment

Choose a reason for hiding this comment

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

Thamks a lot @Cryolitia , just a minor wording change is required :)

CMakeLists.txt Outdated Show resolved Hide resolved
@Cryolitia Cryolitia marked this pull request as draft November 18, 2024 12:04
@Cryolitia Cryolitia marked this pull request as ready for review November 18, 2024 12:14
@Yaraslaut Yaraslaut enabled auto-merge November 18, 2024 13:20
@Yaraslaut Yaraslaut merged commit 4872435 into contour-terminal:master Nov 18, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SIMD is wrongly enabled while building on riscv64gc
2 participants