Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Unable to build the graph due to error with avx512bf16 compilation #726

Closed
amir1m opened this issue Nov 20, 2023 · 2 comments
Closed

Unable to build the graph due to error with avx512bf16 compilation #726

amir1m opened this issue Nov 20, 2023 · 2 comments
Assignees

Comments

@amir1m
Copy link

amir1m commented Nov 20, 2023

Hello,

I am trying to build the graph. I followed the steps from README . After cmake .. -G Ninja , when I run ninja , getting following error:

/home/datascience/intel-extension-for-transformers/intel_extension_for_transformers/llm/library/jblas/jblas/kernel_avx512_bf16.h:24:32: error: attribute(target("avx512bf16")) is unknown
#pragma GCC target("avx512bf16")

Even tried disabling AVX 512 as, cmake -G Ninja -DNE_AVX512=OFF -DNE_AVX512_VBMI=OFF -DNE_AVX512_VNNI=OFF , still the same results.

I am running Linux on Intel(R) Xeon(R) Platinum 8167M CPU @ 2.00GHz

Can someone please help?

Thanks.

@zhewang1-intc
Copy link
Contributor

Thank you for your feedback. This is a known issue caused by that older versions of the gcc compiler (gcc version <11) not support avx512bf16 compile option. This issue has been fixed in #707, so please update the main branch or upgrade your compiler version and try again.
By the way, if you want to use the bf16-related features of the itrex backend, it is best to upgrade the gcc version to 11 or above. If you want to use the fp16-related features, you must upgrade the gcc version to 13.

@amir1m
Copy link
Author

amir1m commented Nov 21, 2023

Thanks @zhewang1-intc for your quick response! After upgrading to GCC 12 it worked as expected. Since GCC 13 is not there in the devtoolset I am using I am not able to upgrade it to 13.

@amir1m amir1m closed this as completed Nov 21, 2023
VincyZhang pushed a commit that referenced this issue Nov 30, 2023
* enable new gemm impl: block_xe

* optimize integration test call stream & 

* add UT for dispatch_policy_block

* add example for dispatch_policy_block
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants