-
Notifications
You must be signed in to change notification settings - Fork 15
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
Using std::reduce
causes intel compiler to not work
#297
Comments
This is IMHO an issue (aka feature) with the module system. Some compilers like icpx rely on the libraries of the currently loaded gcc. Possible actions we can take:
|
ls1 requires C++17, so users should ensure, that their system and software are set up to support this. |
In addition to your mentioned actions, should we still change |
I have added a note to the README file, see PR #295 (see commit). @amartyads Have you talked to the admins of HSUper regarding this issue? |
I have talked to the admins, here's the update:
This does not compile with |
Issues were related to the software stack on the system and could be resolved. |
The newly added
StaticIrregDomainDecomposition.cpp
usesstd::reduce
, something that causes compilation to fail when compiling with icpx on HSUper. The compilation succeeds, however, if user doesmodule load gcc
before compilation. This is probably because the LD_LIBRARY_PATH gets populated with libraries from gcc, and then the compiler can findstd::reduce
.Changing
reduce
toaccumulate
can be an easy fix, and since the operation is performed only once, it shouldn't be too heavy.@HomesGH and @JakNiem initially found this bug on HSUper.
Bug replicated on HSUper
icpx version: Intel(R) oneAPI DPC++/C++ Compiler 2022.1.0 (2022.1.0.20220316)
default gcc version: g++ (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10)
gcc version after
ml gcc
: g++ (Spack GCC) 12.1.0The text was updated successfully, but these errors were encountered: