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 support for compiling with Intel oneAPI DPC++/C++ compiler #1115

Open
Civil opened this issue Mar 3, 2024 · 0 comments
Open

Add support for compiling with Intel oneAPI DPC++/C++ compiler #1115

Civil opened this issue Mar 3, 2024 · 0 comments

Comments

@Civil
Copy link
Contributor

Civil commented Mar 3, 2024

Currently in WAF it is hardcoded that gcc needs to be available, so you can't just do:

source /opt/intel/oneapi/setvars.sh intel64
export CC="icx"
export CXX="icpx"
./b configure && ./b build

As it will fail with:

Could not find gcc/g++ (only Clang), if renamed try eg: CC=gcc48 CXX=g++48 waf configure

That should be a warning instead to allow people to experiment with different compilers.

There are few minor fixes required for it to compile with icx 2024.0, I can submit those if you are interested.

P.S. Also based on my initial tests, if compiled with icx it performs about 10% better (and performance is more stable) on Xeon W5-3435X (Sapphire Rapids WS-112L), compared to gcc 12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant