Skip to content

Override missing intrinsincs in gcc <11 #572

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/flow-temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ on:
push:
branches-ignore: ['**'] # ignore all branches. Comment this line to run your workflow below on every push.
jobs:
jammy:
uses: ./.github/workflows/task-unit-test.yml
with:
container: ubuntu:jammy
run-valgrind: true
# jammy:
# uses: ./.github/workflows/task-unit-test.yml
# with:
# container: ubuntu:jammy
# run-valgrind: true
# alpine3:
# uses: ./.github/workflows/task-unit-test.yml
# with:
Expand All @@ -32,11 +32,11 @@ jobs:
# with:
# container: ubuntu:focal
# run-valgrind: false
# bullseye:
# uses: ./.github/workflows/task-unit-test.yml
# with:
# container: debian:bullseye
# run-valgrind: false
bullseye:
uses: ./.github/workflows/task-unit-test.yml
with:
container: debian:bullseye
run-valgrind: false
# amazonlinux2:
# uses: ./.github/workflows/task-unit-test.yml
# with:
Expand Down
6 changes: 6 additions & 0 deletions src/VecSim/spaces/space_includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
#if defined(__AVX512F__) || defined(__AVX__) || defined(__SSE__)
#if defined(__GNUC__)
#include <x86intrin.h>
// Override missing implementations in GCC < 11
// Full list and suggested alternatives for each missing function can be found here:
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95483
#if (__GNUC__ < 11)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add an explanation or the link to the issue in a comment here

#define _mm256_loadu_epi8(ptr) _mm256_maskz_loadu_epi8(~0, ptr)
#endif
#elif defined(__clang__)
#include <xmmintrin.h>
#elif defined(_MSC_VER)
Expand Down
Loading