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

ifort builds fail on gaea c5 #1362

Open
AlexanderRichert-NOAA opened this issue Oct 31, 2024 · 13 comments
Open

ifort builds fail on gaea c5 #1362

AlexanderRichert-NOAA opened this issue Oct 31, 2024 · 13 comments
Assignees
Labels
bug Something is not working

Comments

@AlexanderRichert-NOAA
Copy link
Collaborator

Describe the bug
On the head of develop, the error loading plugin: libimf.so: cannot open shared object file: No such file or directory ifort error is occurring.

To Reproduce
Clone head of develop, create an empty environment, and install, e.g., bufr or openblas.

Expected behavior

System:
gaea c5 (gaea58)

@climbfuji
Copy link
Collaborator

isn't that a case for the usual compiler - env - prepend-path workaround we've been using for years on several machines?

@AlexanderRichert-NOAA
Copy link
Collaborator Author

Yep

@RatkoVasic-NOAA
Copy link
Collaborator

@AlexanderRichert-NOAA, what change is needed, how it was done before?

@AlexanderRichert-NOAA
Copy link
Collaborator Author

See for example discover and derecho's compilers.yaml, where for Intel, there's an LD_LIBRARY_PATH prepend_path setting, which uses a path ending with 'intel64_lin' (which contains libimf.so). @climbfuji do you remember if there's a reason we didn't also add it to extra_rpaths?

@climbfuji
Copy link
Collaborator

I don't remember. Presumably because it works ;-)

@AlexanderRichert-NOAA
Copy link
Collaborator Author

I also ran into an issue on gaea just now where it wants libfabric, even though it's a serial code. Seemingly relatedly, I can see -lmpifort_intel in the icc arguments, I'm not sure where it's coming from.

@climbfuji
Copy link
Collaborator

cray compiler wrappers maybe?

@AlexanderRichert-NOAA
Copy link
Collaborator Author

@RatkoVasic-NOAA ?

@RatkoVasic-NOAA
Copy link
Collaborator

RatkoVasic-NOAA commented Jan 8, 2025

This is the message I got:

==> Error: CompilerAccessError: Compiler 'intel@=2023.1.0' has executables that are missing or are not executable: ['CC', 'ftn', 'ftn']
==> Error: bufr-12.1.0-pj64ai6phu2k676naq4efbb2xvbntfnc: Package was not installed
==> Error: Installation request failed.  Refer to reported errors for failing package(s).

I checked out current develop on gaea-c5, created empty environment and:
spack add [email protected]
spack install [email protected]

@RatkoVasic-NOAA
Copy link
Collaborator

When I changed:

      cc: cc
      cxx: CC
      f77: ftn
      fc: ftn

to:

      cc: /opt/intel/oneapi/compiler/2023.2.0/linux/bin/intel64/icc
      cxx: /opt/intel/oneapi/compiler/2023.2.0/linux/bin/intel64/icpc
      f77: /opt/intel/oneapi/compiler/2023.2.0/linux/bin/intel64/ifort
      fc: /opt/intel/oneapi/compiler/2023.2.0/linux/bin/intel64/ifort

in configs/sites/tier1/gaea-c5/compilers.yaml
And 2023.1.0 to 2023.2.0
in configs/sites/tier1/gaea-c5/compilers.yaml and configs/sites/tier1/gaea-c5/packages.yaml
It started compiling... it is very slow, I'll check in the morning how it went.

@climbfuji
Copy link
Collaborator

If you replace the Cray compiler wrappers with the direct compiler binaries, then you

That being said, in the long term this is what we (and also the spack developers and HPE want), I am just not sure if Gaea C5 is new enough for it.

@RatkoVasic-NOAA
Copy link
Collaborator

It did work this way (/gpfs/f5/epic/scratch/Ratko.Vasic/SS-1362/spack-stack/envs/develop/install/intel/2023.2.0/).
But gaea-c5 was acting weird, even though I installed in background, I was loosing connection (I guess login nodes were going up and down) and had to restart installation several times.

@climbfuji
Copy link
Collaborator

I wouldn't be surprised if it doesn't run correctly, though. Let's see!

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

No branches or pull requests

3 participants