Skip to content

Chaining existing spack-stack installation is not working as expected on Derecho #1503

Closed as not planned
@uturuncoglu

Description

@uturuncoglu

I am trying to use chaining on Hercules to extend the existing installation for UFS Coastal. So, I did following,

git clone --recursive https://github.com/JCSDA/spack-stack.git
cd spack-stack
# edit packages slightly in configs/common/ and configs/sites/tier1/derecho/ to match with the exiting space-stack installation
. setup.sh
spack stack create env --name cop --template empty --site derecho --compiler intel --upstream /glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.6.0/envs/unified-env/install
cd envs/cop
spack env activate .
spack add conduit@develop+python+adios ^[email protected] ^[email protected] ^[email protected]
spack add esmf@=8.8.0
spack concretize --force --deprecated

After that, I check the modules with the spack find -c and it looks like following,

==> In environment /glade/work/turuncu/COP/spack-stack/envs/cop
==> 2 root specs
 -  conduit@develop +adios+python   -  [email protected]

-- linux-sles15-zen3 / [email protected] --------------------------
 -   [email protected]          -   conduit@develop     -   [email protected]              -   [email protected]        -   [email protected]              -   [email protected]        -   [email protected]   -   [email protected]
[e]  [email protected]        [e]  [email protected]  [e]  [email protected]                  -   [email protected]       -   [email protected]           -   [email protected]        -   [email protected]    -   [email protected]
[e]  [email protected]      [e]  [email protected]         [e]  [email protected]                 -   [email protected]   -   [email protected]     -   [email protected]        -   [email protected]    -   [email protected]
 -   [email protected]  [e]  [email protected]       -   [email protected]                 -   [email protected]       -   [email protected]   -   [email protected]        -   [email protected]   -   [email protected]
 -   [email protected]             -   [email protected]          -   [email protected]                -   [email protected]      -   [email protected]        -   [email protected]          -   [email protected]   -   [email protected]
 -   [email protected]           -   [email protected]         -   [email protected]                -   [email protected]      -   [email protected]           -   [email protected]          -   [email protected]      -   [email protected]
 -   [email protected]       [e]  [email protected]     -   [email protected]   -   [email protected]       -   [email protected]              -   [email protected]        -   [email protected]      -   [email protected]
 -   [email protected]        -   [email protected]           -   [email protected]   -   [email protected]         [e]  [email protected]        -   [email protected]   -   [email protected]
 -   [email protected]          -   [email protected]           -   [email protected]        [e]  [email protected]           -   [email protected]        -   [email protected]   -   [email protected]
 -   [email protected]          -   [email protected]      -   [email protected]         -   [email protected]         -   [email protected]        -   [email protected]       [e]  [email protected]
==> 8 installed packages
==> 69 concretized packages to be installed

There are couple of issues with the output,

  • Some modules are listed twice such as [email protected]. I also checked with the spack find -c -f -vto see those have different compiler, variances but they look identical. So, I am not sure why spack is trying to install same package twice (maybe one of each new package - esmf vs. conduit). I also tried by passing--fresh-roots --reuse-depsto thespack concretize` but it did not helped.

  • The local installation does not seem to see the upstream packages and modules. The spack find -c command shows that they will be still installed. I also tried to add following to the upstream section of my local spack.yaml but again it is still same.

  upstreams:
    spack-stack-1.6.0-unified-env:
      install_tree: /glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.6.0/envs/unified-env/install
      modules:
        lmod: /glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.6.0/envs/unified-env/install/modulefiles

At this point, I just wonder if anyone tried to chain exiting spack-stack installation before. Any suggestion would be helpful at this point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions