Undefined reference to `__builtin_ia32_palignr256' when calling _mm256_alignr_epi8

$ cat test.c
#include <immintrin.h>

__m256i foo(__m256i a, __m256i b) {
  return _mm256_alignr_epi8(a, b, 0);
}

int main(void) { return 0; }
$ /opt/nvidia/hpc_sdk/Linux_x86_64/2021/compilers/bin/nvc -o test test.c
/usr/bin/ld: /tmp/nvc3BEybL07w003k.o: in function `foo':
/home/nemequ/local/src/simde/creduce/nvc/test.c:4: undefined reference to `__builtin_ia32_palignr256'

Thanks again. I added TPR #30106 to track.

-Mat

I’m having the similar problem , trying to compile the openCV for the H100 on Almalinux 9.2 and Intel(R) Xeon(R) Gold 6438Y+ (32 core).
Do you know how to fix it?
Francesco

Hi francesco.iannone - can you open a question specifically highlighting exactly the problem you’re seeing? That would likely help us, help you resolve the issue. Thanks!