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

hints/linux out of date for Intel (icc) compiler #18705

Open
hvds opened this issue Apr 9, 2021 · 0 comments
Open

hints/linux out of date for Intel (icc) compiler #18705

hvds opened this issue Apr 9, 2021 · 0 comments

Comments

@hvds
Copy link
Contributor

hvds commented Apr 9, 2021

hints/linux.sh uses this stanza for Intel's compiler:

*"Intel(R) C"*" Compiler"*)
    # record the version, formats:
    # icc (ICC) 10.1 20080801
    # icpc (ICC) 10.1 20080801
    # followed by a copyright on the second line
    ccversion=`${cc:-cc} --version | sed -n -e 's/^icp\?c \((ICC) \)\?//p'`
    # This is needed for Configure's prototype checks to work correctly
    # The -mp flag is needed to pass various floating point related tests
    # The -no-gcc flag is needed otherwise, icc pretends (poorly) to be gcc
    ccflags="-we147 -mp -no-gcc $ccflags"

I managed to install this using spack, via spack install intel-oneapi-compilers, which gave me this:

% icc --version
icc (ICC) 2021.2.0 20210228
Copyright (C) 1985-2021 Intel Corporation.  All rights reserved.

% 

and it appears to build perl fine (at least as far as a clean minitest); however it warns that -mp is an unknown flag, and the docs advise that -we is deprecated in favour of -diag-error. Blame log shows that we added -mp via 383f935 to replace an -mp1 added a few months earlier (3d7ef91), and -mp1 is still supported. However it isn't obvious if we need any of these flags these days.

I don't regularly use this compiler, so I don't know what intervening versions have existed, nor when the supported flags may have changed. I'd welcome suggestions for how to improve the hints file.

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

No branches or pull requests

1 participant