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

Support for Intel oneAPI missing #952

Open
MarDiehl opened this issue Sep 16, 2024 · 1 comment
Open

Support for Intel oneAPI missing #952

MarDiehl opened this issue Sep 16, 2024 · 1 comment

Comments

@MarDiehl
Copy link

I'm reposting the issue from bfgroup/b2#413 here because the lack of response.

Environment and version details

  • Operating System+version: Arch Linux
  • Compiler+version: Intel oneAPI 2024.2.1
  • Shell: zsh
  • B2 Version: B2 5.2.1 (OS=LINUX, jobs=8)
  • B2 Configuration: Output of b2 --debug-configuration in your project.
    not added because it uses gcc.

Brief problem description

Options defined in https://github.com/bfgroup/b2/blob/3c0f5630157c3db1025b54c2f6da25cf234b8e20/src/tools/intel-linux.jam are incompatible with LLVM-based Intel compilers:

Steps to reproduce the issue

Install Boost with

./bootstrap.sh --prefix=/tmp/boost
./b2 install --without-python --without-graph_parallel --without-mpi cxxstd=17  toolset=intel-linux  link=shared address-model=64 architecture=x86 runtime-link=shared

Actual behavior summary

The compiler gives warnings and errors and installation of a few files fails.
A few example errors are shown

intel-linux.compile.c++ bin.v2/libs/log/build/intel-linux-linux/release/x86_64/cxxstd-17-iso/threading-multi/visibility-hidden/trivial.o
icpx: command line warning #10430: Unsupported command line options encountered
These options as listed are not supported.
For more information, use '-qnextgen-diag'.
option list: 
	-ip
	-wd177,780,2196,1782,193,304,981,1418,411,734,279
...skipped <pbin.v2/libs/math/build/intel-linux-linux/release/x86_64/cxxstd-17-iso/threading-multi/visibility-hidden>acoshl.o for lack of <pbin.v2/libs/math/build/intel-linux-linux/release/x86_64/cxxstd-17-iso/threading-multi/visibility-hidden>pch.pchi...
...failed updating 1 target...
   intel-linux.compile.c++.pch bin.v2/libs/math/build/intel-linux-linux/release/x86_64/cxxstd-17-iso/threading-multi/visibility-hidden/pch.pchi

Expected behavior summary

b2 should support the most recent Intel C++ compiler (icpx)

@hainest
Copy link

hainest commented Sep 19, 2024

-ip is not supported anymore
-use-pch should be -include-pch or -pch-use
pch-create should be -Xclang -emit-pch -o

These have been fixed in spack (patch). I've been meaning to push them upstream, but I guess now is a good time. I can submit a PR here, unless you're working on one.

the Fortran compiler is called ifx, not ifort

Huh. I don't know why that hasn't been encountered in spack builds. As of 4e62a3e , the ony Fortran file I can find is ./numeric/odeint/performance/fortran_lorenz.f90. Clearly, it's needed. I'll add that to my TODO for spack.

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

No branches or pull requests

2 participants