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

multi-arch build support for Spack builds? #950

Closed
BenWibking opened this issue Jun 12, 2022 · 2 comments
Closed

multi-arch build support for Spack builds? #950

BenWibking opened this issue Jun 12, 2022 · 2 comments
Labels

Comments

@BenWibking
Copy link

Hi,

I've build Ascent with spack install ascent@develop+cuda+vtkh~fortran cuda_arch=70,80 ^conduit~parmetis~fortran using the upstream Spack.

I've built my AMReX code as a multi-arch CUDA binary and linked it to this Ascent build. Everything works as expected on Volta, but when running on A100, I get no output from Ascent (the simulation runs fine, though).

Is doing a multi-cuda_arch-build supported? Or should I just build Ascent separately for Volta and Ampere?

@cyrush
Copy link
Member

cyrush commented Jun 12, 2022

Quick answer - you will need to build separate versions.

The VTK-m spack package translates spack cuda arch values into it's own list of names.

https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/vtk-m/package.py#L116

https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/vtk-m/package.py#L195

VTK-m does have a new feature to use the arch directly, but its not in spack yet and I am not sure if supports multiple values in the internal CMake logic.

We can make this work in the future, but will take a bit to sort out.

@cyrush cyrush added the bug label Jun 12, 2022
@BenWibking
Copy link
Author

We've switched to the bash scripts to build Ascent, rather than using Spack, so I'll close this.

@BenWibking BenWibking closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants