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

clarify libfabric dependency #15

Open
carns opened this issue Sep 20, 2022 · 3 comments
Open

clarify libfabric dependency #15

carns opened this issue Sep 20, 2022 · 3 comments

Comments

@carns
Copy link
Contributor

carns commented Sep 20, 2022

On the ALCF Polaris system, a Spack build of fabtsuite fails with the following error:

1 error found in build log:
     18    -- Detecting CXX compile features - done
     19    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
     20    -- Checking for module 'libfabric>=1.13'
     21    --   Requested 'libfabric >= 1.13' but version of libfabric is 1.11.
           0.4.125
     22    You may find new versions of libfabric at https://github.com/ofiwg/l
           ibfabric.git
     23    -- Could NOT find LIBFABRIC (missing: LIBFABRIC_LIBRARIES)
  >> 24    CMake Error at cmake/FindLIBFABRIC.cmake:69 (message):
     25      Could not find a suitable version of libfabric (>=1.13)
     26    Call Stack (most recent call first):
     27      CMakeLists.txt:8 (include) 

What exact features from 1.13 does the test suite require? It may be that they are actually present in this build even though it is reporting a version number less than 1.13 (the version may not track exactly in a vendor-provided library).

For reference, Mercury itself will build fine against this same version of libfabric, so hopefully it's not a particularly strict dependency.

@hyoklee
Copy link
Collaborator

hyoklee commented Sep 20, 2022

@gnuoyd , can you answer this? I don't know why v. > 1.13 is strictly required.

@carns
Copy link
Contributor Author

carns commented Sep 20, 2022

Here is the spack environment file that I am using to test against the platform default libfabric on Polaris is pasted below.

To use it, do something like:

# save listing as fabtsuite-polaris.yaml
# edit the repos: entry to point to the directory where your copy of mochi-spack-packages is
> spack env create fabtsuite-polaris fabtsuite-polaris.yaml
> spack env activate fabtsuite-polaris
# this final step will fail due to the dependency check on libfabric in cmake
> spack install
# This is a Spack Environment file.
#
# It describes a set of packages to be installed, along with
# configuration settings.
spack:
  # add package specs to the `specs` list
  specs:
  - fabtsuite ^[email protected]
  view: true
  repos:
  - /home/carns/working/src/mochi/mochi-spack-packages
  modules:
    prefix_inspections:
      lib: [LD_LIBRARY_PATH]
      lib64: [LD_LIBRARY_PATH]
  compilers:
  - compiler:
      spec: [email protected]
      paths:
        cc: cc
        cxx: CC
        f77: ftn
        fc: ftn
      flags: {}
      operating_system: sles15
      target: any
      modules:
      - PrgEnv-gnu
      - gcc/11.2.0
      - libfabric
      - cudatoolkit-standalone
      environment: {}
      extra_rpaths: []
  packages:
    all:
      providers:
        mpi: [ cray-mpich ]
      compiler:
      - [email protected]
      target:
      - zen3
      version: []
      buildable: true
    cray-mpich:
      buildable: false
      version: []
      target: []
      compiler: []
      providers: {}
      externals:
      - spec: [email protected] arch=cray-sles15-zen3
        modules:
        - cray-mpich/8.1.16
    mercury:
      variants: ~boostsys ~checksum
      buildable: true
      version: []
      target: []
      providers: {}
      compiler: []
    libfabric:
      externals:
      - spec: [email protected]
        modules:
        - libfabric/1.11.0.4.125
      buildable: true
      version: []
      target: []
      providers: {}
      compiler: []
    autoconf:
      buildable: false
      version: []
      target: []
      compiler: []
      providers: {}
      externals:
      - spec: [email protected]
        prefix: /usr
    automake:
      buildable: false
      version: []
      target: []
      compiler: []
      providers: {}
      externals:
      - spec: [email protected]
        prefix: /usr
    cmake:
      buildable: false
      version: []
      target: []
      compiler: []
      providers: {}
      externals:
      - spec: [email protected]
        modules:
        - cmake/3.23.2
    libtool:
      buildable: false
      version: []
      target: []
      compiler: []
      providers: {}
      externals:
      - spec: [email protected]
        prefix: /usr
    openssl:
      buildable: false
      version: []
      target: []
      compiler: []
      providers: {}
      externals:
      - spec: [email protected]
        prefix: /usr
    m4:
      externals:
      - spec: [email protected]
        prefix: /usr

@hyoklee
Copy link
Collaborator

hyoklee commented Sep 21, 2022

If I use Polaris system libfabric 1.11, the default test hangs.

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