-
Notifications
You must be signed in to change notification settings - Fork 51
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
Building with Spack with CUDA and OpenMP #278
Comments
Hi @LeSnow-Ye, I'm sorry to hear that you're having issues with the build. It would be helpful to try and narrow down the cross section of the failure to one I can reproduce to try and figure it out. For the openmp issue: can you try and run one of the cases from the For the gpu build, I am not sure as I have not been able to build that myself. Building with GPUs is currently fairly arcane, and there's likely issues with that spack script (hence it not being uploaded to the main spack repo yet) as we have not finished testing it yet. From that error message, it would seem that the magma build is not being triggered. We currently don't have enough resource to get to further testing for GPUs, but given you are working on them we would very much appreciate any suggested fixes to that spack file you might suggest. |
Hi @hughcars, The OpenMP issue seems to be narrowed down to Eigenmode Problems. The cavity example failed as well from For the GPU build, I'd love to help. But currently I'm not so familiar with the build process. If I make any progress or find any potential fixes, I will try to submit a Pull Request with the updates. Your assistance in this area would be greatly appreciated. |
Yesterday I made a manual openmp build to check that, and though I uncovered some issues (#279) during testing with apple mac m1, the cases did run without your error message however, and all examples ran perfectly with For your gpu question, have you tried |
Hi, @hughcars, Somehow when I use
I think it might be unnecessary to do add ...
with when("+magma"):
depends_on("magma")
depends_on("magma+shared", when="+shared")
depends_on("magma~shared", when="~shared")
...
with when("+cuda"):
for arch in CudaPackage.cuda_arch_values:
cuda_variant = f"+cuda cuda_arch={arch}"
depends_on(f"hypre{cuda_variant}", when=f"{cuda_variant}")
depends_on(f"superlu-dist{cuda_variant}", when=f"+superlu-dist{cuda_variant}")
depends_on(f"strumpack{cuda_variant}", when=f"+strumpack{cuda_variant}")
depends_on(f"slepc{cuda_variant} ^petsc{cuda_variant}", when=f"+slepc{cuda_variant}")
depends_on(f"magma{cuda_variant}", when=f"+magma{cuda_variant}") Maybe I should try building manually later. |
Hi, @hughcars, The CUDA problem is because MAGMA in Spack currently has poor support for many specific
In the newly updated master branch of MAGMA, more valid architectures are acceptable. See icl / magma / CMakeLists.txt — Bitbucket. So, by manually removing the needed |
Ooof, building with gpus is very fiddly in our experience so far. I'm very glad you managed to get to the root cause! |
I'm trying to build Palace with GPU (CUDA) and OpenMP support using Spack.
The package file is same as palace/spack/local/packages/palace/package.py at main · awslabs/palace.
My installation command is
spack install palace +cuda cuda_arch=86 +openmp
spack spec
result: palace-spec.txtProblem with OpenMP
After changing command
palace -np 64 2DQv9_eb4_3d_resonator_eigen.json -launcher-args "--use-hwthread-cpus"
to commandpalace -nt 64 2DQv9_eb4_2d_resonator_eigen.json
, the following error occurs:The same configuration file works fine under [email protected] with default setup. (No OpenMP and CUDA)
Problem with GPU
When setting ["Solver"]["Device"] = "GPU", the following error occurs
Environment
Compiler: palace-spec.txt
Is it an issue with Spack package file or with my local environment? Could you please suggest a solution for this issue? Thanks!
The text was updated successfully, but these errors were encountered: