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

intel-xed and hpcviewer: adapt to new resource placement #11676

Merged
merged 1 commit into from
Jun 13, 2019

Conversation

mwkrentel
Copy link
Member

Change 'destination' to 'placement' in the use of resource() for
intel-xed and hpcviewer. Recent commits (1842873 and eb584d8)
changed the directory path for a resource and thus broke the build
for these packages.

Change 'destination' to 'placement' in the use of resource() for
intel-xed and hpcviewer.  Recent commits (1842873 and eb584d8)
changed the directory path for a resource and thus broke the build
for these packages.
@mwkrentel
Copy link
Member Author

@tldahlgren @tgamblin
This is a followup to #11647 and #11666. I found a difference between
destination and placement in the use of resource().

In the intel-xed package, I use a resource that should be expanded as
the mbuild subdir in the main package (it used to be). With
destination, I get:

resource(name='mbuild',
         git='https://github.com/intelxed/mbuild.git',
         commit=mbuild_hash, destination='mbuild',
         when='@{0}'.format(vers))

==> Moving resource stage
        source : /home/krentel/binary/spack-repo/var/spack/stage/resource-mbuild-enp62qcq63ixph45z3a5z2yudehcdana/src/
        destination : /home/krentel/binary/spack-repo/var/spack/stage/intel-xed-2019.03.01-enp62qcq63ixph45z3a5z2yudehcdana/src/mbuild/src

Fails because the resource is in the wrong path.

Changing destination to placement, I get:

resource(..., placement='mbuild')

==> Moving resource stage
        source : /home/krentel/binary/spack-repo/var/spack/stage/resource-mbuild-enp62qcq63ixph45z3a5z2yudehcdana/src/
        destination : /home/krentel/binary/spack-repo/var/spack/stage/intel-xed-2019.03.01-enp62qcq63ixph45z3a5z2yudehcdana/src/mbuild

So, destination and placement put the mbuild directory in different
places.

Is this the intended semantics?

Anyway, assuming these semantics are intentional and stable going
forward, then I'd like to get this merged. This is currently a
blocker for building hpctoolkit.

And next time, I'd kinda like more of a heads up.

Btw, spack read-the-docs only mentions destination, not placement.

@tgamblin
Copy link
Member

I'm merging this to unblock hpctoolkit, but @mwkrentel is right -- we should document and maybe fix the semantics for resource. destination and placement are kind of confusing and we either need clearer docs or a less confusing set of parameters. We should probably look at how these are used and see if we can simplify.

@tgamblin tgamblin merged commit aca1bfd into spack:develop Jun 13, 2019
carsonwoods pushed a commit to carsonwoods/spack that referenced this pull request Jun 27, 2019
Change 'destination' to 'placement' in the use of resource() for
intel-xed and hpcviewer.  Recent commits (1842873 and eb584d8)
changed the directory path for a resource and thus broke the build
for these packages.
dev-zero pushed a commit to dev-zero/spack that referenced this pull request Aug 13, 2019
Change 'destination' to 'placement' in the use of resource() for
intel-xed and hpcviewer.  Recent commits (1842873 and eb584d8)
changed the directory path for a resource and thus broke the build
for these packages.
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

Successfully merging this pull request may close these issues.

None yet

2 participants